Skip to content

Improve trace/ring_buffer.c

Uros Bizjak linux-trace-kernel lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 1 replyIn review
  2. v33 patches 4 repliesSuperseded
  3. v23 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches18 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ring_buffer: Change some static functions to voidkernel/trace/ring_buffer.c+7 -150 replies
2/3ring_buffer: Change some static functions to boolkernel/trace/ring_buffer.c+23 -240 replies
3/3ring_buffer: Use try_cmpxchg instead of cmpxchgkernel/trace/ring_buffer.c+4 -41 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchMasami HiramatsuMukesh Ojha
1/3R-b R-b
2/3R-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

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

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 <[email protected]>
Cc Masami Hiramatsu <[email protected]>
Cc Mukesh Ojha <[email protected]>

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(-)
Signature · 1 line
2.39.2