[PATCH 2/2] perf, tools: Fix completion script to handle comma list

2016-09-18 Thread Andi Kleen
From: Andi Kleen The perf event completion script only handled a single event per -e option. So for "perf stat -e cycles,branches" branches could not be completed. Fix that issue by always only using the last suffix. For some reason it only works in bash currently, but

[PATCH 2/2] perf, tools: Fix completion script to handle comma list

2016-09-18 Thread Andi Kleen
From: Andi Kleen The perf event completion script only handled a single event per -e option. So for "perf stat -e cycles,branches" branches could not be completed. Fix that issue by always only using the last suffix. For some reason it only works in bash currently, but zsh is the same as