aboutsummaryrefslogtreecommitdiffstats
path: root/tracecmd
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2021-04-16 13:23:30 -0400
committerSteven Rostedt (Google) <rostedt@goodmis.org>2022-03-15 12:21:07 -0400
commitcfde37f5bdf90823260960e105a570f2382cba71 (patch)
tree816c497f7789b5815bcec6de9872edf5e342b6d7 /tracecmd
parent75bcde2f70b8b5b3f7c46828c0503a9f66c29643 (diff)
downloadtrace-cmd-cfde37f5bdf90823260960e105a570f2382cba71.tar.gz
trace-cmd stat: Update the usage and man pages
trace-cmd stat takes some options (-B and -t, as well as -h), but the usage and the man pages do not display them. Also, since 'h' was not included in the getopt(), it failed to be called. Fix that. Link: https://lore.kernel.org/linux-trace-devel/20210416172331.3870833-3-rostedt@goodmis.org Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'tracecmd')
-rw-r--r--tracecmd/trace-stat.c2
-rw-r--r--tracecmd/trace-usage.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/tracecmd/trace-stat.c b/tracecmd/trace-stat.c
index cb92622a..b4428e49 100644
--- a/tracecmd/trace-stat.c
+++ b/tracecmd/trace-stat.c
@@ -875,7 +875,7 @@ void trace_stat (int argc, char **argv)
init_top_instance();
for (;;) {
- c = getopt(argc-1, argv+1, "tB:");
+ c = getopt(argc-1, argv+1, "htB:");
if (c == -1)
break;
switch (c) {
diff --git a/tracecmd/trace-usage.c b/tracecmd/trace-usage.c
index 3eb32eba..b5ef7733 100644
--- a/tracecmd/trace-usage.c
+++ b/tracecmd/trace-usage.c
@@ -283,7 +283,9 @@ static struct usage_help usage_help[] = {
{
"stat",
"show the status of the running tracing (ftrace) system",
- " %s stat"
+ " %s stat [-B buf][-t]"
+ " -B show the status of a instance buffer\n"
+ " -t show the top level status along with buffer specified by -B\n"
},
{
"split",