]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf hist: Shrink struct hist_entry size
authorDmitry Vyukov <dvyukov@google.com>
Thu, 13 Feb 2025 09:08:22 +0000 (10:08 +0100)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 18 Feb 2025 22:04:32 +0000 (14:04 -0800)
commit5e838165d0c2d7eff5f515756e0414bf289d70b9
treec5809c732080ec1d3963d4d474060acb4bb73fdf
parent257facfaf54295ae16446ab14060b1e84453383c
perf hist: Shrink struct hist_entry size

Reorder the struct fields by size to reduce paddings and reduce
struct simd_flags size from 8 to 1 byte.

This reduces struct hist_entry size by 8 bytes (592->584),
and leaves a single more usable 6 byte padding hole.

Signed-off-by: Dmitry Vyukov <dvyukov@google.com>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Link: https://lore.kernel.org/r/7c1cb1c8f9901e945162701ba7269d0f9c70be89.1739437531.git.dvyukov@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/hist.h
tools/perf/util/sample.h