diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-12-16 09:27:10 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-16 10:51:50 -0500 |
commit | 3e6055ab981dfd379a1b9bd54b556e81ae9c215f (patch) | |
tree | e890c792d89b9433d6ee5e91cfc1dd012d9e26dc /tools/perf/builtin-report.c | |
parent | 4ecf84d086fbeca5a622e971fff013b291dbde86 (diff) |
perf session: Move perf report specific hits out of perf_session__fprintf_hists
Those don't make sense for tools such as 'perf diff'.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1260973631-28035-2-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r-- | tools/perf/builtin-report.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 24d20e7d125a..c4f3a08f7c48 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c | |||
@@ -224,7 +224,12 @@ static int __cmd_report(void) | |||
224 | 224 | ||
225 | perf_session__collapse_resort(session); | 225 | perf_session__collapse_resort(session); |
226 | perf_session__output_resort(session, session->events_stats.total); | 226 | perf_session__output_resort(session, session->events_stats.total); |
227 | fprintf(stdout, "# Samples: %ld\n#\n", session->events_stats.total); | ||
227 | perf_session__fprintf_hists(session, stdout); | 228 | perf_session__fprintf_hists(session, stdout); |
229 | if (sort_order == default_sort_order && | ||
230 | parent_pattern == default_parent_pattern) | ||
231 | fprintf(stdout, "#\n# (For a higher level overview, try: perf report --sort comm,dso)\n#\n"); | ||
232 | |||
228 | if (show_threads) { | 233 | if (show_threads) { |
229 | bool raw_printing_style = !strcmp(pretty_printing_style, "raw"); | 234 | bool raw_printing_style = !strcmp(pretty_printing_style, "raw"); |
230 | perf_read_values_display(stdout, &show_threads_values, | 235 | perf_read_values_display(stdout, &show_threads_values, |