aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/tests/code-reading.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/tests/code-reading.c')
-rw-r--r--tools/perf/tests/code-reading.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/tests/code-reading.c b/tools/perf/tests/code-reading.c
index df9afd9cab4c..6fb781d5586c 100644
--- a/tools/perf/tests/code-reading.c
+++ b/tools/perf/tests/code-reading.c
@@ -257,7 +257,7 @@ static int process_sample_event(struct machine *machine,
257 return -1; 257 return -1;
258 } 258 }
259 259
260 thread = machine__findnew_thread(machine, sample.pid); 260 thread = machine__findnew_thread(machine, sample.pid, sample.pid);
261 if (!thread) { 261 if (!thread) {
262 pr_debug("machine__findnew_thread failed\n"); 262 pr_debug("machine__findnew_thread failed\n");
263 return -1; 263 return -1;
@@ -446,7 +446,7 @@ static int do_test_code_reading(bool try_kcore)
446 goto out_err; 446 goto out_err;
447 } 447 }
448 448
449 thread = machine__findnew_thread(machine, pid); 449 thread = machine__findnew_thread(machine, pid, pid);
450 if (!thread) { 450 if (!thread) {
451 pr_debug("machine__findnew_thread failed\n"); 451 pr_debug("machine__findnew_thread failed\n");
452 goto out_err; 452 goto out_err;