diff options
Diffstat (limited to 'tools/perf/builtin-kmem.c')
-rw-r--r-- | tools/perf/builtin-kmem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-kmem.c b/tools/perf/builtin-kmem.c index c32477837cb0..c2dff9cb1f2c 100644 --- a/tools/perf/builtin-kmem.c +++ b/tools/perf/builtin-kmem.c | |||
@@ -305,8 +305,8 @@ static int process_sample_event(struct perf_tool *tool __maybe_unused, | |||
305 | struct perf_evsel *evsel, | 305 | struct perf_evsel *evsel, |
306 | struct machine *machine) | 306 | struct machine *machine) |
307 | { | 307 | { |
308 | struct thread *thread = machine__findnew_thread(machine, event->ip.pid, | 308 | struct thread *thread = machine__findnew_thread(machine, sample->pid, |
309 | event->ip.pid); | 309 | sample->pid); |
310 | 310 | ||
311 | if (thread == NULL) { | 311 | if (thread == NULL) { |
312 | pr_debug("problem processing %d event, skipping it.\n", | 312 | pr_debug("problem processing %d event, skipping it.\n", |