linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [for-next][PATCH 0/7] tracing: [4.12] Allow function tracing to start earlier in boot up
@ 2017-03-28 22:16 Steven Rostedt
  2017-03-28 22:16 ` [for-next][PATCH 1/7] tracing: Split tracing initialization into two for early initialization Steven Rostedt
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Steven Rostedt @ 2017-03-28 22:16 UTC (permalink / raw)
  To: linux-kernel; +Cc: Ingo Molnar, Andrew Morton


I've had people ask about moving tracing up further in the boot process.
This patch series looks at function tracing only. It allows for tracing
(and function filtering) to be moved right after memory is initialized.
To have it happen before memory initialization would require a bit more
work with allocating the ring buffer. But this is a start.

I placed a hook into free_reserved_area() which is used by all archs
to free the init memory. Having it pass the range being freed to ftrace
lets ftrace clean up any function that is registered such that it doesn't
try to modify code that no longer exists. 

  git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git
for-next

Head SHA1: 2b87965a1e6b6051435315d3f04627a5dbad979c


Steven Rostedt (VMware) (7):
      tracing: Split tracing initialization into two for early initialization
      ftrace: Move ftrace_init() to right after memory initialization
      tracing: Postpone tracer start-up tests till the system is more robust
      ftrace: Have function tracing start in early boot up
      ftrace: Allow for function tracing to record init functions on boot up
      tracing: Move trace_handle_return() out of line
      ftrace/x86: Do no run CPU sync when there is only one CPU online

----
 arch/x86/kernel/ftrace.c       |  8 +++-
 include/linux/ftrace.h         |  7 ++++
 include/linux/init.h           |  4 +-
 include/linux/trace_events.h   | 11 +----
 init/main.c                    |  9 +++--
 kernel/trace/ftrace.c          | 44 ++++++++++++++++++++
 kernel/trace/trace.c           | 92 +++++++++++++++++++++++++++++++++++++++++-
 kernel/trace/trace.h           |  2 +
 kernel/trace/trace_functions.c |  3 +-
 mm/page_alloc.c                |  4 ++
 scripts/recordmcount.c         |  1 +
 scripts/recordmcount.pl        |  1 +
 12 files changed, 168 insertions(+), 18 deletions(-)

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

end of thread, other threads:[~2017-03-28 22:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-28 22:16 [for-next][PATCH 0/7] tracing: [4.12] Allow function tracing to start earlier in boot up Steven Rostedt
2017-03-28 22:16 ` [for-next][PATCH 1/7] tracing: Split tracing initialization into two for early initialization Steven Rostedt
2017-03-28 22:16 ` [for-next][PATCH 2/7] ftrace: Move ftrace_init() to right after memory initialization Steven Rostedt
2017-03-28 22:16 ` [for-next][PATCH 3/7] tracing: Postpone tracer start-up tests till the system is more robust Steven Rostedt
2017-03-28 22:16 ` [for-next][PATCH 4/7] ftrace: Have function tracing start in early boot up Steven Rostedt
2017-03-28 22:16 ` [for-next][PATCH 5/7] ftrace: Allow for function tracing to record init functions on " Steven Rostedt
2017-03-28 22:16 ` [for-next][PATCH 6/7] tracing: Move trace_handle_return() out of line Steven Rostedt
2017-03-28 22:16 ` [for-next][PATCH 7/7] ftrace/x86: Do no run CPU sync when there is only one CPU online Steven Rostedt

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