mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01:00
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: 55ed456077 ("tools/bootconfig: Add tracing_on support to helper scripts")
Signed-off-by: Masami Hiramatsu <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
This commit is contained in:
1 parent
26c9c72fd0
commit
32ba9f0fb0
1 file changed
+2
-2
@@ -239,8 +239,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=`cat $INSTANCE/current_tracer`
|
||||
|
||||
Reference in new issue
Block a user