From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3292BC43381 for ; Tue, 19 Feb 2019 09:58:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EC4762146F for ; Tue, 19 Feb 2019 09:58:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550570338; bh=+uH09RUwku0p/qABLzhZVQknZYm3YLcaVqlx6KVLB6s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=k6xkdX1vYy+bGwMehwn4AnATimg/0Jb86YkJATz6F7jepSlWYXtATk9y0qrfA6FKe ANcfoXQrgmH9aj+Z3tkrLXFc+WaVulOaPz3efjtDbbT2t0yjgBSz8Uk58+tDnNIJiT G7Pxsu/PMYK0jzkE4/itn3Cc2RVRyJ9bEGwi2OaY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727774AbfBSJ6Y (ORCPT ); Tue, 19 Feb 2019 04:58:24 -0500 Received: from mx1.redhat.com ([209.132.183.28]:52074 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727464AbfBSJ6V (ORCPT ); Tue, 19 Feb 2019 04:58:21 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0221725EEA; Tue, 19 Feb 2019 09:58:21 +0000 (UTC) Received: from krava.brq.redhat.com (unknown [10.43.17.42]) by smtp.corp.redhat.com (Postfix) with ESMTP id 29762600C8; Tue, 19 Feb 2019 09:58:19 +0000 (UTC) From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra Subject: [PATCH 1/4] perf header: Fix wrong node write in NUMA_TOPOLOGY feature Date: Tue, 19 Feb 2019 10:58:12 +0100 Message-Id: <20190219095815.15931-2-jolsa@kernel.org> In-Reply-To: <20190219095815.15931-1-jolsa@kernel.org> References: <20190219095815.15931-1-jolsa@kernel.org> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Tue, 19 Feb 2019 09:58:21 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We are currently passing the node index instead of the real node number. Fixes: fbe96f29ce4b ("perf tools: Make perf.data more self-descriptive (v8)" Link: http://lkml.kernel.org/n/tip-rbtlsr9ts23c89rki7d4s5sm@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/header.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index 61ce197c5362..c66f26ec557a 100644 --- a/tools/perf/util/header.c +++ b/tools/perf/util/header.c @@ -879,7 +879,7 @@ static int write_numa_topology(struct feat_fd *ff, if (ret < 0) break; - ret = write_topo_node(ff, i); + ret = write_topo_node(ff, j); if (ret < 0) break; } -- 2.17.2