]> nv-tegra.nvidia Code Review - linux-2.6.git/commit - tools/perf/Documentation/perf-report.txt
perf report: Fix and improve the displaying of per-thread event counters
authorBrice Goglin <Brice.Goglin@inria.fr>
Fri, 7 Aug 2009 11:55:24 +0000 (13:55 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 9 Aug 2009 11:04:20 +0000 (13:04 +0200)
commit8d51327090ac025d7f4ce6c059786b5e93513321
tree32576a197af970ac698c7888c67235e8f723fa67
parent30dd568c912602b7dbd609a45d053e01b13422bb
perf report: Fix and improve the displaying of per-thread event counters

Improve and fix the handling of per-thread counter stats
recorded via perf record -s. Previously we only displayed
it in debug printouts (-D) and even that output was hard
to disambiguate.

I moved everything to utils/values.[ch] so that we may reuse
it in perf stat.

We get something like this now:

 #  PID   TID  cache-misses  cache-references
   4658  4659        495581           3238779
   4658  4662        498246           3236823
   4658  4663        499531           3243162

Then it'll be easy to add --pretty=raw to display a single line per thread/event.

By the way, -S was also used for --symbol... So I used -T/--thread here.

perf report: Add -T/--threads to display per-thread counter values

 We get something like this now:
 #  PID   TID  cache-misses  cache-references
   4658  4659        495581           3238779
   4658  4662        498246           3236823
   4658  4663        499531           3243162

Per-thread arrays of counter values are managed in utils/values.[ch]

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: paulus@samba.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/Documentation/perf-report.txt
tools/perf/Makefile
tools/perf/builtin-report.c
tools/perf/util/values.c [new file with mode: 0644]
tools/perf/util/values.h [new file with mode: 0644]