aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/builtin-report.c5
-rw-r--r--tools/perf/util/event.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index 359205782964..207da1849800 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -157,8 +157,9 @@ static int process_sample_event(event_t *event, struct perf_session *session)
157 157
158 event__parse_sample(event, session->sample_type, &data); 158 event__parse_sample(event, session->sample_type, &data);
159 159
160 dump_printf("(IP, %d): %d/%d: %#Lx period: %Ld\n", event->header.misc, 160 dump_printf("(IP, %d): %d/%d: %#Lx period: %Ld cpu:%d\n",
161 data.pid, data.tid, data.ip, data.period); 161 event->header.misc, data.pid, data.tid, data.ip,
162 data.period, data.cpu);
162 163
163 if (session->sample_type & PERF_SAMPLE_CALLCHAIN) { 164 if (session->sample_type & PERF_SAMPLE_CALLCHAIN) {
164 unsigned int i; 165 unsigned int i;
diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c
index 1f08f008d289..891753255f54 100644
--- a/tools/perf/util/event.c
+++ b/tools/perf/util/event.c
@@ -765,7 +765,8 @@ int event__parse_sample(event_t *event, u64 type, struct sample_data *data)
765 u32 *p = (u32 *)array; 765 u32 *p = (u32 *)array;
766 data->cpu = *p; 766 data->cpu = *p;
767 array++; 767 array++;
768 } 768 } else
769 data->cpu = -1;
769 770
770 if (type & PERF_SAMPLE_PERIOD) { 771 if (type & PERF_SAMPLE_PERIOD) {
771 data->period = *array; 772 data->period = *array;