diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-04-20 09:52:29 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-20 11:36:49 -0400 |
commit | 1d8c8b209e9351a7de1307d7b9b6df4222b8d742 (patch) | |
tree | 43acf25217e2760bac99ced7575ad809d641f75f /Documentation/perf_counter/generate-cmdlist.sh | |
parent | ddcacfa0febff6454dba6cea1931f3020a9f6c24 (diff) |
perf_counter tools: add help texts
Add Documentation/perf-stat.txt and Documentation/perf-top.txt.
The template that was used for it: Documentation/git-add.txt from Git.
Fix up small bugs to make these help texts show up both in the 'perf'
common-command summary output screen, and on the individual help screens.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'Documentation/perf_counter/generate-cmdlist.sh')
-rwxr-xr-x | Documentation/perf_counter/generate-cmdlist.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/perf_counter/generate-cmdlist.sh b/Documentation/perf_counter/generate-cmdlist.sh index 75c68d948fd3..f06f6fd148f8 100755 --- a/Documentation/perf_counter/generate-cmdlist.sh +++ b/Documentation/perf_counter/generate-cmdlist.sh | |||
@@ -9,16 +9,16 @@ struct cmdname_help | |||
9 | 9 | ||
10 | static struct cmdname_help common_cmds[] = {" | 10 | static struct cmdname_help common_cmds[] = {" |
11 | 11 | ||
12 | sed -n -e 's/^git-\([^ ]*\)[ ].* common.*/\1/p' command-list.txt | | 12 | sed -n -e 's/^perf-\([^ ]*\)[ ].* common.*/\1/p' command-list.txt | |
13 | sort | | 13 | sort | |
14 | while read cmd | 14 | while read cmd |
15 | do | 15 | do |
16 | sed -n ' | 16 | sed -n ' |
17 | /^NAME/,/git-'"$cmd"'/H | 17 | /^NAME/,/perf-'"$cmd"'/H |
18 | ${ | 18 | ${ |
19 | x | 19 | x |
20 | s/.*git-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/ | 20 | s/.*perf-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/ |
21 | p | 21 | p |
22 | }' "Documentation/git-$cmd.txt" | 22 | }' "Documentation/perf-$cmd.txt" |
23 | done | 23 | done |
24 | echo "};" | 24 | echo "};" |