path: root/tools/perf
diff options
authorHitoshi Mitake <>2010-02-04 16:08:15 +0900
committerFrederic Weisbecker <>2010-02-27 17:05:22 +0100
commit84c6f88fc8265d7a712d7d6ed8fc1a878dfc84d1 (patch)
tree4f5b0cf3357b2afbc41fa257e524d62b04cd392e /tools/perf
parent44ee63587dce85593c22497140db16f4e5027860 (diff)
perf lock: Fix and add misc documentally things
I've forgot to add 'perf lock' line to command-list.txt, so users of perf could not find perf lock when they type 'perf'. Fixing command-list.txt requires document (tools/perf/Documentation/perf-lock.txt). But perf lock is too much "under construction" to write a stable document, so this is something like pseudo document for now. And I wrote description of perf lock at help section of CONFIG_LOCK_STAT, this will navigate users of lock trace events. Signed-off-by: Hitoshi Mitake <> Cc: Peter Zijlstra <> Cc: Paul Mackerras <> Cc: Arnaldo Carvalho de Melo <> LKML-Reference: <> Signed-off-by: Frederic Weisbecker <>
Diffstat (limited to 'tools/perf')
2 files changed, 30 insertions, 0 deletions
diff --git a/tools/perf/Documentation/perf-lock.txt b/tools/perf/Documentation/perf-lock.txt
new file mode 100644
index 000000000000..b317102138c8
--- /dev/null
+++ b/tools/perf/Documentation/perf-lock.txt
@@ -0,0 +1,29 @@
+perf-lock - Analyze lock events
+'perf lock' {record|report|trace}
+You can analyze various lock behaviours
+and statistics with this 'perf lock' command.
+ 'perf lock record <command>' records lock events
+ between start and end <command>. And this command
+ produces the file "" which contains tracing
+ results of lock events.
+ 'perf lock trace' shows raw lock events.
+ 'perf lock report' reports statistical data.
diff --git a/tools/perf/command-list.txt b/tools/perf/command-list.txt
index 9afcff2e3ae5..db6ee94d4a8e 100644
--- a/tools/perf/command-list.txt
+++ b/tools/perf/command-list.txt
@@ -18,3 +18,4 @@ perf-top mainporcelain common
perf-trace mainporcelain common
perf-probe mainporcelain common
perf-kmem mainporcelain common
+perf-lock mainporcelain common