linux-stable/tools/perf
Yunlong Song 3346b542f4 perf tools: Fix the bash completion to support listing events for --event
The bash completion only supports -e rather than --event, so fix it.

Example:

Before this patch:

 $ perf record --event <TAB>
 $

As shown above, the events of record does not come out.

After this patch:

 $ perf record --event <TAB>
 lignment-faults                   cpu/instructions/
 L1-dcache-prefetch-misses          node-prefetches
 uncore_rbox_0/qpi0_idle_filt/
 branch-instructions                cpu/mem-loads/
 L1-dcache-store-misses             node-prefetch-misses
 uncore_rbox_0/qpi1_date_response/
 branch-load-misses                 cpu-migrations
 L1-dcache-stores                   node-store-misses
 uncore_rbox_0/qpi1_filt_send/
 branch-loads                       dTLB-load-misses
 L1-icache-load-misses              node-stores
 uncore_rbox_0/qpi1_idle_filt/
 ...

As shown above, the events of record can come out now.

Signed-off-by: Yunlong Song <yunlong.song@huawei.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/r/1426685758-25488-6-git-send-email-yunlong.song@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-03-19 13:49:37 -03:00
..
arch
bench Merge 'tip/perf/urgent' into perf/core to pick fixes 2015-03-02 11:45:49 -03:00
config perf tools: Fix perf-read-vdsox32 not building and lib64 install dir 2015-03-19 13:38:05 -03:00
Documentation perf kmem: Allow -v option 2015-03-13 07:47:48 -03:00
python
scripts
tests perf tools: Fix perf-read-vdsox32 not building and lib64 install dir 2015-03-19 13:38:05 -03:00
ui perf hists browser: Allow annotating entries in callchains 2015-03-17 18:27:28 -03:00
util perf hists browser: Allow annotating entries in callchains 2015-03-17 18:27:28 -03:00
.gitignore perf tools: Add PERF-FEATURES to the .gitignore file 2015-03-02 12:06:20 -03:00
Build perf tools: Add new 'perf data' command 2015-02-25 12:42:25 -03:00
builtin-annotate.c perf ordered_events: Shorten function signatures 2015-03-11 10:17:09 -03:00
builtin-bench.c
builtin-buildid-cache.c perf buildid-cache: Show usage with incorrect params 2015-02-27 15:52:40 -03:00
builtin-buildid-list.c perf ordered_events: Shorten function signatures 2015-03-11 10:17:09 -03:00
builtin-data.c perf data: Fix sentinel setting for data_cmds array 2015-02-27 10:43:18 -03:00
builtin-diff.c perf ordered_events: Shorten function signatures 2015-03-11 10:17:09 -03:00
builtin-evlist.c
builtin-help.c
builtin-inject.c perf tools: tool->finished_round() doesn't need perf_session 2015-03-12 12:39:49 -03:00
builtin-kmem.c perf kmem: Fix alignment of slab result table 2015-03-13 07:47:48 -03:00
builtin-kvm.c perf tools: tool->finished_round() doesn't need perf_session 2015-03-12 12:39:49 -03:00
builtin-list.c perf list: Extend raw-dump to certain kind of events 2015-02-27 15:52:24 -03:00
builtin-lock.c perf ordered_events: Shorten function signatures 2015-03-11 10:17:09 -03:00
builtin-mem.c perf ordered_events: Shorten function signatures 2015-03-11 10:17:09 -03:00
builtin-probe.c
builtin-record.c perf ordered_events: Shorten function signatures 2015-03-11 10:17:09 -03:00
builtin-report.c perf ordered_events: Shorten function signatures 2015-03-11 10:17:09 -03:00
builtin-sched.c perf ordered_events: Shorten function signatures 2015-03-11 10:17:09 -03:00
builtin-script.c perf ordered_events: Shorten function signatures 2015-03-11 10:17:09 -03:00
builtin-stat.c perf stat: Always correctly indent ratio column 2015-03-13 07:47:44 -03:00
builtin-timechart.c perf ordered_events: Shorten function signatures 2015-03-11 10:17:09 -03:00
builtin-top.c perf evlist: Adopt events_stats from perf_session 2015-02-22 22:22:57 -03:00
builtin-trace.c perf ordered_events: Shorten function signatures 2015-03-11 10:17:09 -03:00
builtin.h perf tools: Add new 'perf data' command 2015-02-25 12:42:25 -03:00
command-list.txt perf tools: Add new 'perf data' command 2015-02-25 12:42:25 -03:00
CREDITS
design.txt
Makefile perf tools: Compare JOBS to 0 after grep 2015-03-02 11:51:00 -03:00
Makefile.perf perf build: Rename PERF-FEATURES into FEATURE-DUMP 2015-03-18 15:10:44 -03:00
MANIFEST
perf-archive.sh
perf-completion.sh perf tools: Fix the bash completion to support listing events for --event 2015-03-19 13:49:37 -03:00
perf-read-vdso.c
perf-sys.h
perf-with-kcore.sh
perf.c perf tools: Fix the bash completion problem of 'perf --*' 2015-02-27 15:52:28 -03:00
perf.h perf record: Support recording running/enabled time 2015-02-25 12:42:23 -03:00