diff options
Diffstat (limited to 'tools/perf/builtin-timechart.c')
-rw-r--r-- | tools/perf/builtin-timechart.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/perf/builtin-timechart.c b/tools/perf/builtin-timechart.c index 01cf0c3771a..0801275c500 100644 --- a/tools/perf/builtin-timechart.c +++ b/tools/perf/builtin-timechart.c | |||
@@ -276,21 +276,24 @@ static int cpus_cstate_state[MAX_CPUS]; | |||
276 | static u64 cpus_pstate_start_times[MAX_CPUS]; | 276 | static u64 cpus_pstate_start_times[MAX_CPUS]; |
277 | static u64 cpus_pstate_state[MAX_CPUS]; | 277 | static u64 cpus_pstate_state[MAX_CPUS]; |
278 | 278 | ||
279 | static int process_comm_event(event_t *event, struct perf_sample *sample __used, | 279 | static int process_comm_event(union perf_event *event, |
280 | struct perf_sample *sample __used, | ||
280 | struct perf_session *session __used) | 281 | struct perf_session *session __used) |
281 | { | 282 | { |
282 | pid_set_comm(event->comm.tid, event->comm.comm); | 283 | pid_set_comm(event->comm.tid, event->comm.comm); |
283 | return 0; | 284 | return 0; |
284 | } | 285 | } |
285 | 286 | ||
286 | static int process_fork_event(event_t *event, struct perf_sample *sample __used, | 287 | static int process_fork_event(union perf_event *event, |
288 | struct perf_sample *sample __used, | ||
287 | struct perf_session *session __used) | 289 | struct perf_session *session __used) |
288 | { | 290 | { |
289 | pid_fork(event->fork.pid, event->fork.ppid, event->fork.time); | 291 | pid_fork(event->fork.pid, event->fork.ppid, event->fork.time); |
290 | return 0; | 292 | return 0; |
291 | } | 293 | } |
292 | 294 | ||
293 | static int process_exit_event(event_t *event, struct perf_sample *sample __used, | 295 | static int process_exit_event(union perf_event *event, |
296 | struct perf_sample *sample __used, | ||
294 | struct perf_session *session __used) | 297 | struct perf_session *session __used) |
295 | { | 298 | { |
296 | pid_exit(event->fork.pid, event->fork.time); | 299 | pid_exit(event->fork.pid, event->fork.time); |
@@ -486,7 +489,7 @@ static void sched_switch(int cpu, u64 timestamp, struct trace_entry *te) | |||
486 | } | 489 | } |
487 | 490 | ||
488 | 491 | ||
489 | static int process_sample_event(event_t *event __used, | 492 | static int process_sample_event(union perf_event *event __used, |
490 | struct perf_sample *sample, | 493 | struct perf_sample *sample, |
491 | struct perf_session *session) | 494 | struct perf_session *session) |
492 | { | 495 | { |