diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-05-30 06:38:51 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-05-30 07:52:44 -0400 |
commit | c1c2365acf8c044f749c0fe1ea236497e8d1718e (patch) | |
tree | 79f4f096429920ba67842f8adf0e57a35f5c14a0 /Documentation/perf_counter/builtin-help.c | |
parent | 7fbd55449aafb86d3237b5d1a26fb4dab2aa2c76 (diff) |
perf_counter tools: Generate per command manpages (and pdf/html, etc.)
Import Git's nice .txt => {man/html/pdf} generation machinery.
Fix various errors in the Documentation/perf*.txt description as well.
Also fix a bug in builtin-help: we'd map 'perf help top' to 'perftop'
if only the 'perf' binary is in the default PATH - confusing the manpage
logic. I dont fully understand why Git did it this way - but i suppose
it's a migration artifact from their migration from standalone git-xyz
commands to 'git xyz' commands. The perf tools were always using the
modern form so it's not an issue there.
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: John Kacur <jkacur@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'Documentation/perf_counter/builtin-help.c')
-rw-r--r-- | Documentation/perf_counter/builtin-help.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/perf_counter/builtin-help.c b/Documentation/perf_counter/builtin-help.c index d2bd3177b98c..a3894bfb9b6e 100644 --- a/Documentation/perf_counter/builtin-help.c +++ b/Documentation/perf_counter/builtin-help.c | |||
@@ -317,7 +317,7 @@ static const char *cmd_to_page(const char *perf_cmd) | |||
317 | else if (is_perf_command(perf_cmd)) | 317 | else if (is_perf_command(perf_cmd)) |
318 | return prepend("perf-", perf_cmd); | 318 | return prepend("perf-", perf_cmd); |
319 | else | 319 | else |
320 | return prepend("perf", perf_cmd); | 320 | return prepend("perf-", perf_cmd); |
321 | } | 321 | } |
322 | 322 | ||
323 | static void setup_man_path(void) | 323 | static void setup_man_path(void) |