perf header: Fix wrong node write in NUMA_TOPOLOGY feature
authorJiri Olsa <jolsa@kernel.org>
Tue, 19 Feb 2019 09:58:12 +0000 (10:58 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 19 Feb 2019 15:20:55 +0000 (12:20 -0300)
We are currently passing the node index instead of the real node number.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Fixes: fbe96f29ce4b ("perf tools: Make perf.data more self-descriptive (v8)"
Link: http://lkml.kernel.org/r/20190219095815.15931-2-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/header.c

index 61ce197c5362a235a8cb960516ad8b1dab18d1b5..c66f26ec557a0879e073c9f4cd3504c4a585bff1 100644 (file)
@@ -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;
        }