Skip to content

Commit fd264ce

Browse files
mhiramatrostedt
authored andcommitted
Documentation: tracing: Add the startup timing of boot-time tracing
Add the note about when to start the boot-time tracing. This will be needed for the people who wants to trace earlier boot sequence. Link: https://lkml.kernel.org/r/159974156678.478751.10215894815285734481.stgit@devnote2 Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
1 parent ba0fbfb commit fd264ce

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

‎Documentation/trace/boottime-trace.rst‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,20 @@ instance node, but those are also visible from other instances. So please
120120
take care for event name conflict.
121121

122122

123+
When to Start
124+
=============
125+
126+
All boot-time tracing options starting with ``ftrace`` will be enabled at the
127+
end of core_initcall. This means you can trace the events from postcore_initcall.
128+
Most of the subsystems and architecture dependent drivers will be initialized
129+
after that (arch_initcall or subsys_initcall). Thus, you can trace those with
130+
boot-time tracing.
131+
If you want to trace events before core_initcall, you can use the options
132+
starting with ``kernel``. Some of them will be enabled eariler than the initcall
133+
processing (for example,. ``kernel.ftrace=function`` and ``kernel.trace_event``
134+
will start before the initcall.)
135+
136+
123137
Examples
124138
========
125139

0 commit comments

Comments
 (0)