aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2023-07-14 17:43:34 +0200
committerSteven Rostedt (Google) <rostedt@goodmis.org>2023-07-30 18:11:45 -0400
commit00a8478f8f5c0201004240746dd74d69d86fc0c4 (patch)
tree823215d91b6a2243e1fd5c8a8bf721c541a8c117 /tools/perf/scripts/python/syscall-counts.py
parente7186af7fb2609584a8bfb3da3c6ae09da5a5224 (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/20230714154418.8884-1-ubizjak@gmail.com Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Uros Bizjak <ubizjak@gmail.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions