From: Namhyung Kim Date: Tue, 23 Oct 2012 13:44:49 +0000 (+0900) Subject: perf header: Fix numa topology printing X-Git-Tag: upstream/snapshot3+hdmi~6127^2~2^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1234471e2d11e4ee47f6de452dd8b8aeb09b45de;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Tested-by: Andrew Jones Signed-off-by: Namhyung Kim Cc: Andrew Jones Link: http://lkml.kernel.org/r/1350999890-6920-1-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index 7daad23..566b84c 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: