Skip to content

Commit 8d73259

Browse files
namhyungacmel
authored andcommitted
perf ftrace latency: Remove unnecessary "--" from --use-nsec option
The option name should not have the dashes. Current version shows four dashes for the option. $ perf ftrace latency -h Usage: perf ftrace [<options>] [<command>] or: perf ftrace [<options>] -- [<command>] [<options>] or: perf ftrace {trace|latency} [<options>] [<command>] or: perf ftrace {trace|latency} [<options>] -- [<command>] [<options>] -b, --use-bpf Use BPF to measure function latency -n, ----use-nsec Use nano-second histogram -T, --trace-funcs <func> Show latency of given function Fixes: 84005bb ("perf ftrace latency: Add -n/--use-nsec option") Signed-off-by: Namhyung Kim <[email protected]> Tested-by: Arnaldo Carvalho de Melo <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Changbin Du <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 0d85b27 commit 8d73259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/perf/builtin-ftrace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,7 @@ int cmd_ftrace(int argc, const char **argv)
11751175
OPT_BOOLEAN('b', "use-bpf", &ftrace.target.use_bpf,
11761176
"Use BPF to measure function latency"),
11771177
#endif
1178-
OPT_BOOLEAN('n', "--use-nsec", &ftrace.use_nsec,
1178+
OPT_BOOLEAN('n', "use-nsec", &ftrace.use_nsec,
11791179
"Use nano-second histogram"),
11801180
OPT_PARENT(common_options),
11811181
};

0 commit comments

Comments
 (0)