summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorHaris Okanovic <harisokn@amazon.com>2026-10-13 13:56:00 -0500
committerPeter Zijlstra <peterz@infradead.org>2026-10-16 09:49:01 +0200
commite76b36b4be7160eaa14b416681e548b125702395 (patch)
tree57ebcad86ffa8e675454182126f8556e8d10557e /tools/perf/scripts/python/bin
parent78436f3882fb8d848c823bf8cf754988202c5ca5 (diff)
perf: Fix perf_pmu_migrate_context() leaving events behind
__perf_pmu_remove() walks the group leaders of a CPU and PMU with perf_event_groups_for_cpu_pmu(), removing each one as it goes. perf_remove_from_context() takes the leader out of the groups rbtree, after which rb_next() on that node returns NULL, prematurely ending the walk. Other groups stay behind in the source context. On CPU hotplug, they are then torn down with the dying CPU. They keep running until teardown, while the PMU's interrupt and migrated events are on a new CPU, which drivers rely on never happening. Walk ctx->event_list instead and pick out the PMU's events by their pmu_ctx. Fixes: bd2756811766 ("perf: Rewrite core context handling") Signed-off-by: Haris Okanovic <harisokn@amazon.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://patch.msgid.link/20261013185603.1347265-2-harisokn@amazon.com
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions