diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-12-27 18:37:03 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-28 03:03:34 -0500 |
commit | 31d337c4ee3152b7271897eae576251643f5a3b5 (patch) | |
tree | c1e6cff65d9c01f97ace23646ca84bff7636c9ee /tools/perf/util/session.c | |
parent | d549c7690190d9739005e19604faad6da4b802ac (diff) |
perf session: Move total_unknown to perf_session->unknown events
As this is a session property, not belonging to perf_event_ops,
that can be shared by many perf_session instances.
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: <1261957026-15580-7-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/session.c')
-rw-r--r-- | tools/perf/util/session.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index bc84a5217955..4ca427f73994 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c | |||
@@ -66,6 +66,7 @@ struct perf_session *perf_session__new(const char *filename, int mode, bool forc | |||
66 | self->mmap_window = 32; | 66 | self->mmap_window = 32; |
67 | self->cwd = NULL; | 67 | self->cwd = NULL; |
68 | self->cwdlen = 0; | 68 | self->cwdlen = 0; |
69 | self->unknown_events = 0; | ||
69 | map_groups__init(&self->kmaps); | 70 | map_groups__init(&self->kmaps); |
70 | 71 | ||
71 | if (perf_session__create_kernel_maps(self) < 0) | 72 | if (perf_session__create_kernel_maps(self) < 0) |
@@ -239,7 +240,7 @@ static int perf_session__process_event(struct perf_session *self, | |||
239 | case PERF_RECORD_UNTHROTTLE: | 240 | case PERF_RECORD_UNTHROTTLE: |
240 | return ops->process_unthrottle_event(event, self); | 241 | return ops->process_unthrottle_event(event, self); |
241 | default: | 242 | default: |
242 | ops->total_unknown++; | 243 | self->unknown_events++; |
243 | return -1; | 244 | return -1; |
244 | } | 245 | } |
245 | } | 246 | } |