diff options
| author | 2026-09-15 17:45:16 -0700 | |
|---|---|---|
| committer | 2026-09-25 12:45:52 +0200 | |
| commit | df935e26ca9a8fd4ac7431b73348938250f80c6e (patch) | |
| tree | 7c7d40baa69134640744b8077ce5162ddc1add5c /scripts/Makefile.thinlto | |
| parent | Merge branch 'perf/urgent' into perf/core, to resolve conflict (diff) | |
perf/x86/amd/uncore: Turn amd_uncore_ctx events into a flexible array
The events pointer was kzalloc_node()'d immediately after the parent
struct allocation, with the count (pmu->num_counters) trivially
available beforehand. Move events to the struct tail as a flexible
array member and fold the two allocations into a single kzalloc_node()
with struct_size(), dropping the separate kfree(ctx->events) in the
free path.
Assisted-by: Claude:Opus-4.7
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Sandipan Das <sandipan.das@amd.com>
Link: https://patch.msgid.link/20260916004516.268192-1-rosenp@gmail.com
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
