diff options
Diffstat (limited to 'tools/perf/util')
-rw-r--r-- | tools/perf/util/session.c | 3 | ||||
-rw-r--r-- | tools/perf/util/session.h | 2 |
2 files changed, 3 insertions, 2 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 | } |
diff --git a/tools/perf/util/session.h b/tools/perf/util/session.h index 5771ccb3fe03..585937b6f9ee 100644 --- a/tools/perf/util/session.h +++ b/tools/perf/util/session.h | |||
@@ -20,6 +20,7 @@ struct perf_session { | |||
20 | struct thread *last_match; | 20 | struct thread *last_match; |
21 | struct events_stats events_stats; | 21 | struct events_stats events_stats; |
22 | unsigned long event_total[PERF_RECORD_MAX]; | 22 | unsigned long event_total[PERF_RECORD_MAX]; |
23 | unsigned long unknown_events; | ||
23 | struct rb_root hists; | 24 | struct rb_root hists; |
24 | u64 sample_type; | 25 | u64 sample_type; |
25 | int fd; | 26 | int fd; |
@@ -40,7 +41,6 @@ struct perf_event_ops { | |||
40 | event_op process_read_event; | 41 | event_op process_read_event; |
41 | event_op process_throttle_event; | 42 | event_op process_throttle_event; |
42 | event_op process_unthrottle_event; | 43 | event_op process_unthrottle_event; |
43 | unsigned long total_unknown; | ||
44 | bool full_paths; | 44 | bool full_paths; |
45 | }; | 45 | }; |
46 | 46 | ||