diff options
Diffstat (limited to 'tools/perf/tests/code-reading.c')
-rw-r--r-- | tools/perf/tests/code-reading.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/perf/tests/code-reading.c b/tools/perf/tests/code-reading.c index bfb186900ac0..67f2d6323558 100644 --- a/tools/perf/tests/code-reading.c +++ b/tools/perf/tests/code-reading.c | |||
@@ -1,8 +1,7 @@ | |||
1 | #include <sys/types.h> | 1 | #include <linux/types.h> |
2 | #include <stdlib.h> | 2 | #include <stdlib.h> |
3 | #include <unistd.h> | 3 | #include <unistd.h> |
4 | #include <stdio.h> | 4 | #include <stdio.h> |
5 | #include <inttypes.h> | ||
6 | #include <ctype.h> | 5 | #include <ctype.h> |
7 | #include <string.h> | 6 | #include <string.h> |
8 | 7 | ||
@@ -257,7 +256,7 @@ static int process_sample_event(struct machine *machine, | |||
257 | return -1; | 256 | return -1; |
258 | } | 257 | } |
259 | 258 | ||
260 | thread = machine__findnew_thread(machine, sample.pid, sample.pid); | 259 | thread = machine__findnew_thread(machine, sample.pid, sample.tid); |
261 | if (!thread) { | 260 | if (!thread) { |
262 | pr_debug("machine__findnew_thread failed\n"); | 261 | pr_debug("machine__findnew_thread failed\n"); |
263 | return -1; | 262 | return -1; |