diff options
Diffstat (limited to 'tools/perf/builtin-kmem.c')
-rw-r--r-- | tools/perf/builtin-kmem.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/perf/builtin-kmem.c b/tools/perf/builtin-kmem.c index 3c1cdcf29902..7f618f4e7b79 100644 --- a/tools/perf/builtin-kmem.c +++ b/tools/perf/builtin-kmem.c | |||
@@ -275,9 +275,8 @@ static void process_free_event(void *data, | |||
275 | s_alloc->alloc_cpu = -1; | 275 | s_alloc->alloc_cpu = -1; |
276 | } | 276 | } |
277 | 277 | ||
278 | static void | 278 | static void process_raw_event(union perf_event *raw_event __used, void *data, |
279 | process_raw_event(event_t *raw_event __used, void *data, | 279 | int cpu, u64 timestamp, struct thread *thread) |
280 | int cpu, u64 timestamp, struct thread *thread) | ||
281 | { | 280 | { |
282 | struct event *event; | 281 | struct event *event; |
283 | int type; | 282 | int type; |
@@ -304,7 +303,8 @@ process_raw_event(event_t *raw_event __used, void *data, | |||
304 | } | 303 | } |
305 | } | 304 | } |
306 | 305 | ||
307 | static int process_sample_event(event_t *event, struct perf_sample *sample, | 306 | static int process_sample_event(union perf_event *event, |
307 | struct perf_sample *sample, | ||
308 | struct perf_session *session) | 308 | struct perf_session *session) |
309 | { | 309 | { |
310 | struct thread *thread = perf_session__findnew(session, event->ip.pid); | 310 | struct thread *thread = perf_session__findnew(session, event->ip.pid); |
@@ -325,7 +325,7 @@ static int process_sample_event(event_t *event, struct perf_sample *sample, | |||
325 | 325 | ||
326 | static struct perf_event_ops event_ops = { | 326 | static struct perf_event_ops event_ops = { |
327 | .sample = process_sample_event, | 327 | .sample = process_sample_event, |
328 | .comm = event__process_comm, | 328 | .comm = perf_event__process_comm, |
329 | .ordered_samples = true, | 329 | .ordered_samples = true, |
330 | }; | 330 | }; |
331 | 331 | ||