aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-annotate.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-annotate.c')
-rw-r--r--tools/perf/builtin-annotate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c
index 3fe0de03004d..56ba71658d70 100644
--- a/tools/perf/builtin-annotate.c
+++ b/tools/perf/builtin-annotate.c
@@ -104,14 +104,14 @@ process_sample_event(event_t *event, unsigned long offset, unsigned long head)
104 event->ip.pid, 104 event->ip.pid,
105 (void *)(long)ip); 105 (void *)(long)ip);
106 106
107 dump_printf(" ... thread: %s:%d\n", thread->comm, thread->pid);
108
109 if (thread == NULL) { 107 if (thread == NULL) {
110 fprintf(stderr, "problem processing %d event, skipping it.\n", 108 fprintf(stderr, "problem processing %d event, skipping it.\n",
111 event->header.type); 109 event->header.type);
112 return -1; 110 return -1;
113 } 111 }
114 112
113 dump_printf(" ... thread: %s:%d\n", thread->comm, thread->pid);
114
115 if (event->header.misc & PERF_RECORD_MISC_KERNEL) { 115 if (event->header.misc & PERF_RECORD_MISC_KERNEL) {
116 level = 'k'; 116 level = 'k';
117 sym = kernel_maps__find_symbol(ip, &map); 117 sym = kernel_maps__find_symbol(ip, &map);