aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-sched.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2009-12-13 16:50:24 -0500
committerIngo Molnar <mingo@elte.hu>2009-12-14 10:57:13 -0500
commitd8f66248d6f25f7c935cc5307c43bf394db07272 (patch)
treef30b5512dd08e6a8713fa9fde158c75d57ce1d6b /tools/perf/builtin-sched.c
parent2cd9046cc53dd2625e2cf5854d6cbb1ba61de914 (diff)
perf session: Pass the perf_session to the event handling operations
They will need it to get the right threads list, etc. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> LKML-Reference: <1260741029-4430-1-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-sched.c')
-rw-r--r--tools/perf/builtin-sched.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c
index 65021fe1361e..48ab283ed86b 100644
--- a/tools/perf/builtin-sched.c
+++ b/tools/perf/builtin-sched.c
@@ -1594,7 +1594,8 @@ process_raw_event(event_t *raw_event __used, void *data,
1594 process_sched_migrate_task_event(data, event, cpu, timestamp, thread); 1594 process_sched_migrate_task_event(data, event, cpu, timestamp, thread);
1595} 1595}
1596 1596
1597static int process_sample_event(event_t *event) 1597static int process_sample_event(event_t *event,
1598 struct perf_session *session __used)
1598{ 1599{
1599 struct sample_data data; 1600 struct sample_data data;
1600 struct thread *thread; 1601 struct thread *thread;
@@ -1632,7 +1633,8 @@ static int process_sample_event(event_t *event)
1632 return 0; 1633 return 0;
1633} 1634}
1634 1635
1635static int process_lost_event(event_t *event __used) 1636static int process_lost_event(event_t *event __used,
1637 struct perf_session *session __used)
1636{ 1638{
1637 nr_lost_chunks++; 1639 nr_lost_chunks++;
1638 nr_lost_events += event->lost.lost; 1640 nr_lost_events += event->lost.lost;