diff options
author | Namhyung Kim <namhyung@kernel.org> | 2013-12-26 01:11:52 -0500 |
---|---|---|
committer | Jiri Olsa <jolsa@redhat.com> | 2014-04-16 11:16:03 -0400 |
commit | 1ab1fa5dfb429c533fbc791e524788cf0cc43775 (patch) | |
tree | 498386cc0e6342a7228e86f3a59da86179e62e5a /tools/perf/util/hist.h | |
parent | fbdd17ec5ce2e5e4027356fcfde769b88d15702f (diff) |
perf hists: Add support for showing relative percentage
When filtering by thread, dso or symbol on TUI it also update total
period so that the output shows different result than no filter - the
percentage changed to relative to filtered entries only. Sometimes
this is not desired since users might expect same results with filter.
So new filtered_* fields to hists->stats to count them separately.
They'll be controlled/used by user later.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1397145720-8063-2-git-send-email-namhyung@kernel.org
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Diffstat (limited to 'tools/perf/util/hist.h')
-rw-r--r-- | tools/perf/util/hist.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h index 1f1f513dfe7f..213551469f36 100644 --- a/tools/perf/util/hist.h +++ b/tools/perf/util/hist.h | |||
@@ -37,9 +37,11 @@ enum hist_filter { | |||
37 | */ | 37 | */ |
38 | struct events_stats { | 38 | struct events_stats { |
39 | u64 total_period; | 39 | u64 total_period; |
40 | u64 total_non_filtered_period; | ||
40 | u64 total_lost; | 41 | u64 total_lost; |
41 | u64 total_invalid_chains; | 42 | u64 total_invalid_chains; |
42 | u32 nr_events[PERF_RECORD_HEADER_MAX]; | 43 | u32 nr_events[PERF_RECORD_HEADER_MAX]; |
44 | u32 nr_non_filtered_samples; | ||
43 | u32 nr_lost_warned; | 45 | u32 nr_lost_warned; |
44 | u32 nr_unknown_events; | 46 | u32 nr_unknown_events; |
45 | u32 nr_invalid_chains; | 47 | u32 nr_invalid_chains; |
@@ -83,6 +85,7 @@ struct hists { | |||
83 | struct rb_root entries; | 85 | struct rb_root entries; |
84 | struct rb_root entries_collapsed; | 86 | struct rb_root entries_collapsed; |
85 | u64 nr_entries; | 87 | u64 nr_entries; |
88 | u64 nr_non_filtered_entries; | ||
86 | const struct thread *thread_filter; | 89 | const struct thread *thread_filter; |
87 | const struct dso *dso_filter; | 90 | const struct dso *dso_filter; |
88 | const char *uid_filter_str; | 91 | const char *uid_filter_str; |