X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=doc%2Fman%2Flttng-disable-event.1.txt;h=da6eb2d21e4a606abe381f82cf4d181f5f7865a8;hb=e971184584781f70bbbfc52bbede8b9abf0436e5;hp=9719a631c1fa441bdbcd35b49f19901140a3caac;hpb=484b2a0cbefcf0c7072622a5a411ea5ed849da28;p=lttng-tools.git diff --git a/doc/man/lttng-disable-event.1.txt b/doc/man/lttng-disable-event.1.txt index 9719a631c..da6eb2d21 100644 --- a/doc/man/lttng-disable-event.1.txt +++ b/doc/man/lttng-disable-event.1.txt @@ -1,6 +1,6 @@ lttng-disable-event(1) ====================== -:revdate: 21 April 2021 +:revdate: 14 June 2021 NAME @@ -33,7 +33,25 @@ DESCRIPTION ----------- The `lttng disable-event` command disables one or more enabled recording event rules previously created with the man:lttng-enable-event(1) -command. +command which belong to: + +With the option:--session='SESSION' option:: + The recording session named 'SESSION'. + +Without the option:--session option:: + The current recording session (see man:lttng-concepts(7) to learn + more about the current recording session). + +With the option:--channel='CHANNEL' option:: + The channel named 'CHANNEL'. + +Without the option:--channel option:: + The channel named `channel0`. ++ +If there's more than one channel for the selected recording session and +domain, the `disable-event` command fails. + +See man:lttng-concepts(7) to learn more about recording event rules. As of LTTng{nbsp}{lttng_version}, the `disable-event` command can only find recording event rules to disable by their instrumentation point @@ -41,7 +59,12 @@ type and event name conditions. Therefore, you cannot disable recording event rules having a specific instrumentation point log level condition, for example. -List the existing recording event rules of a given tracing session +With the option:--kernel option and no instrumentation point type +condition option, the `disable-event` command disables one or more Linux +kernel recording event rules regardless of their instrumentation point +type. + +List the recording event rules of a given recording session and/or channel with the man:lttng-list(1) command. Without the option:--all-events option, the `disable-event` command @@ -50,20 +73,14 @@ exact event name condition pattern of the recording event rule to disable, as listed in the output of `lttng list` (see man:lttng-list(1)). -Without the option:--channel option, the `disable-event` command selects -the channel named `channel0`. - -Without the option:--session option, the `disable-event` command selects -the current tracing session (see man:lttng-create(1) and -man:lttng-set-session(1) to learn more about the current tracing -session). - You may disable an enabled recording event rule regardless of the -activity (started or stopped) of its tracing session (see +activity (started or stopped) of its recording session (see man:lttng-start(1) and man:lttng-stop(1)). +See the ``<>'' section below for usage examples. + -include::common-cmd-options-head.txt[] +include::common-lttng-cmd-options-head.txt[] Tracing domain @@ -94,8 +111,8 @@ option:-c 'CHANNEL', option:--channel='CHANNEL':: 'CHANNEL' instead of `channel0`. option:-s 'SESSION', option:--session='SESSION':: - Disable recording event rules in the tracing session named 'SESSION' - instead of the current tracing session. + Disable recording event rules in the recording session named + 'SESSION' instead of the current recording session. Instrumentation point type condition @@ -128,26 +145,71 @@ With the option:--kernel or option:--userspace option::: With the option:--jul, option:--log4j, or option:--python option::: Logging events. -- -+ -As of LTTng{nbsp}{lttng_version}, this is the default instrumentation -point type condition option, but this may change in the future. Event name condition ~~~~~~~~~~~~~~~~~~~~ option:-a, option:--all-events:: Disable recording event rules regardless of their event name - condition is. + condition. + + +include::common-lttng-cmd-help-options.txt[] + + +include::common-lttng-cmd-after-options.txt[] -include::common-cmd-help-options.txt[] +[[examples]] +EXAMPLES +-------- +.Disable all Linux kernel tracepoint recording event rules in the default channel of the current recording session. +==== +See the option:--all-events option. + +[role="term"] +---- +$ lttng disable-event --kernel --tracepoint --all-events +---- +==== + +.Disable specific Apache log4j recording event rules in the default channel of a specific recording session. +==== +See the option:--session option. + +[role="term"] +---- +$ lttng disable-event --session=my-session --log4j \ + MySingleton,MyProxy,MyFacade +---- +==== + +.Disable all user space recording event rules in a specific channel of the current recording session. +==== +See the option:--channel option. + +[role="term"] +---- +$ lttng disable-event --channel=my-channel --userspace \ + --all-events +---- +==== + +.Disable specific Linux kernel system call recording event rules in the default channel of the current recording session. +==== +[role="term"] +---- +$ lttng disable-event --kernel --syscall pipe2,eventfd +---- +==== -include::common-cmd-footer.txt[] +include::common-footer.txt[] SEE ALSO -------- man:lttng(1), man:lttng-enable-event(1), -man:lttng-list(1) +man:lttng-list(1), +man:lttng-concepts(7)