mbox series

[0/3] trace-cmd: Add sqlhist option and show hist and triggers

Message ID 20240106042428.279706-1-rostedt@goodmis.org (mailing list archive)
Headers show
Series trace-cmd: Add sqlhist option and show hist and triggers | expand

Message

Steven Rostedt Jan. 6, 2024, 4:22 a.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

Add a new command "sqlhist" to do the "sqlhist" code that is in the
tracefs_sql() man page. sqlhist is still relatively unknown, by adding it to
trace-cmd, it may become more public.

Also add show --hist to show the output of a trace event histogram and
--trigger to show the contents of the trigger file.

Steven Rostedt (Google) (3):
  trace-cmd show: Add --hist and --trigger options
  trace-cmd sqlhist: Add 'sqlhist' command
  trace-cmd utest: Add tests for trace-cmd sqlhist

 Documentation/trace-cmd/trace-cmd-show.1.txt  |   6 +
 .../trace-cmd/trace-cmd-sqlhist.1.txt         | 339 ++++++++++++++++++
 tracecmd/Makefile                             |   1 +
 tracecmd/include/trace-local.h                |   2 +
 tracecmd/trace-cmd.c                          |   1 +
 tracecmd/trace-show.c                         |  51 +++
 tracecmd/trace-sqlhist.c                      | 246 +++++++++++++
 tracecmd/trace-usage.c                        |  20 +-
 utest/tracecmd-utest.c                        |  28 ++
 9 files changed, 693 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/trace-cmd/trace-cmd-sqlhist.1.txt
 create mode 100644 tracecmd/trace-sqlhist.c