diff options
| author | Uros Bizjak <[email protected]> | 2023-07-14 17:43:34 +0200 |
|---|---|---|
| committer | Steven Rostedt (Google) <[email protected]> | 2023-07-30 18:11:45 -0400 |
| commit | 00a8478f8f5c0201004240746dd74d69d86fc0c4 (patch) | |
| tree | 823215d91b6a2243e1fd5c8a8bf721c541a8c117 /tools/perf/scripts/python/stackcollapse.py | |
| parent | e7186af7fb2609584a8bfb3da3c6ae09da5a5224 (diff) | |
ring_buffer: Use try_cmpxchg instead of cmpxchg
Use try_cmpxchg instead of cmpxchg (*ptr, old, new) == old in
ring_buffer.c. x86 CMPXCHG instruction returns success in ZF flag,
so this change saves a compare after cmpxchg (and related move
instruction in front of cmpxchg).
No functional change intended.
Link: https://lore.kernel.org/linux-trace-kernel/[email protected]
Cc: Steven Rostedt <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Signed-off-by: Uros Bizjak <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions