path: root/tools/perf/Documentation
diff options
authorJiri Olsa <>2015-10-05 20:06:09 +0200
committerArnaldo Carvalho de Melo <>2015-10-05 16:36:18 -0300
commita1853e2c6f8ed488adcd84fb162c5b3f0b674d9b (patch)
tree19790860ae4881b070f5c1f8f1d512aac2c548eb /tools/perf/Documentation
parentb34b3bf0798633cc248b682f5b4f6509739ce234 (diff)
perf tools: Handle -h and -v options
Adding handling for '-h' and '-v' options to invoke help and version command respectively. Current behaviour is: $ perf -v Unknown option: -v Usage: perf [--version] [--help] [OPTIONS] COMMAND [ARGS] $ perf -h Unknown option: -h Usage: perf [--version] [--help] [OPTIONS] COMMAND [ARGS] New behaviour: $ perf -h usage: perf [--version] [--help] [OPTIONS] COMMAND [ARGS] The most commonly used perf commands are: annotate Read (created by perf record) and display annotated code archive Create archive with object files with build-ids found in file bench General framework for benchmark suites ... $ perf -v perf version 4.3.rc3.gc99e32 Updated man page. Requested-by: Peter Zijlstra <> Signed-off-by: Jiri Olsa <> Tested-by: Arnaldo Carvalho de Melo <> Cc: David Ahern <> Cc: Don Zickus <> Cc: Kan Liang <> Cc: Namhyung Kim <> Cc: Peter Zijlstra <> Link: Signed-off-by: Arnaldo Carvalho de Melo <>
Diffstat (limited to 'tools/perf/Documentation')
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/perf/Documentation/perf.txt b/tools/perf/Documentation/perf.txt
index 2b131776363e..864e37597252 100644
--- a/tools/perf/Documentation/perf.txt
+++ b/tools/perf/Documentation/perf.txt
@@ -27,6 +27,14 @@ OPTIONS
Setup buildid cache directory. It has higher priority than
buildid.dir config file option.
+ Display perf version.
+ Run perf help command.
Performance counters for Linux are a new kernel-based subsystem