projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
epoll/poll compat: expose interruptible API
[lttng-tools.git]
/
extras
/
lttng-bash_completion
diff --git
a/extras/lttng-bash_completion
b/extras/lttng-bash_completion
index 335e9d128454fe3da1b5312624c9d8515b54c0d1..c7482c5450be01613a6aee8b142de7627e85d7ff 100644
(file)
--- a/
extras/lttng-bash_completion
+++ b/
extras/lttng-bash_completion
@@
-18,7
+18,7
@@
# Generates COMPREPLY with the existing session names
_lttng_complete_sessions() {
local sessions
# Generates COMPREPLY with the existing session names
_lttng_complete_sessions() {
local sessions
- sessions=$(lttng --mi xml list | xmllint --xpath "//command/output/sessions/session/name" - 2>/dev/null | sed -e 's/<name>//g' -e $'s/<\/name>/\\n/g')
+ sessions=$(lttng --mi xml list |
sed '2 s/xmlns/ignore/g' |
xmllint --xpath "//command/output/sessions/session/name" - 2>/dev/null | sed -e 's/<name>//g' -e $'s/<\/name>/\\n/g')
COMPREPLY=( $(compgen -W "${sessions}" -- $cur) )
return
}
COMPREPLY=( $(compgen -W "${sessions}" -- $cur) )
return
}
@@
-27,7
+27,7
@@
_lttng_complete_sessions() {
# Generates COMPREPLY with the available kernel event
_lttng_complete_kernel_events() {
local kernel_event
# Generates COMPREPLY with the available kernel event
_lttng_complete_kernel_events() {
local kernel_event
- kernel_event=$(lttng --mi xml list -k | xmllint --xpath "//command/output/domains/domain[./type = 'KERNEL']/events/event/name" - 2>/dev/null | sed -e "s/<name>//g" -e $"s/<\/name>/\\n/g")
+ kernel_event=$(lttng --mi xml list -k |
sed '2 s/xmlns/ignore/g' |
xmllint --xpath "//command/output/domains/domain[./type = 'KERNEL']/events/event/name" - 2>/dev/null | sed -e "s/<name>//g" -e $"s/<\/name>/\\n/g")
COMPREPLY=( $(compgen -W "${kernel_event}" -- $cur) )
return
}
COMPREPLY=( $(compgen -W "${kernel_event}" -- $cur) )
return
}
@@
-35,7
+35,7
@@
_lttng_complete_kernel_events() {
# Generates COMPREPLY with the available ust event
_lttng_complete_ust_events() {
local ust_event
# Generates COMPREPLY with the available ust event
_lttng_complete_ust_events() {
local ust_event
- ust_event=$(lttng --mi xml list -u | xmllint --xpath "//command/output/domains/domain[./type = 'UST']/pids/pid/events/event/name" - 2>/dev/null | sed -e "s/<name>//g" -e $"s/<\/name>/\\n/g")
+ ust_event=$(lttng --mi xml list -u |
sed '2 s/xmlns/ignore/g' |
xmllint --xpath "//command/output/domains/domain[./type = 'UST']/pids/pid/events/event/name" - 2>/dev/null | sed -e "s/<name>//g" -e $"s/<\/name>/\\n/g")
COMPREPLY=( $(compgen -W "${ust_event}" -- $cur) )
return
}
COMPREPLY=( $(compgen -W "${ust_event}" -- $cur) )
return
}
@@
-43,7
+43,7
@@
_lttng_complete_ust_events() {
# Generates COMPREPLY with the available jul event
_lttng_complete_jul_events() {
local jul_event
# Generates COMPREPLY with the available jul event
_lttng_complete_jul_events() {
local jul_event
- jul_event=$(lttng --mi xml list -j | xmllint --xpath "//command/output/domains/domain[./type = 'JUL']/pids/pid/events/event/name" - 2>/dev/null | sed -e "s/<name>//g" -e $"s/<\/name>/\\n/g")
+ jul_event=$(lttng --mi xml list -j |
sed '2 s/xmlns/ignore/g' |
xmllint --xpath "//command/output/domains/domain[./type = 'JUL']/pids/pid/events/event/name" - 2>/dev/null | sed -e "s/<name>//g" -e $"s/<\/name>/\\n/g")
COMPREPLY=( $(compgen -W "${jul_event}" -- $cur) )
return
}
COMPREPLY=( $(compgen -W "${jul_event}" -- $cur) )
return
}
@@
-84,17
+84,6
@@
_lttng_cmd_addcontext() {
esac
}
esac
}
-_lttng_cmd_calibrate() {
- options=$(lttng calibrate --list-options)
-
- case $cur in
- -*)
- _lttng_complete_options
- return
- ;;
- esac
-}
-
_lttng_cmd_create() {
options=$(lttng create --list-options)
_lttng_cmd_create() {
options=$(lttng create --list-options)
This page took
0.026368 seconds
and
4
git commands to generate.