mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 10:33:27 +00: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>
24 lines
447 B
Bash
Executable file
24 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 "};"
|