Skip to content

Commit

Permalink
tools/bootconfig: Fix tracing_on option checking in ftrace2bconf.sh
Browse files Browse the repository at this point in the history
[ Upstream commit 32ba9f0fb027cc43074e3ea26fcf831adeee8e03 ]

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 <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
  • Loading branch information
mhiramat authored and gregkh committed Sep 26, 2021
1 parent 912afe6 commit d1f9ecc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/bootconfig/scripts/ftrace2bconf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ instance_options() { # [instance-name]
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
if [ "$val" = "0" ]; then
emit_kv $PREFIX.tracing_on = 0
fi

val=
Expand Down

0 comments on commit d1f9ecc

Please sign in to comment.