linux-trace-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] Improve trace/ring_buffer.c
@ 2023-03-03 15:17 Uros Bizjak
  2023-03-03 15:17 ` [PATCH v3 1/3] ring_buffer: Change some static functions to void Uros Bizjak
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Uros Bizjak @ 2023-03-03 15:17 UTC (permalink / raw)
  To: linux-trace-kernel, linux-kernel
  Cc: Uros Bizjak, Steven Rostedt, Masami Hiramatsu

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.
 
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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-03-04  8:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-03 15:17 [PATCH v3 0/3] Improve trace/ring_buffer.c Uros Bizjak
2023-03-03 15:17 ` [PATCH v3 1/3] ring_buffer: Change some static functions to void Uros Bizjak
2023-03-03 16:16   ` Mukesh Ojha
2023-03-03 15:17 ` [PATCH v3 2/3] ring_buffer: Change some static functions to bool Uros Bizjak
2023-03-03 16:34   ` Mukesh Ojha
2023-03-03 17:07     ` Steven Rostedt
2023-03-04  8:56     ` Uros Bizjak
2023-03-03 15:17 ` [PATCH v3 3/3] ring_buffer: Use try_cmpxchg instead of cmpxchg Uros Bizjak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).