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/util/event.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/util/event.c')
-rw-r--r-- | tools/perf/util/event.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c index 222efb1fc3bd..375fb6dca1cf 100644 --- a/tools/perf/util/event.c +++ b/tools/perf/util/event.c | |||
@@ -187,8 +187,6 @@ void event__synthesize_threads(int (*process)(event_t *event, | |||
187 | closedir(proc); | 187 | closedir(proc); |
188 | } | 188 | } |
189 | 189 | ||
190 | struct events_stats event__stats; | ||
191 | |||
192 | int event__process_comm(event_t *self, struct perf_session *session) | 190 | int event__process_comm(event_t *self, struct perf_session *session) |
193 | { | 191 | { |
194 | struct thread *thread = perf_session__findnew(session, self->comm.pid); | 192 | struct thread *thread = perf_session__findnew(session, self->comm.pid); |
@@ -203,10 +201,10 @@ int event__process_comm(event_t *self, struct perf_session *session) | |||
203 | return 0; | 201 | return 0; |
204 | } | 202 | } |
205 | 203 | ||
206 | int event__process_lost(event_t *self, struct perf_session *session __used) | 204 | int event__process_lost(event_t *self, struct perf_session *session) |
207 | { | 205 | { |
208 | dump_printf(": id:%Ld: lost:%Ld\n", self->lost.id, self->lost.lost); | 206 | dump_printf(": id:%Ld: lost:%Ld\n", self->lost.id, self->lost.lost); |
209 | event__stats.lost += self->lost.lost; | 207 | session->events_stats.lost += self->lost.lost; |
210 | return 0; | 208 | return 0; |
211 | } | 209 | } |
212 | 210 | ||