diff options
-rw-r--r-- | tools/perf/builtin-annotate.c | 4 | ||||
-rw-r--r-- | tools/perf/builtin-report.c | 4 | ||||
-rw-r--r-- | tools/perf/builtin-sched.c | 4 | ||||
-rw-r--r-- | tools/perf/builtin-trace.c | 4 |
4 files changed, 8 insertions, 8 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); |
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 015c79745966..a4f8cc209151 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c | |||
@@ -629,14 +629,14 @@ process_sample_event(event_t *event, unsigned long offset, unsigned long head) | |||
629 | } | 629 | } |
630 | } | 630 | } |
631 | 631 | ||
632 | dump_printf(" ... thread: %s:%d\n", thread->comm, thread->pid); | ||
633 | |||
634 | if (thread == NULL) { | 632 | if (thread == NULL) { |
635 | eprintf("problem processing %d event, skipping it.\n", | 633 | eprintf("problem processing %d event, skipping it.\n", |
636 | event->header.type); | 634 | event->header.type); |
637 | return -1; | 635 | return -1; |
638 | } | 636 | } |
639 | 637 | ||
638 | dump_printf(" ... thread: %s:%d\n", thread->comm, thread->pid); | ||
639 | |||
640 | if (comm_list && !strlist__has_entry(comm_list, thread->comm)) | 640 | if (comm_list && !strlist__has_entry(comm_list, thread->comm)) |
641 | return 0; | 641 | return 0; |
642 | 642 | ||
diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c index c9c68563e964..57ad3f458ef5 100644 --- a/tools/perf/builtin-sched.c +++ b/tools/perf/builtin-sched.c | |||
@@ -1667,14 +1667,14 @@ process_sample_event(event_t *event, unsigned long offset, unsigned long head) | |||
1667 | (void *)(long)ip, | 1667 | (void *)(long)ip, |
1668 | (long long)period); | 1668 | (long long)period); |
1669 | 1669 | ||
1670 | dump_printf(" ... thread: %s:%d\n", thread->comm, thread->pid); | ||
1671 | |||
1672 | if (thread == NULL) { | 1670 | if (thread == NULL) { |
1673 | eprintf("problem processing %d event, skipping it.\n", | 1671 | eprintf("problem processing %d event, skipping it.\n", |
1674 | event->header.type); | 1672 | event->header.type); |
1675 | return -1; | 1673 | return -1; |
1676 | } | 1674 | } |
1677 | 1675 | ||
1676 | dump_printf(" ... thread: %s:%d\n", thread->comm, thread->pid); | ||
1677 | |||
1678 | if (profile_cpu != -1 && profile_cpu != (int) cpu) | 1678 | if (profile_cpu != -1 && profile_cpu != (int) cpu) |
1679 | return 0; | 1679 | return 0; |
1680 | 1680 | ||
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index ce8459ac2845..4c129ff0bb16 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c | |||
@@ -80,14 +80,14 @@ process_sample_event(event_t *event, unsigned long offset, unsigned long head) | |||
80 | (void *)(long)ip, | 80 | (void *)(long)ip, |
81 | (long long)period); | 81 | (long long)period); |
82 | 82 | ||
83 | dump_printf(" ... thread: %s:%d\n", thread->comm, thread->pid); | ||
84 | |||
85 | if (thread == NULL) { | 83 | if (thread == NULL) { |
86 | eprintf("problem processing %d event, skipping it.\n", | 84 | eprintf("problem processing %d event, skipping it.\n", |
87 | event->header.type); | 85 | event->header.type); |
88 | return -1; | 86 | return -1; |
89 | } | 87 | } |
90 | 88 | ||
89 | dump_printf(" ... thread: %s:%d\n", thread->comm, thread->pid); | ||
90 | |||
91 | if (sample_type & PERF_SAMPLE_RAW) { | 91 | if (sample_type & PERF_SAMPLE_RAW) { |
92 | struct { | 92 | struct { |
93 | u32 size; | 93 | u32 size; |