tools/bootconfig: Add a script to generates bootconfig from ftrace
authorMasami Hiramatsu <mhiramat@kernel.org>
Mon, 10 Aug 2020 08:35:21 +0000 (17:35 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sat, 19 Sep 2020 02:17:13 +0000 (22:17 -0400)
commit2b86062a34a81427fca082540e3593b5a6b49a13
treec8494bb610e9cb3cb0c895d7c3f9006c9c682775
parent7e66ef0046ccf896674955b819c27c49783a4deb
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: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/bootconfig/scripts/ftrace2bconf.sh [new file with mode: 0755]