Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools/bootconfig: Fix tracing_on option checking in ftrace2bconf.sh

Since tracing_on indicates only "1" (default) or "0", ftrace2bconf.sh
only need to check the value is "0".

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

Fixes: 55ed4560774d ("tools/bootconfig: Add tracing_on support to helper scripts")
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>

authored by

Masami Hiramatsu and committed by
Steven Rostedt (VMware)
32ba9f0f 26c9c72f

+2 -2
+2 -2
tools/bootconfig/scripts/ftrace2bconf.sh
··· 239 239 emit_kv $PREFIX.cpumask = $val 240 240 fi 241 241 val=`cat $INSTANCE/tracing_on` 242 - if [ `echo $val | sed -e s/f//g`x != x ]; then 243 - emit_kv $PREFIX.tracing_on = $val 242 + if [ "$val" = "0" ]; then 243 + emit_kv $PREFIX.tracing_on = 0 244 244 fi 245 245 246 246 val=`cat $INSTANCE/current_tracer`