aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2023-09-14 18:34:02 +0200
committerSteven Rostedt (Google) <rostedt@goodmis.org>2023-10-03 21:44:38 -0400
commitbdf4fb628093b4ab2f4eb312256233a2ae0594b7 (patch)
tree2935e2509d51097ed3eb9be16b1038f60f0a0049 /tools/perf/scripts/python/call-graph-from-postgresql.py
parenttracing: Expand all ring buffers individually (diff)
downloadwireguard-linux-bdf4fb628093b4ab2f4eb312256233a2ae0594b7.tar.xz
wireguard-linux-bdf4fb628093b4ab2f4eb312256233a2ae0594b7.zip
ring_buffer: Use try_cmpxchg instead of cmpxchg in rb_insert_pages
Use try_cmpxchg instead of cmpxchg (*ptr, old, new) == old in rb_insert_pages. 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/20230914163420.12923-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/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions