summaryrefslogtreecommitdiffstats
path: root/Documentation/perf_counter/generate-cmdlist.sh
diff options
context:
space:
mode:
authorIngo Molnar2009-04-20 15:52:29 +0200
committerIngo Molnar2009-04-20 17:36:49 +0200
commit1d8c8b209e9351a7de1307d7b9b6df4222b8d742 (patch)
tree43acf25217e2760bac99ced7575ad809d641f75f /Documentation/perf_counter/generate-cmdlist.sh
parentperf_counter tools: separate kerneltop into 'perf top' and 'perf stat' (diff)
downloadkernel-qcow2-linux-1d8c8b209e9351a7de1307d7b9b6df4222b8d742.tar.gz
kernel-qcow2-linux-1d8c8b209e9351a7de1307d7b9b6df4222b8d742.tar.xz
kernel-qcow2-linux-1d8c8b209e9351a7de1307d7b9b6df4222b8d742.zip
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-xDocumentation/perf_counter/generate-cmdlist.sh8
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
static struct cmdname_help common_cmds[] = {"
-sed -n -e 's/^git-\([^ ]*\)[ ].* common.*/\1/p' command-list.txt |
+sed -n -e 's/^perf-\([^ ]*\)[ ].* common.*/\1/p' command-list.txt |
sort |
while read cmd
do
sed -n '
- /^NAME/,/git-'"$cmd"'/H
+ /^NAME/,/perf-'"$cmd"'/H
${
x
- s/.*git-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/
+ s/.*perf-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/
p
- }' "Documentation/git-$cmd.txt"
+ }' "Documentation/perf-$cmd.txt"
done
echo "};"