diff options
| author | Ben Horgan <ben.horgan@arm.com> | 2026-09-17 15:56:17 +0100 |
|---|---|---|
| committer | James Morse <james.morse@arm.com> | 2026-10-02 17:39:33 +0100 |
| commit | 1c39415492323b9c5fd4a59179b390d45c26778a (patch) | |
| tree | c1105cc2d72a553796d53add027ddb70604415d8 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 046384f02b57da84a697d32aff7d7d46e881ae84 (diff) | |
arm_mpam: resctrl: Don't stop early when tearing down a class
An MPAM class can back more than one control and more than one
monitor. mpam_resctrl_teardown_class() iterates through all the controls
but stops if it finds a match which means classes backing more than one
class aren't torn down. The same for monitors, in which case the mbwu
counters will be leaked.
Stop terminating the loops early.
As we are already changing mpam_resctrl_teardown_class() remove the
misleading comment. It doesn't call resctrl_exit() and isn't required to do
so as the only caller does it first.
Fixes: fb481ec08699 ("arm_mpam: resctrl: Call resctrl_init() on platforms that can support resctrl")
Reported-by: Sashiko <sashiko-bot@kernel.org>
Signed-off-by: Ben Horgan <ben.horgan@arm.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: James Morse <james.morse@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
