mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [for-next][PATCH 0/4] tracing: trace_puts() and faster trace_printk()
@ 2013-03-10 15:27 Steven Rostedt
  2013-03-10 15:27 ` [for-next][PATCH 1/4] tracing: Add trace_puts() for even faster trace_printk() tracing Steven Rostedt
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Steven Rostedt @ 2013-03-10 15:27 UTC (permalink / raw)
  To: linux-kernel
  Cc: Ingo Molnar, Andrew Morton, Thomas Gleixner, Peter Zijlstra,
	Frederic Weisbecker


I thought I was done with my ftrace 3.10 patches, but oh well. There's
a few more things that I want to do for 3.10.

I noticed that I used trace_printk() in my tracing_snapshot() in case
it was used incorrectly, but then I realized that those caused the
kernel to preallocate the trace_printk() context buffers all the time
(1 page per context [4 of them], and per cpu). This was not what I wanted.
Thus is started creating a special "internal to ftrace" use that
would not need the context buffers. I added a trace_puts() for this
and then realized that this would be nice for others to use as trace_printk(),
even when doing a trace_bprintk(), still requires a scan of the fmt
string when there are no arguments in use.

Then I thought it would be nice if the compiler just picked trace_puts()
when trace_printk() had no args. Thus, I pulled out my old macro wizard
robe, hat and wand and started playing again. And I came up with patch #2.
:-)

These 4 patches are specific for using ftrace by developers, as the
functions an not called anywhere and are only to be used when a developer
is debugging their code.

Enjoy,

-- Steve


Steven Rostedt (Red Hat) (4):
      tracing: Add trace_puts() for even faster trace_printk() tracing
      tracing: Optimize trace_printk() with one arg to use trace_puts()
      tracing: Add internal ftrace trace_puts() for ftrace to use
      tracing: Let tracing_snapshot() be used by modules but not NMI

----
 include/linux/kernel.h       |   64 +++++++++++++++++++++++++++-
 kernel/trace/trace.c         |   94 ++++++++++++++++++++++++++++++++++++++++--
 kernel/trace/trace.h         |   13 ++++++
 kernel/trace/trace_entries.h |   23 +++++++++--
 kernel/trace/trace_output.c  |   75 +++++++++++++++++++++++++++++++++
 kernel/trace/trace_output.h  |    2 +
 6 files changed, 261 insertions(+), 10 deletions(-)

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

end of thread, other threads:[~2013-03-10 15:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-10 15:27 [for-next][PATCH 0/4] tracing: trace_puts() and faster trace_printk() Steven Rostedt
2013-03-10 15:27 ` [for-next][PATCH 1/4] tracing: Add trace_puts() for even faster trace_printk() tracing Steven Rostedt
2013-03-10 15:27 ` [for-next][PATCH 2/4] tracing: Optimize trace_printk() with one arg to use trace_puts() Steven Rostedt
2013-03-10 15:27 ` [for-next][PATCH 3/4] tracing: Add internal ftrace trace_puts() for ftrace to use Steven Rostedt
2013-03-10 15:27 ` [for-next][PATCH 4/4] tracing: Let tracing_snapshot() be used by modules but not NMI Steven Rostedt

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

all inboxes | Powered by JetHome®