aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2012-10-04 14:23:54 +0900
committerArnaldo Carvalho de Melo <[email protected]>2012-10-04 12:44:52 -0300
commitae0c1f993411d88bf54c9e20a4249ebcc7a041f9 (patch)
treea7ba7fa86b502c573861bfa65f43da375cc89aa8 /tools/perf/util/trace-event-scripting.c
parente60fc847cefa34d9b7a60f8fbbe3f7dc68fbd75e (diff)
perf tools: Complete tracepoint event names
Currently tracepoint events cannot be completed because they contain a colon (:) character. The colon is considered as a word separator when bash completion is done - variable COMP_WORDBREAKS contains colon - so if a word being completed contains a colon it can be a problem. Recent versions of bash completion provide -n switch to _get_comp_words_by_ref and __ltrim_colon_completions functions in order to resolve this issue. Copy the latter in case not exists. Signed-off-by: Namhyung Kim <[email protected]> Cc: David Ahern <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions