diff options
| author | 2026-08-24 16:27:11 +0800 | |
|---|---|---|
| committer | 2026-09-02 13:10:40 +0200 | |
| commit | bbdf84fcedfa4f1e570e12e7657f7095f6e7d340 (patch) | |
| tree | bc7f9e6ce36da31f1e5312d35b609c9fb5e60c5f /scripts | |
| parent | perf/x86/intel: Enable large PEBS sampling for XMMs (diff) | |
perf/x86/intel: Convert x86_perf_regs to per-cpu variables
Currently, the drain_pebs() helpers, e.g., intel_pmu_drain_arch_pebs()
define an on-stack x86_perf_regs. Upcoming patches will add new fields
like *ymm_regs and *zmm_regs to the x86_perf_regs structure to support
sampling for these SIMD registers. This would increase the stack size
consumed by these helpers, potentially triggering the warning:
"the frame size of 1048 bytes is larger than 1024 bytes
[-Wframe-larger-than=]".
To eliminate this warning, convert x86_perf_regs to per-cpu variables.
Please note drain_pebs() can't be interrupted by other NMIs since
either it's already in NMI context or PMU is already disabled.
Signed-off-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260824082731.1013973-4-dapeng1.mi@linux.intel.com
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
