diff options
Diffstat (limited to 'tools/perf/builtin-timechart.c')
-rw-r--r-- | tools/perf/builtin-timechart.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/tools/perf/builtin-timechart.c b/tools/perf/builtin-timechart.c index 759dd2b35fdb..db6caae1a404 100644 --- a/tools/perf/builtin-timechart.c +++ b/tools/perf/builtin-timechart.c | |||
@@ -281,21 +281,19 @@ static int cpus_cstate_state[MAX_CPUS]; | |||
281 | static u64 cpus_pstate_start_times[MAX_CPUS]; | 281 | static u64 cpus_pstate_start_times[MAX_CPUS]; |
282 | static u64 cpus_pstate_state[MAX_CPUS]; | 282 | static u64 cpus_pstate_state[MAX_CPUS]; |
283 | 283 | ||
284 | static int | 284 | static int process_comm_event(event_t *event, struct perf_session *session __used) |
285 | process_comm_event(event_t *event) | ||
286 | { | 285 | { |
287 | pid_set_comm(event->comm.pid, event->comm.comm); | 286 | pid_set_comm(event->comm.pid, event->comm.comm); |
288 | return 0; | 287 | return 0; |
289 | } | 288 | } |
290 | static int | 289 | |
291 | process_fork_event(event_t *event) | 290 | static int process_fork_event(event_t *event, struct perf_session *session __used) |
292 | { | 291 | { |
293 | pid_fork(event->fork.pid, event->fork.ppid, event->fork.time); | 292 | pid_fork(event->fork.pid, event->fork.ppid, event->fork.time); |
294 | return 0; | 293 | return 0; |
295 | } | 294 | } |
296 | 295 | ||
297 | static int | 296 | static int process_exit_event(event_t *event, struct perf_session *session __used) |
298 | process_exit_event(event_t *event) | ||
299 | { | 297 | { |
300 | pid_exit(event->fork.pid, event->fork.time); | 298 | pid_exit(event->fork.pid, event->fork.time); |
301 | return 0; | 299 | return 0; |
@@ -594,8 +592,7 @@ static u64 sample_time(event_t *event) | |||
594 | * We first queue all events, sorted backwards by insertion. | 592 | * We first queue all events, sorted backwards by insertion. |
595 | * The order will get flipped later. | 593 | * The order will get flipped later. |
596 | */ | 594 | */ |
597 | static int | 595 | static int queue_sample_event(event_t *event, struct perf_session *session __used) |
598 | queue_sample_event(event_t *event) | ||
599 | { | 596 | { |
600 | struct sample_wrapper *copy, *prev; | 597 | struct sample_wrapper *copy, *prev; |
601 | int size; | 598 | int size; |