mbox series

[0/2] trace-cmd: Add more ways to view options

Message ID 20210416172331.3870833-1-rostedt@goodmis.org (mailing list archive)
Headers show
Series trace-cmd: Add more ways to view options | expand

Message

Steven Rostedt April 16, 2021, 5:23 p.m. UTC
From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>

When testing the func-norepeats patch series from Yordan, I wanted a way
to see what options were enabled for all tracers without having to
enable a tracer first.

Change trace-cmd list to look at the options in the options directory
instead of the trace_options file, as the trace_options file only shows
the options for the current tracer and global options. The options
directory shows all options since Linux 4.4.

Add -o to stat to display the options, as stat lets you see instances
where as list does not.

Steven Rostedt (VMware) (3):
  trace-cmd list: Have -o read the options directory instead of file
  trace-cmd stat: Update the usage and man pages
  trace-cmd stat: Add -o option to show options

 Documentation/trace-cmd/trace-cmd-stat.1.txt | 16 +++++-
 tracecmd/include/trace-local.h               |  1 +
 tracecmd/trace-list.c                        | 58 ++++++++++++++++++--
 tracecmd/trace-stat.c                        | 14 ++++-
 tracecmd/trace-usage.c                       |  5 +-
 5 files changed, 84 insertions(+), 10 deletions(-)