aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-trace.c')
-rw-r--r--tools/perf/builtin-trace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c
index b7eb3fcc224e..d76532375054 100644
--- a/tools/perf/builtin-trace.c
+++ b/tools/perf/builtin-trace.c
@@ -63,7 +63,7 @@ static char const *input_name = "perf.data";
63 63
64static u64 sample_type; 64static u64 sample_type;
65 65
66static int process_sample_event(event_t *event, struct perf_session *session __used) 66static int process_sample_event(event_t *event, struct perf_session *session)
67{ 67{
68 struct sample_data data; 68 struct sample_data data;
69 struct thread *thread; 69 struct thread *thread;
@@ -81,7 +81,7 @@ static int process_sample_event(event_t *event, struct perf_session *session __u
81 (void *)(long)data.ip, 81 (void *)(long)data.ip,
82 (long long)data.period); 82 (long long)data.period);
83 83
84 thread = threads__findnew(event->ip.pid); 84 thread = perf_session__findnew(session, event->ip.pid);
85 if (thread == NULL) { 85 if (thread == NULL) {
86 pr_debug("problem processing %d event, skipping it.\n", 86 pr_debug("problem processing %d event, skipping it.\n",
87 event->header.type); 87 event->header.type);