]> asedeno.scripts.mit.edu Git - linux.git/commit
init, tracing: Add initcall trace events
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 23 Mar 2018 14:18:03 +0000 (10:18 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 6 Apr 2018 12:56:54 +0000 (08:56 -0400)
commit4ee7c60de83ac01fa4c33c55937357601631e8ad
tree782bae7199ba64345a70e7094f270dea434331ee
parent8ec8405f081e1e0f800b20f683451c37e81e26c1
init, tracing: Add initcall trace events

Being able to trace the start and stop of initcalls is useful to see where
the timings are an issue. There is already an "initcall_debug" parameter,
but that can cause a large overhead itself, as the printing of the
information may take longer than the initcall functions.

Adding in a start and finish trace event around the initcall functions, as
well as a trace event that records the level of the initcalls, one can get a
much finer measurement of the times and interactions of the initcalls
themselves, as trace events are much lighter than printk()s.

Suggested-by: Abderrahmane Benbachir <abderrahmane.benbachir@polymtl.ca>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
include/trace/events/initcall.h [new file with mode: 0644]
init/main.c