diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-08-06 13:40:28 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-08-09 06:54:35 -0400 |
commit | 8f18aec535b5ca513dd13b531730177d35175ffa (patch) | |
tree | 6e1894685c1540c4b3f1c7dcef0315729ef3e9f1 /tools/perf/util/parse-events.c | |
parent | 1c222bce7dd0cb9578b4c5cd3874a74f1db497c3 (diff) |
perf report: Fix per task mult-counter stat reporting
Brice Goglin reported:
> I can easily sort them by thread id, but I don't know how to match
> my 4 events with each group of 4 lines.
Also report the counter id and the time running/enabled
stats (in case the counter got time-shared).
Reported-by: Brice Goglin <Brice.Goglin@inria.fr>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Tested-by: Brice Goglin <Brice.Goglin@inria.fr>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/parse-events.c')
-rw-r--r-- | tools/perf/util/parse-events.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index 7bdad8df22a6..f77407b5832e 100644 --- a/tools/perf/util/parse-events.c +++ b/tools/perf/util/parse-events.c | |||
@@ -223,9 +223,15 @@ char *event_name(int counter) | |||
223 | { | 223 | { |
224 | u64 config = attrs[counter].config; | 224 | u64 config = attrs[counter].config; |
225 | int type = attrs[counter].type; | 225 | int type = attrs[counter].type; |
226 | |||
227 | return __event_name(type, config); | ||
228 | } | ||
229 | |||
230 | char *__event_name(int type, u64 config) | ||
231 | { | ||
226 | static char buf[32]; | 232 | static char buf[32]; |
227 | 233 | ||
228 | if (attrs[counter].type == PERF_TYPE_RAW) { | 234 | if (type == PERF_TYPE_RAW) { |
229 | sprintf(buf, "raw 0x%llx", config); | 235 | sprintf(buf, "raw 0x%llx", config); |
230 | return buf; | 236 | return buf; |
231 | } | 237 | } |