diff options
Diffstat (limited to 'tools/perf/builtin-script.c')
| -rw-r--r-- | tools/perf/builtin-script.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index d82712f169b3..93a34cef9676 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c | |||
| @@ -501,8 +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.pid, | 504 | struct thread *thread = machine__findnew_thread(machine, sample->pid, |
| 505 | event->ip.tid); | 505 | sample->tid); |
| 506 | 506 | ||
| 507 | if (thread == NULL) { | 507 | if (thread == NULL) { |
| 508 | pr_debug("problem processing %d event, skipping it.\n", | 508 | pr_debug("problem processing %d event, skipping it.\n", |
