diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-11-28 04:56:39 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-11-28 07:39:12 -0500 |
commit | 743eb868657bdb1b26c7b24077ca21c67c82c777 (patch) | |
tree | 4803b557725213043ccd5d3f83d2eec796a49f69 /tools/perf/builtin-timechart.c | |
parent | d20deb64e0490ee9442b5181bc08a62d2cadcb90 (diff) |
perf tools: Resolve machine earlier and pass it to perf_event_ops
Reducing the exposure of perf_session further, so that we can use the
classes in cases where no perf.data file is created.
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-stua66dcscsezzrcdugvbmvd@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-timechart.c')
-rw-r--r-- | tools/perf/builtin-timechart.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/builtin-timechart.c b/tools/perf/builtin-timechart.c index 62298a0d7dc9..8e6539625bc1 100644 --- a/tools/perf/builtin-timechart.c +++ b/tools/perf/builtin-timechart.c | |||
@@ -277,7 +277,7 @@ static u64 cpus_pstate_state[MAX_CPUS]; | |||
277 | static int process_comm_event(struct perf_event_ops *ops __used, | 277 | static int process_comm_event(struct perf_event_ops *ops __used, |
278 | union perf_event *event, | 278 | union perf_event *event, |
279 | struct perf_sample *sample __used, | 279 | struct perf_sample *sample __used, |
280 | struct perf_session *session __used) | 280 | struct machine *machine __used) |
281 | { | 281 | { |
282 | pid_set_comm(event->comm.tid, event->comm.comm); | 282 | pid_set_comm(event->comm.tid, event->comm.comm); |
283 | return 0; | 283 | return 0; |
@@ -286,7 +286,7 @@ static int process_comm_event(struct perf_event_ops *ops __used, | |||
286 | static int process_fork_event(struct perf_event_ops *ops __used, | 286 | static int process_fork_event(struct perf_event_ops *ops __used, |
287 | union perf_event *event, | 287 | union perf_event *event, |
288 | struct perf_sample *sample __used, | 288 | struct perf_sample *sample __used, |
289 | struct perf_session *session __used) | 289 | struct machine *machine __used) |
290 | { | 290 | { |
291 | pid_fork(event->fork.pid, event->fork.ppid, event->fork.time); | 291 | pid_fork(event->fork.pid, event->fork.ppid, event->fork.time); |
292 | return 0; | 292 | return 0; |
@@ -295,7 +295,7 @@ static int process_fork_event(struct perf_event_ops *ops __used, | |||
295 | static int process_exit_event(struct perf_event_ops *ops __used, | 295 | static int process_exit_event(struct perf_event_ops *ops __used, |
296 | union perf_event *event, | 296 | union perf_event *event, |
297 | struct perf_sample *sample __used, | 297 | struct perf_sample *sample __used, |
298 | struct perf_session *session __used) | 298 | struct machine *machine __used) |
299 | { | 299 | { |
300 | pid_exit(event->fork.pid, event->fork.time); | 300 | pid_exit(event->fork.pid, event->fork.time); |
301 | return 0; | 301 | return 0; |
@@ -494,7 +494,7 @@ static int process_sample_event(struct perf_event_ops *ops __used, | |||
494 | union perf_event *event __used, | 494 | union perf_event *event __used, |
495 | struct perf_sample *sample, | 495 | struct perf_sample *sample, |
496 | struct perf_evsel *evsel, | 496 | struct perf_evsel *evsel, |
497 | struct perf_session *session __used) | 497 | struct machine *machine __used) |
498 | { | 498 | { |
499 | struct trace_entry *te; | 499 | struct trace_entry *te; |
500 | 500 | ||