projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a025e4f
)
perf completion: Complete 'perf kvm'
author
Ramkumar Ramachandra
<artagnon@gmail.com>
Wed, 11 Dec 2013 10:34:15 +0000
(16:04 +0530)
committer
Arnaldo Carvalho de Melo
<acme@redhat.com>
Fri, 13 Dec 2013 13:30:21 +0000
(10:30 -0300)
Currently, there is no way to enumerate the subcommands under 'perf
kvm', so hardcode them.
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Link:
http://lkml.kernel.org/r/1386758056-24618-2-git-send-email-artagnon@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/perf-completion.sh
patch
|
blob
|
history
diff --git
a/tools/perf/perf-completion.sh
b/tools/perf/perf-completion.sh
index 49494882d9bb8c1a65417589b20d691b08f57538..496e2abb54824e3fbcc937e3cfc267ea3bfa82b0 100644
(file)
--- a/
tools/perf/perf-completion.sh
+++ b/
tools/perf/perf-completion.sh
@@
-121,6
+121,10
@@
__perf_main ()
elif [[ $prev == "-e" && "${words[1]}" == @(record|stat|top) ]]; then
evts=$($cmd list --raw-dump)
__perfcomp_colon "$evts" "$cur"
+ # List subcommands for 'perf kvm'
+ elif [[ $prev == "kvm" ]]; then
+ subcmds="top record report diff buildid-list stat"
+ __perfcomp_colon "$subcmds" "$cur"
# List long option names
elif [[ $cur == --* ]]; then
subcmd=${words[1]}