mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +00:00
tools/bootconfig: Fix tracing_on option checking in ftrace2bconf.sh
[ Upstream commit32ba9f0fb0
] 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:55ed456077
("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
912afe602e
commit
d1f9ecc00d
1 changed files with 2 additions and 2 deletions
|
@ -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=
|
||||
|
|
Loading…
Reference in a new issue