diff options
Diffstat (limited to 'tools/perf/util/event.c')
| -rw-r--r-- | tools/perf/util/event.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |
