diff options
author | Marco Elver <[email protected]> | 2022-08-29 14:47:14 +0200 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2022-08-30 10:56:23 +0200 |
commit | f95e5a3d59011eec1257d0e76de1e1f8969d426f (patch) | |
tree | 7006acea7638507594b1f481bae7f91dcec29d94 /tools/perf/scripts/python | |
parent | 24198ad373ad1e30b638aa147142dc21ab5757e7 (diff) |
powerpc/hw_breakpoint: Avoid relying on caller synchronization
Internal data structures (cpu_bps, task_bps) of powerpc's hw_breakpoint
implementation have relied on nr_bp_mutex serializing access to them.
Before overhauling synchronization of kernel/events/hw_breakpoint.c,
introduce 2 spinlocks to synchronize cpu_bps and task_bps respectively,
thus avoiding reliance on callers synchronizing powerpc's hw_breakpoint.
Reported-by: Dmitry Vyukov <[email protected]>
Signed-off-by: Marco Elver <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Acked-by: Dmitry Vyukov <[email protected]>
Acked-by: Ian Rogers <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions