diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-12-14 12:06:01 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-15 02:50:28 -0500 |
commit | f823e441ab4dfaeaf17832fa1931e0dc0fde304d (patch) | |
tree | 6bfaf4a3c4c5e2d5f65abece7996b005302e6af6 /tools/perf/builtin-report.c | |
parent | c019879bcc5692ec9267c1cedad91f1794d0b693 (diff) |
perf session: Event statistics also are per session
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: <1260810361-22828-1-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 | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 142c475f9918..d12ea4ab0d21 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c | |||
@@ -619,8 +619,7 @@ static int process_sample_event(event_t *event, struct perf_session *session) | |||
619 | return -1; | 619 | return -1; |
620 | } | 620 | } |
621 | 621 | ||
622 | event__stats.total += data.period; | 622 | session->events_stats.total += data.period; |
623 | |||
624 | return 0; | 623 | return 0; |
625 | } | 624 | } |
626 | 625 | ||
@@ -731,8 +730,8 @@ static int __cmd_report(void) | |||
731 | dsos__fprintf(stdout); | 730 | dsos__fprintf(stdout); |
732 | 731 | ||
733 | perf_session__collapse_resort(session); | 732 | perf_session__collapse_resort(session); |
734 | perf_session__output_resort(session, event__stats.total); | 733 | perf_session__output_resort(session, session->events_stats.total); |
735 | perf_session__fprintf_hist_entries(session, event__stats.total, stdout); | 734 | perf_session__fprintf_hist_entries(session, session->events_stats.total, stdout); |
736 | 735 | ||
737 | if (show_threads) | 736 | if (show_threads) |
738 | perf_read_values_destroy(&show_threads_values); | 737 | perf_read_values_destroy(&show_threads_values); |