linux-trace-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/1] Put seq_buf on a diet
@ 2023-10-20  3:35 Matthew Wilcox (Oracle)
  2023-10-20  3:35 ` [PATCH v2 1/1] trace: Move readpos from seq_buf to trace_seq Matthew Wilcox (Oracle)
  0 siblings, 1 reply; 4+ messages in thread
From: Matthew Wilcox (Oracle) @ 2023-10-20  3:35 UTC (permalink / raw)
  To: Steven Rostedt
  Cc: Matthew Wilcox (Oracle), Kees Cook, Christoph Hellwig,
	Justin Stitt, linux-hardening, linux-kernel, Kent Overstreet,
	Petr Mladek, Andy Shevchenko, Rasmus Villemoes,
	Sergey Senozhatsky, linux-trace-kernel

Prompted by the recent mails on ksummit, let's actually try to make this
work this time.  We need a container for manipulating strings easily,
and seq_buf is the closest thing we have to it.  The only problem I have
with it is the readpos that is only useful for the tracing code today.
So move it from the seq_buf to the tracing code.

We should go further with this patch series, including using seq_buf
within vsprintf, but if we can't get over this hurdle first, I'm not
going to waste my time on this again.

v2:
 - Add linux-trace-kernel@vger.kernel.org
 - Fix kernel-doc

Matthew Wilcox (Oracle) (1):
  trace: Move readpos from seq_buf to trace_seq

 include/linux/seq_buf.h   |  5 +----
 include/linux/trace_seq.h |  2 ++
 kernel/trace/trace.c      | 10 +++++-----
 kernel/trace/trace_seq.c  |  6 +++++-
 lib/seq_buf.c             | 22 ++++++++++------------
 5 files changed, 23 insertions(+), 22 deletions(-)

-- 
2.40.1


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

end of thread, other threads:[~2023-10-20  5:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-20  3:35 [PATCH v2 0/1] Put seq_buf on a diet Matthew Wilcox (Oracle)
2023-10-20  3:35 ` [PATCH v2 1/1] trace: Move readpos from seq_buf to trace_seq Matthew Wilcox (Oracle)
2023-10-20  4:48   ` Christoph Hellwig
2023-10-20  5:05   ` Greg KH

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