summaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2012-10-23 22:44:49 +0900
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-10-30 10:32:55 -0200
commit1234471e2d11e4ee47f6de452dd8b8aeb09b45de (patch)
treecee1428cfa1e1379ad9f6c0d63b0ebcf7461c5d8 /tools/perf
parent0d855354ea351bec6b222e9fea86a876cfafdcb6 (diff)
downloadblackbird-obmc-linux-1234471e2d11e4ee47f6de452dd8b8aeb09b45de.tar.gz
blackbird-obmc-linux-1234471e2d11e4ee47f6de452dd8b8aeb09b45de.zip
perf header: Fix numa topology printing
Andrew reported that the commit 7e94cfcc9d20 ("perf header: Use pre- processed session env when printing") regresses the header output. It was because of a missed string pointer calculation in the loop. Reported-by: Andrew Jones <drjones@redhat.com> Tested-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Andrew Jones <drjones@redhat.com> Link: http://lkml.kernel.org/r/1350999890-6920-1-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/util/header.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c
index 7daad237dea5..566b84c695c8 100644
--- a/tools/perf/util/header.c
+++ b/tools/perf/util/header.c
@@ -1378,6 +1378,8 @@ static void print_numa_topology(struct perf_header *ph, int fd __maybe_unused,
str = tmp + 1;
fprintf(fp, "# node%u cpu list : %s\n", c, str);
+
+ str += strlen(str) + 1;
}
return;
error:
OpenPOWER on IntegriCloud