Skip to content

tracing: [4.12] Allow function tracing to start earlier in boot up

Steven Rostedt linux-mm lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7tracing: Split tracing initialization into two for early initializationinclude/linux/ftrace.h init/main.c kernel/trace/trace.c+11 -20 replies
2/7ftrace: Move ftrace_init() to right after memory initializationinit/main.c+2 -20 replies
3/7tracing: Postpone tracer start-up tests till the system is more robustkernel/trace/trace.c+71 -00 replies
4/7ftrace: Have function tracing start in early boot upkernel/trace/trace.c kernel/trace/trace.h kernel/trace/trace_functions.c+6 -20 replies
5/7ftrace: Allow for function tracing to record init functions on boot upinclude/linux/ftrace.h include/linux/init.h kernel/trace/ftrace.c +3 more+58 -10 replies
6/7tracing: Move trace_handle_return() out of lineinclude/linux/trace_events.h kernel/trace/trace.c tmp/irq-vec-ool+19 -210 replies
7/7ftrace/x86: Do no run CPU sync when there is only one CPU onlinearch/x86/kernel/ftrace.c+7 -10 replies

Reviews trailers per patch

None of the 7 patches has a Reviewed-by or Acked-by.

PatchTodd Brandt
1/7
2/7
3/7
4/7
5/7Requested-by
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [for-next][PATCH 0/7] tracing: [4.12] Allow function tracing to start earlier in boot up

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