aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/Makefile
diff options
context:
space:
mode:
authorBrice Goglin <Brice.Goglin@inria.fr>2009-08-07 07:55:24 -0400
committerIngo Molnar <mingo@elte.hu>2009-08-09 07:04:20 -0400
commit8d51327090ac025d7f4ce6c059786b5e93513321 (patch)
tree32576a197af970ac698c7888c67235e8f723fa67 /tools/perf/Makefile
parent30dd568c912602b7dbd609a45d053e01b13422bb (diff)
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>
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r--tools/perf/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index 60411e94113b..de7beac1095e 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -310,6 +310,7 @@ LIB_H += util/sigchain.h
310LIB_H += util/symbol.h 310LIB_H += util/symbol.h
311LIB_H += util/module.h 311LIB_H += util/module.h
312LIB_H += util/color.h 312LIB_H += util/color.h
313LIB_H += util/values.h
313 314
314LIB_OBJS += util/abspath.o 315LIB_OBJS += util/abspath.o
315LIB_OBJS += util/alias.o 316LIB_OBJS += util/alias.o
@@ -337,6 +338,7 @@ LIB_OBJS += util/color.o
337LIB_OBJS += util/pager.o 338LIB_OBJS += util/pager.o
338LIB_OBJS += util/header.o 339LIB_OBJS += util/header.o
339LIB_OBJS += util/callchain.o 340LIB_OBJS += util/callchain.o
341LIB_OBJS += util/values.o
340 342
341BUILTIN_OBJS += builtin-annotate.o 343BUILTIN_OBJS += builtin-annotate.o
342BUILTIN_OBJS += builtin-help.o 344BUILTIN_OBJS += builtin-help.o