summaryrefslogtreecommitdiffstats
path: root/tools/perf/perf-completion.sh
diff options
context:
space:
mode:
authorRamkumar Ramachandra <artagnon@gmail.com>2013-12-11 16:04:15 +0530
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-12-13 10:30:21 -0300
commit8f2f5ada719560954174da30ce0a67261c616e39 (patch)
tree54081d2f41b5c0bba35dc92b29c07017a4ba1cdc /tools/perf/perf-completion.sh
parenta025e4f0d8a92b38539d39b495b530015296b4d9 (diff)
downloadop-kernel-dev-8f2f5ada719560954174da30ce0a67261c616e39.zip
op-kernel-dev-8f2f5ada719560954174da30ce0a67261c616e39.tar.gz
perf completion: Complete 'perf kvm'
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>
Diffstat (limited to 'tools/perf/perf-completion.sh')
-rw-r--r--tools/perf/perf-completion.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/perf-completion.sh b/tools/perf/perf-completion.sh
index 4949488..496e2ab 100644
--- 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]}
OpenPOWER on IntegriCloud