mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/3] tracing: add trace_seq_reset function
@ 2024-01-25 22:28 Ricardo B. Marliere
  2024-01-25 22:28 ` [PATCH v3 1/3] tracing: initialize trace_seq buffers Ricardo B. Marliere
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Ricardo B. Marliere @ 2024-01-25 22:28 UTC (permalink / raw)
  To: Steven Rostedt, Masami Hiramatsu, Mathieu Desnoyers
  Cc: Ricardo B. Marliere, linux-kernel, linux-trace-kernel

This series is a prerequisite for a later effort of making trace_seq more
flexible about its buffer size. To achieve that, initializing and resetting
the buffers need to be differentiated.

Changes in v3:
- Reordered commits so it doesn't produce a failing build in-between.
- Improved changelogs.

Changes in v2:
- Added a WARN_ON_ONCE to __trace_seq_init to catch possible misuses.
- Properly initialized trace_seq buffers.

Ricardo B. Marliere (3):
  tracing: initialize trace_seq buffers
  tracing: add trace_seq_reset function
  tracing: convert __trace_seq_init to use WARN_ON_ONCE

 include/linux/trace_seq.h    | 11 +++++++++++
 include/trace/trace_events.h |  2 +-
 kernel/trace/trace.c         | 24 +++++++++++++++++++-----
 kernel/trace/trace_output.c  |  2 +-
 kernel/trace/trace_seq.c     |  4 ++--
 5 files changed, 34 insertions(+), 9 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2024-02-05 13:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-25 22:28 [PATCH v3 0/3] tracing: add trace_seq_reset function Ricardo B. Marliere
2024-01-25 22:28 ` [PATCH v3 1/3] tracing: initialize trace_seq buffers Ricardo B. Marliere
2024-01-25 22:28 ` [PATCH v3 2/3] tracing: add trace_seq_reset function Ricardo B. Marliere
2024-01-25 22:28 ` [PATCH v3 3/3] tracing: convert __trace_seq_init to use WARN_ON_ONCE Ricardo B. Marliere
2024-02-05 13:59   ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome