projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1879477
)
tools/bootconfig: Fix tracing_on option checking in ftrace2bconf.sh
author
Masami Hiramatsu
<mhiramat@kernel.org>
Sat, 4 Sep 2021 15:54:31 +0000
(
00:54
+0900)
committer
Dom Cobley
<popcornmix@gmail.com>
Thu, 14 Oct 2021 11:33:03 +0000
(12:33 +0100)
[ 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 <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/bootconfig/scripts/ftrace2bconf.sh
patch
|
blob
|
history
diff --git
a/tools/bootconfig/scripts/ftrace2bconf.sh
b/tools/bootconfig/scripts/ftrace2bconf.sh
index
a0c3bcc
..
fb201d5
100755
(executable)
--- a/
tools/bootconfig/scripts/ftrace2bconf.sh
+++ b/
tools/bootconfig/scripts/ftrace2bconf.sh
@@
-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=