Commit 6f198ec4 authored by Masami Hiramatsu's avatar Masami Hiramatsu Committed by Devin Moore
Browse files

UPSTREAM: tools/bootconfig: Add a script to generates bootconfig from ftrace

Add a ftrace2bconf.sh under tools/bootconfig/scripts which generates
a bootconfig file from the current ftrace settings.

To read the ftrace settings, ftrace2bconf.sh requires the root
privilege (or sudo). The ftrace2bconf.sh will output the bootconfig
to stdout and error messages to stderr, so usually you'll run it as

 # ftrace2bconf.sh > ftrace.bconf

Note that some ftrace configurations are not supported. For example,
function-call/callgraph trace/notrace settings are not supported because
the wildcard has been expanded and lost in the ftrace anymore.

Link: https://lkml.kernel.org/r/159704852163.175360.16738029520293360558.stgit@devnote2



Signed-off-by: default avatarMasami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
(cherry picked from commit 2b86062a)
Signed-off-by: default avatarDevin Moore <devinmoore@google.com>
Change-Id: Ic069a3a238f24b3cc9ed6ed7f2f54a989a4dabb1
parent 1fc86d2b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment