summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSandipan Das <sandipan.das@amd.com>2026-07-01 11:12:00 +0530
committerIngo Molnar <mingo@kernel.org>2026-07-04 10:59:15 +0200
commitedda9051e267b7390c7ce24b1b71434414ad156e (patch)
tree77f2d0df7bda7bdd5bf8dcaaa71d6b4e5aa0175e /tools/perf/scripts/python
parentd7ebbae57de3f37ff42b6f67f40cc67827b23c4f (diff)
perf/x86/amd/uncore: Add group validation
The amd_uncore driver currently does not validate event groups and allows creation of groups with more events than the number of available hardware counters. Because of this, pmu->event_init() succeeds but counter assignment fails later in pmu->add() which returns -EBUSY once all counters are exhausted. Address this by introducing group validation in the pmu->event_init() path. Since the uncore PMUs have no per-event constraints and all counters of a PMU are interchangeable, validation is reduced to just counting the group members that target a PMU and ensuring that they fit within the available set of counters. Fixes: c43ca5091a37 ("perf/x86/amd: Add support for AMD NB and L2I "uncore" counters") Signed-off-by: Sandipan Das <sandipan.das@amd.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://patch.msgid.link/750877d66e208603c3047f13eed6399625d43969.1782884387.git.sandipan.das@amd.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions