Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: Fix perf_cgroup_switch for sw-events
commit 95cf59ea72331d0093010543b8951bb43f262cac upstream. Jiri reported that he could trigger the WARN_ON_ONCE() in perf_cgroup_switch() using sw-events. This is because sw-events share a cpuctx with multiple PMUs. Use the ->unique_pmu pointer to limit the pmu iteration to unique cpuctx instances. Change-Id: Id1b5b20f99a6215a6f9532c4a87724302acbde3e Original-Change-Id: Ia478a7650e0286968b9259eb4c87a72b3d95d368 Reported-and-Tested-by: Jiri Olsa <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Ingo Molnar <[email protected]> Cc: Li Zefan <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information