summaryrefslogtreecommitdiffstats
path: root/tools/bootconfig/scripts/ftrace2bconf.sh
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2020-12-09 06:27:44 +0100
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2021-01-14 16:32:20 +0100
commit55ed4560774d81d7343223b8fd2784c530a9c6c1 (patch)
treea5f3efd3931d813f8da5a5c9e1446fbd112bbe82 /tools/bootconfig/scripts/ftrace2bconf.sh
parenttracing/kprobes: Do the notrace functions check without kprobes on ftrace (diff)
downloadlinux-55ed4560774d81d7343223b8fd2784c530a9c6c1.tar.xz
linux-55ed4560774d81d7343223b8fd2784c530a9c6c1.zip
tools/bootconfig: Add tracing_on support to helper scripts
Add ftrace.instance.INSTANCE.tracing_on support to ftrace2bconf.sh and bconf2ftrace.sh. commit 8490db06f914 ("tracing/boot: Add per-instance tracing_on option support") added the per-instance tracing_on option, but forgot to update the helper scripts. Link: https://lkml.kernel.org/r/160749166410.3497930.14204335886811029800.stgit@devnote2 Cc: stable@vger.kernel.org Fixes: 8490db06f914 ("tracing/boot: Add per-instance tracing_on option support") Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to '')
-rwxr-xr-xtools/bootconfig/scripts/ftrace2bconf.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/bootconfig/scripts/ftrace2bconf.sh b/tools/bootconfig/scripts/ftrace2bconf.sh
index 6c0d4b61e0c2..a0c3bcc6da4f 100755
--- a/tools/bootconfig/scripts/ftrace2bconf.sh
+++ b/tools/bootconfig/scripts/ftrace2bconf.sh
@@ -221,6 +221,10 @@ instance_options() { # [instance-name]
if [ `echo $val | sed -e s/f//g`x != x ]; then
emit_kv $PREFIX.cpumask = $val
fi
+ val=`cat $INSTANCE/tracing_on`
+ if [ `echo $val | sed -e s/f//g`x != x ]; then
+ emit_kv $PREFIX.tracing_on = $val
+ fi
val=
for i in `cat $INSTANCE/set_event`; do