perf tools: Support for events bash completion
authorFrederic Weisbecker <fweisbec@gmail.com>
Thu, 9 Aug 2012 14:31:52 +0000 (16:31 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 9 Aug 2012 18:59:26 +0000 (15:59 -0300)
commita3277d2d5a0d5d9492993ab68af8a8dc96760dd1
treee9c621444e7a31b801b5c57753409bab0a46484e
parent98a4179c9aa1e99adf5103e6e0d05f563d902de1
perf tools: Support for events bash completion

Add basic bash completion for the -e option in record, top and stat
subcommands. Only hardware, software and tracepoint events are
supported.

Breakpoints, raw events and events grouping completion need more
thinking.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1344522713-27951-3-git-send-email-fweisbec@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/bash_completion
tools/perf/builtin-list.c
tools/perf/util/parse-events.c
tools/perf/util/parse-events.h