diff options
Diffstat (limited to 'tools/perf/builtin-trace.c')
-rw-r--r-- | tools/perf/builtin-trace.c | 4 |
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 | ||
64 | static u64 sample_type; | 64 | static u64 sample_type; |
65 | 65 | ||
66 | static int process_sample_event(event_t *event, struct perf_session *session __used) | 66 | static 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); |