diff options
| author | Mark Rutland <[email protected]> | 2023-04-13 16:06:44 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2023-04-29 07:09:31 +0000 |
| commit | ec570320b09f76d52819e60abdccf372658216b6 (patch) | |
| tree | 84f20c89e91ee82eab626f0d510a63a335149dc5 /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
| parent | locking/x86: Define arch_try_cmpxchg_local() (diff) | |
| download | kernel-ec570320b09f76d52819e60abdccf372658216b6.tar.gz kernel-ec570320b09f76d52819e60abdccf372658216b6.zip | |
locking/atomic: Correct (cmp)xchg() instrumentation
All xchg() and cmpxchg() ops are atomic RMWs, but currently we
instrument these with instrument_atomic_write() rather than
instrument_atomic_read_write(), missing the read aspect.
Similarly, all try_cmpxchg() ops are non-atomic RMWs on *oldp, but we
instrument these accesses with instrument_atomic_write() rather than
instrument_read_write(), missing the read aspect and erroneously marking
these as atomic.
Fix the instrumentation for both points.
Signed-off-by: Mark Rutland <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Cc: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions
