Skip to content

Commit 55ed456

Browse files
mhiramatrostedt
authored andcommitted
tools/bootconfig: Add tracing_on support to helper scripts
Add ftrace.instance.INSTANCE.tracing_on support to ftrace2bconf.sh and bconf2ftrace.sh. commit 8490db0 ("tracing/boot: Add per-instance tracing_on option support") added the per-instance tracing_on option, but forgot to update the helper scripts. Link: https://lkml.kernel.org/r/160749166410.3497930.14204335886811029800.stgit@devnote2 Cc: [email protected] Fixes: 8490db0 ("tracing/boot: Add per-instance tracing_on option support") Signed-off-by: Masami Hiramatsu <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
1 parent 7bb83f6 commit 55ed456

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

tools/bootconfig/scripts/bconf2ftrace.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ setup_instance() { # [instance]
152152
set_array_of ${instance}.options ${instancedir}/trace_options
153153
set_value_of ${instance}.trace_clock ${instancedir}/trace_clock
154154
set_value_of ${instance}.cpumask ${instancedir}/tracing_cpumask
155+
set_value_of ${instance}.tracing_on ${instancedir}/tracing_on
155156
set_value_of ${instance}.tracer ${instancedir}/current_tracer
156157
set_array_of ${instance}.ftrace.filters \
157158
${instancedir}/set_ftrace_filter

tools/bootconfig/scripts/ftrace2bconf.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,10 @@ instance_options() { # [instance-name]
221221
if [ `echo $val | sed -e s/f//g`x != x ]; then
222222
emit_kv $PREFIX.cpumask = $val
223223
fi
224+
val=`cat $INSTANCE/tracing_on`
225+
if [ `echo $val | sed -e s/f//g`x != x ]; then
226+
emit_kv $PREFIX.tracing_on = $val
227+
fi
224228

225229
val=
226230
for i in `cat $INSTANCE/set_event`; do

0 commit comments

Comments
 (0)