diff options
author | Peter Zijlstra <[email protected]> | 2018-09-25 17:58:35 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2018-10-02 09:37:56 +0200 |
commit | a9f9772114c8b07ae75bcb3654bd017461248095 (patch) | |
tree | af2008edb00495276c182e7d77f8c334ab502ef1 /tools/perf/util/trace-event-scripting.c | |
parent | 291d0e5d81e101392379217b06251fe8c27f1f80 (diff) |
perf/core: Fix perf_pmu_unregister() locking
When we unregister a PMU, we fail to serialize the @pmu_idr properly.
Fix that by doing the entire thing under pmu_lock.
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Vince Weaver <[email protected]>
Fixes: 2e80a82a49c4 ("perf: Dynamic pmu types")
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions