diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-05-14 09:36:42 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-05-14 09:36:42 -0400 |
commit | c8446b9bdabcb0caa61bb341bd73c58f7104b503 (patch) | |
tree | b2530bfbbd893017e9515bd48f2ffa8845860759 /tools/perf/util/hist.h | |
parent | 5d2be7cb198a0a6bc6088d3806fb7261b184ad89 (diff) |
perf hist: Make event__totals per hists
This is one more thing that started global but are more useful per hist
or per session.
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/hist.h')
-rw-r--r-- | tools/perf/util/hist.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h index 0b4c8df914bd..97b8962ff69a 100644 --- a/tools/perf/util/hist.h +++ b/tools/perf/util/hist.h | |||
@@ -40,6 +40,8 @@ struct sym_priv { | |||
40 | struct events_stats { | 40 | struct events_stats { |
41 | u64 total; | 41 | u64 total; |
42 | u64 lost; | 42 | u64 lost; |
43 | u32 nr_events[PERF_RECORD_HEADER_MAX]; | ||
44 | u32 nr_unknown_events; | ||
43 | }; | 45 | }; |
44 | 46 | ||
45 | struct hists { | 47 | struct hists { |
@@ -68,6 +70,10 @@ void hist_entry__free(struct hist_entry *); | |||
68 | 70 | ||
69 | void hists__output_resort(struct hists *self); | 71 | void hists__output_resort(struct hists *self); |
70 | void hists__collapse_resort(struct hists *self); | 72 | void hists__collapse_resort(struct hists *self); |
73 | |||
74 | void hists__inc_nr_events(struct hists *self, u32 type); | ||
75 | size_t hists__fprintf_nr_events(struct hists *self, FILE *fp); | ||
76 | |||
71 | size_t hists__fprintf(struct hists *self, struct hists *pair, | 77 | size_t hists__fprintf(struct hists *self, struct hists *pair, |
72 | bool show_displacement, FILE *fp); | 78 | bool show_displacement, FILE *fp); |
73 | 79 | ||