[PATCH 2/3] perf daemon: Complete supported subcommand in help message

From: Yang Jihong
Date: Sat Oct 22 2022 - 06:35:28 EST


perf daemon supports start, signale, stop and ping subcommands, complete it

Before:
# perf daemon -h
Usage: perf daemon start [<options>]
or: perf daemon [<options>]

-v, --verbose be more verbose
-x, --field-separator[=<field separator>]
print counts with custom separator
--base <directory>
base directory
--config <config file>
config file path

After:
# perf daemon -h

Usage: perf daemon {start|signal|stop|ping} [<options>]
or: perf daemon [<options>]

-v, --verbose be more verbose
-x, --field-separator[=<field separator>]
print counts with custom separator
--base <directory>
base directory
--config <config file>
config file path

Signed-off-by: Yang Jihong <yangjihong1@xxxxxxxxxx>
---
tools/perf/builtin-daemon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/perf/builtin-daemon.c b/tools/perf/builtin-daemon.c
index b82bd902602a..48698e7fd987 100644
--- a/tools/perf/builtin-daemon.c
+++ b/tools/perf/builtin-daemon.c
@@ -100,7 +100,7 @@ static struct daemon __daemon = {
};

static const char * const daemon_usage[] = {
- "perf daemon start [<options>]",
+ "perf daemon {start|signal|stop|ping} [<options>]",
"perf daemon [<options>]",
NULL
};
--
2.30.GIT