[PATCH v4 0/3] Improve trace/ring_buffer.c

Uros Bizjak posted 3 patches 2 years, 6 months ago
kernel/trace/ring_buffer.c | 77 +++++++++++++++++---------------------
1 file changed, 34 insertions(+), 43 deletions(-)
[PATCH v4 0/3] Improve trace/ring_buffer.c
Posted by Uros Bizjak 2 years, 6 months ago
This series improves ring_buffer.c by changing the type of some
static functions to void or bool and uses try_cmpxchg instead of
cmpxchg (*ptr, old, new) == old where appropriate.

v2: Convert only loops with cmpxchg.
v3: Rearrange variable declarations.
v4: Change ret in rb_get_reader_page.
    Rearrange variable declarations.

Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mukesh Ojha <quic_mojha@quicinc.com>

Uros Bizjak (3):
  ring_buffer: Change some static functions to void
  ring_buffer: Change some static functions to bool
  ring_buffer: Use try_cmpxchg instead of cmpxchg

 kernel/trace/ring_buffer.c | 77 +++++++++++++++++---------------------
 1 file changed, 34 insertions(+), 43 deletions(-)

-- 
2.39.2