Re: [PATCH v1] perf sample: Make user_regs and intr_regs optional
From: Namhyung Kim
Date: Thu Feb 13 2025 - 12:22:30 EST
On Mon, 13 Jan 2025 11:43:45 -0800, Ian Rogers wrote:
> The struct dump_regs contains 512 bytes of cache_regs, meaning the two
> values in perf_sample contribute 1088 bytes of its total 1384 bytes
> size. Initializing this much memory has a cost reported by Tavian
> Barnes <tavianator@xxxxxxxxxxxxxx> as about 2.5% when running `perf
> script --itrace=i0`:
> https://lore.kernel.org/lkml/d841b97b3ad2ca8bcab07e4293375fb7c32dfce7.1736618095.git.tavianator@xxxxxxxxxxxxxx/
>
> [...]
Applied to perf-tools-next, thanks!
Best regards,
Namhyung