perf tools: Add the bash completion for listing subsubcommands of perf timechart
[firefly-linux-kernel-4.4.55.git] / tools / perf / perf-completion.sh
index 35f43fd7a38b0128ebbf673bc89b6ed669a3bc8e..a33d2ef53ae4ddb03cb5caebd9337dcaf2c2e4da 100644 (file)
@@ -143,7 +143,7 @@ __perf_main ()
                __perfcomp_colon "$evts" "$cur"
        else
                # List subcommands for perf commands
-               if [[ $prev_skip_opts == @(kvm|kmem|mem|lock|sched|data|help|script|test) ]]; then
+               if [[ $prev_skip_opts == @(kvm|kmem|mem|lock|sched|data|help|script|test|timechart) ]]; then
                        subcmds=$($cmd $prev_skip_opts --list-cmds)
                        __perfcomp_colon "$subcmds" "$cur"
                fi