Skip to content

Commit 32ba9f0

Browse files
mhiramatrostedt
authored andcommitted
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: 55ed456 ("tools/bootconfig: Add tracing_on support to helper scripts") Signed-off-by: Masami Hiramatsu <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
1 parent 26c9c72 commit 32ba9f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/bootconfig/scripts/ftrace2bconf.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ instance_options() { # [instance-name]
239239
emit_kv $PREFIX.cpumask = $val
240240
fi
241241
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
244244
fi
245245

246246
val=`cat $INSTANCE/current_tracer`

0 commit comments

Comments
 (0)