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

Uros Bizjak posted 3 patches 3 years, 1 month ago
There is a newer version of this series
kernel/trace/ring_buffer.c | 77 ++++++++++++++++----------------------
1 file changed, 33 insertions(+), 44 deletions(-)
[PATCH v2 0/3] Improve trace/ring_buffer.c
Posted by Uros Bizjak 3 years, 1 month ago
*** BLURB HERE ***

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, 33 insertions(+), 44 deletions(-)

-- 
2.39.2
Re: [PATCH v2 0/3] Improve trace/ring_buffer.c
Posted by Uros Bizjak 3 years, 1 month ago
On Thu, Mar 2, 2023 at 5:41 PM Uros Bizjak <ubizjak@gmail.com> wrote:
>
> *** BLURB HERE ***

Eh...

Here should read:

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.

Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>

> 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, 33 insertions(+), 44 deletions(-)
>
> --
> 2.39.2
>