Re: [PATCH] tracing: add trace_seq_reset function

2024-01-22 Thread Steven Rostedt
On Mon, 22 Jan 2024 19:45:41 -0300 "Ricardo B. Marliere" wrote: > > Perhaps we need a: > > > > if (WARN_ON_ONCE(!s->seq.size)) > > seq_buf_init(&s->seq, s->buffer, TRACE_SEQ_BUFFER_SIZE); > > else > > seq_buf_clear(&s->seq); > > > > > > in the trace_seq_reset()

Re: [PATCH] tracing: add trace_seq_reset function

2024-01-22 Thread Ricardo B. Marliere
On 22 Jan 17:10, Steven Rostedt wrote: > On Mon, 22 Jan 2024 15:22:25 -0300 > "Ricardo B. Marliere" wrote: > > > Currently, trace_seq_init may be called many times with the intent of > > resetting the buffer. Add a function trace_seq_reset that does that and > > replace the relevant occurrences t

Re: [PATCH] tracing: add trace_seq_reset function

2024-01-22 Thread Steven Rostedt
On Mon, 22 Jan 2024 15:22:25 -0300 "Ricardo B. Marliere" wrote: > Currently, trace_seq_init may be called many times with the intent of > resetting the buffer. Add a function trace_seq_reset that does that and > replace the relevant occurrences to use it instead. > Hi Ricardo! It's also OK to