esac
}
+_lttng_cmd_calibrate() {
+ local calibrate_opts
+ calibrate_opts=$(lttng calibrate --list-options)
+
+ case $cur in
+ -*)
+ COMPREPLY=( $(compgen -W "${calibrate_opts}" -- $cur) )
+ ;;
+ esac
+}
+
_lttng_cmd_create() {
local create_opts
create_opts=$(lttng create --list-options)
;;
esac
}
-
-_lttng_cmd_enablechannel() {
- local enable_channel_opts
- enable_channel_opts=$(lttng enable-channel --list-options)
+_lttng_cmd_disablechannel() {
+ local disable_channel_opts
+ disable_channel_opts=$(lttng disable-channel --list-options)
case $prev in
--session|-s)
case $cur in
-*)
- COMPREPLY=( $(compgen -W "${enable_channel_opts}" -- $cur) )
+ COMPREPLY=( $(compgen -W "${disable_channel_opts}" -- $cur) )
return
;;
esac
}
-
-_lttng_cmd_enableevent() {
- local enable_event_opts
- enable_event_opts=$(lttng enable-event --list-options)
+_lttng_cmd_disableevent() {
+ local disable_event_opts
+ disable_event_opts=$(lttng disable-event --list-options)
case $prev in
--session|-s)
--channel|-c)
return
;;
- --probe)
- return
- ;;
- --function)
- return
- ;;
esac
case $cur in
-*)
- COMPREPLY=( $(compgen -W "${enable_event_opts}" -- $cur) )
+ COMPREPLY=( $(compgen -W "${disable_event_opts}" -- $cur) )
return
;;
esac
}
-_lttng_cmd_disablechannel() {
- local disable_channel_opts
- disable_channel_opts=$(lttng disable-channel --list-options)
+_lttng_cmd_enablechannel() {
+ local enable_channel_opts
+ enable_channel_opts=$(lttng enable-channel --list-options)
case $prev in
--session|-s)
case $cur in
-*)
- COMPREPLY=( $(compgen -W "${disable_channel_opts}" -- $cur) )
+ COMPREPLY=( $(compgen -W "${enable_channel_opts}" -- $cur) )
return
;;
esac
}
-_lttng_cmd_disableevent() {
- local disable_event_opts
- disable_event_opts=$(lttng disable-event --list-options)
+_lttng_cmd_enableevent() {
+ local enable_event_opts
+ enable_event_opts=$(lttng enable-event --list-options)
case $prev in
--session|-s)
--channel|-c)
return
;;
+ --probe)
+ return
+ ;;
+ --function)
+ return
+ ;;
esac
case $cur in
-*)
- COMPREPLY=( $(compgen -W "${disable_event_opts}" -- $cur) )
+ COMPREPLY=( $(compgen -W "${enable_event_opts}" -- $cur) )
return
;;
esac
esac
}
-_lttng_cmd_calibrate() {
- local calibrate_opts
- calibrate_opts=$(lttng calibrate --list-options)
-
- case $cur in
- -*)
- COMPREPLY=( $(compgen -W "${calibrate_opts}" -- $cur) )
- ;;
- esac
-}
-
_lttng_cmd_view() {
local view_opts
view_opts=$(lttng view --list-options)