diff options
Diffstat (limited to 'tools/perf/builtin-lock.c')
-rw-r--r-- | tools/perf/builtin-lock.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/perf/builtin-lock.c b/tools/perf/builtin-lock.c index c852c7a85d32..6148afc995c6 100644 --- a/tools/perf/builtin-lock.c +++ b/tools/perf/builtin-lock.c | |||
@@ -961,8 +961,10 @@ int cmd_lock(int argc, const char **argv, const char *prefix __maybe_unused) | |||
961 | "perf lock info [<options>]", | 961 | "perf lock info [<options>]", |
962 | NULL | 962 | NULL |
963 | }; | 963 | }; |
964 | const char * const lock_usage[] = { | 964 | const char *const lock_subcommands[] = { "record", "report", "script", |
965 | "perf lock [<options>] {record|report|script|info}", | 965 | "info", NULL }; |
966 | const char *lock_usage[] = { | ||
967 | NULL, | ||
966 | NULL | 968 | NULL |
967 | }; | 969 | }; |
968 | const char * const report_usage[] = { | 970 | const char * const report_usage[] = { |
@@ -976,8 +978,8 @@ int cmd_lock(int argc, const char **argv, const char *prefix __maybe_unused) | |||
976 | for (i = 0; i < LOCKHASH_SIZE; i++) | 978 | for (i = 0; i < LOCKHASH_SIZE; i++) |
977 | INIT_LIST_HEAD(lockhash_table + i); | 979 | INIT_LIST_HEAD(lockhash_table + i); |
978 | 980 | ||
979 | argc = parse_options(argc, argv, lock_options, lock_usage, | 981 | argc = parse_options_subcommand(argc, argv, lock_options, lock_subcommands, |
980 | PARSE_OPT_STOP_AT_NON_OPTION); | 982 | lock_usage, PARSE_OPT_STOP_AT_NON_OPTION); |
981 | if (!argc) | 983 | if (!argc) |
982 | usage_with_options(lock_usage, lock_options); | 984 | usage_with_options(lock_usage, lock_options); |
983 | 985 | ||