summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2026-09-15 17:45:16 -0700
committerPeter Zijlstra <peterz@infradead.org>2026-09-25 12:45:52 +0200
commitdf935e26ca9a8fd4ac7431b73348938250f80c6e (patch)
tree7c7d40baa69134640744b8077ce5162ddc1add5c /tools/perf/scripts/python/bin/stackcollapse-report
parentdf53fbc909cd7a3c973aaff716983c2791ba879a (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 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions