tools/bootconfig: Add --init option for bconf2ftrace.sh
authorMasami Hiramatsu <mhiramat@kernel.org>
Mon, 10 Aug 2020 08:35:32 +0000 (17:35 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sat, 19 Sep 2020 02:17:13 +0000 (22:17 -0400)
commit5675fd4ef51f0b505a7f802e4d23a37336d521f0
treee9e59c01c0e729d88d40400c6113cc3fb75592a7
parent2b86062a34a81427fca082540e3593b5a6b49a13
tools/bootconfig: Add --init option for bconf2ftrace.sh

Since the ftrace current setting may conflict with the new setting
from bootconfig, add the --init option to initialize ftrace before
setting for bconf2ftrace.sh.

E.g.
 $ bconf2ftrace.sh --init boottrace.bconf

This initialization method copied from selftests/ftrace.

Link: https://lkml.kernel.org/r/159704853203.175360.17029578033994278231.stgit@devnote2
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/bootconfig/scripts/bconf2ftrace.sh
tools/bootconfig/scripts/ftrace.sh [new file with mode: 0644]