Skip to content
/ linux Public
forked from torvalds/linux

Commit

Permalink
tools/bootconfig: Add tracing_on support to helper scripts
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
mhiramat authored and rostedt committed Jan 14, 2021
1 parent 7bb83f6 commit 55ed456
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/bootconfig/scripts/bconf2ftrace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ setup_instance() { # [instance]
set_array_of ${instance}.options ${instancedir}/trace_options
set_value_of ${instance}.trace_clock ${instancedir}/trace_clock
set_value_of ${instance}.cpumask ${instancedir}/tracing_cpumask
set_value_of ${instance}.tracing_on ${instancedir}/tracing_on
set_value_of ${instance}.tracer ${instancedir}/current_tracer
set_array_of ${instance}.ftrace.filters \
${instancedir}/set_ftrace_filter
Expand Down
4 changes: 4 additions & 0 deletions tools/bootconfig/scripts/ftrace2bconf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ instance_options() { # [instance-name]
if [ `echo $val | sed -e s/f//g`x != x ]; then
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
fi

val=
for i in `cat $INSTANCE/set_event`; do
Expand Down

0 comments on commit 55ed456

Please sign in to comment.