diff options
Diffstat (limited to 'tools/perf/builtin-script.c')
-rw-r--r-- | tools/perf/builtin-script.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 2ad9d5b6fb3c..d82712f169b3 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c | |||
@@ -501,7 +501,8 @@ static int process_sample_event(struct perf_tool *tool __maybe_unused, | |||
501 | struct machine *machine) | 501 | struct machine *machine) |
502 | { | 502 | { |
503 | struct addr_location al; | 503 | struct addr_location al; |
504 | struct thread *thread = machine__findnew_thread(machine, event->ip.tid); | 504 | struct thread *thread = machine__findnew_thread(machine, event->ip.pid, |
505 | event->ip.tid); | ||
505 | 506 | ||
506 | if (thread == NULL) { | 507 | if (thread == NULL) { |
507 | pr_debug("problem processing %d event, skipping it.\n", | 508 | pr_debug("problem processing %d event, skipping it.\n", |