aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-sched.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2011-11-16 14:02:54 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-11-28 07:38:14 -0500
commite3f42609628a20da92ecbc2d81053cc82c90a071 (patch)
tree5fce687fcc9fb9b3060c5bb129936ac725da0a19 /tools/perf/builtin-sched.c
parent246d4ce8107ea16521384c8b2a8fcff354ef2b7c (diff)
perf tools: Use evsel->attr.sample_type instead of session->sample_type
Eventually session->sample_type will go away as we want to support multiple sample types per session, so use it from the evsel which is a step in that direction. 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-0vwdpjcwbjezw459lw5n3ew1@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-sched.c')
-rw-r--r--tools/perf/builtin-sched.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c
index 5177964943e..d51af0beab1 100644
--- a/tools/perf/builtin-sched.c
+++ b/tools/perf/builtin-sched.c
@@ -3,6 +3,7 @@
3 3
4#include "util/util.h" 4#include "util/util.h"
5#include "util/cache.h" 5#include "util/cache.h"
6#include "util/evsel.h"
6#include "util/symbol.h" 7#include "util/symbol.h"
7#include "util/thread.h" 8#include "util/thread.h"
8#include "util/header.h" 9#include "util/header.h"
@@ -1603,12 +1604,12 @@ static void process_raw_event(union perf_event *raw_event __used,
1603 1604
1604static int process_sample_event(union perf_event *event, 1605static int process_sample_event(union perf_event *event,
1605 struct perf_sample *sample, 1606 struct perf_sample *sample,
1606 struct perf_evsel *evsel __used, 1607 struct perf_evsel *evsel,
1607 struct perf_session *session) 1608 struct perf_session *session)
1608{ 1609{
1609 struct thread *thread; 1610 struct thread *thread;
1610 1611
1611 if (!(session->sample_type & PERF_SAMPLE_RAW)) 1612 if (!(evsel->attr.sample_type & PERF_SAMPLE_RAW))
1612 return 0; 1613 return 0;
1613 1614
1614 thread = perf_session__findnew(session, sample->pid); 1615 thread = perf_session__findnew(session, sample->pid);