lkml.org 
[lkml]   [2020]   [Aug]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/6] tools/bootconfig: Add boot-time tracing script
Date
Hi,

This is a series of patches to introduce scripts for the boot-time tracing.

- bconf2ftrace.sh generates a shell script from a bootconfig file which
setup ftrace via tracefs. This is useful for checking whether your
boot-time tracing bootconfig is working as you expected.

- ftrace2bconf.sh generates a bootconfig file from current ftrace setting.
You can set up the ftrace manually and run a test on it before dump it
to a bootconfig file.
Note that some function-tracer/fgraph-tracer options are not supported
by ftrace2bconf.sh, because the original wildcard expression has been
lost during setup ftrace.

Also, this series improve the bootconfig command to increase usability.

- The bootconfig can format the bootconfig file without initrd. You don't
need a dummy initrd anymore :)
- The bootconfig command supports -l (format as a list) option which
outputs the bootconfig as a key-value list, as same as /proc/bootconfig.


Thank you,

---

Masami Hiramatsu (6):
tools/bootconfig: Show bootconfig compact tree from bootconfig file
tools/bootconfig: Add list option
tools/bootconfig: Make all functions static
tools/bootconfig: Add a script to generate ftrace shell-command from bootconfig
tools/bootconfig: Add a script to generates bootconfig from ftrace
tools/bootconfig: Add --init option for bconf2ftrace.sh


tools/bootconfig/main.c | 147 +++++++++++++-----
tools/bootconfig/scripts/bconf2ftrace.sh | 199 ++++++++++++++++++++++++
tools/bootconfig/scripts/ftrace.sh | 109 +++++++++++++
tools/bootconfig/scripts/ftrace2bconf.sh | 244 ++++++++++++++++++++++++++++++
tools/bootconfig/scripts/xbc.sh | 56 +++++++
5 files changed, 713 insertions(+), 42 deletions(-)
create mode 100755 tools/bootconfig/scripts/bconf2ftrace.sh
create mode 100644 tools/bootconfig/scripts/ftrace.sh
create mode 100755 tools/bootconfig/scripts/ftrace2bconf.sh
create mode 100644 tools/bootconfig/scripts/xbc.sh

--
Masami Hiramatsu (Linaro) <mhiramat@kernel.org>

\
 
 \ /
  Last update: 2020-08-10 10:35    [W:2.610 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site