mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 05:04:09 +08:00
864709302a
Several people have suggested that 'perf' has become a full-fledged tool that should be moved out of Documentation/. Move it to the (new) tools/ directory. Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
25 lines
447 B
Bash
Executable File
25 lines
447 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo "/* Automatically generated by $0 */
|
|
struct cmdname_help
|
|
{
|
|
char name[16];
|
|
char help[80];
|
|
};
|
|
|
|
static struct cmdname_help common_cmds[] = {"
|
|
|
|
sed -n -e 's/^perf-\([^ ]*\)[ ].* common.*/\1/p' command-list.txt |
|
|
sort |
|
|
while read cmd
|
|
do
|
|
sed -n '
|
|
/^NAME/,/perf-'"$cmd"'/H
|
|
${
|
|
x
|
|
s/.*perf-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/
|
|
p
|
|
}' "Documentation/perf-$cmd.txt"
|
|
done
|
|
echo "};"
|