diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c index 0cd42150f712e88b89614952c65293a9451dffe9..0988eb3b844b0f2d4aae74e6e70c3a99273a868d 100644 --- a/tools/perf/util/event.c +++ b/tools/perf/util/event.c @@ -1081,6 +1081,7 @@ void *cpu_map_data__alloc(struct cpu_map *map, size_t *size, u16 *type, int *max } *size += sizeof(struct cpu_map_data); + *size = PERF_ALIGN(*size, sizeof(u64)); return zalloc(*size); }