LTTNG-DISABLE-CHAN(1)
β¨ lttng-disable-channel β¨
okay bestie, welcome to the lttng-disable-channel page from the LTTng Manual π this is the little command that turns your tracing channels OFF and honestly? iconic behavior. let's go π
πΈ NAME πΈ
lttng-disable-channel β disable LTTng channels π
π¦ SYNOPSIS π¦
lttng [GENERAL OPTIONS] disable-channel (--kernel | --userspace)
[--session=SESSION] CHANNEL[,CHANNEL]...
π DESCRIPTION π
okay so. the lttng disable-channel command disables one or more channels that you previously enabled with lttng-enable-channel(1) π₯ and those channels belong to:
- With the
--session=SESSIONoption β the recording session named SESSION β¨ - Without the
--sessionoption β the current recording session (go peek atlttng-concepts(7)to learn more about the current recording session) π«Ά
See lttng-concepts(7) to learn more about channels, bestie, it's required reading fr fr π
The disable-channel command disables one channel per CHANNEL argument.
β οΈ as of LTTng 2.15.1, you may <strong>NOT</strong> enable a disabled channel once its recording session has been started (see lttng-start(1)) at least once. so likeβ¦ be careful okay π
see the βEXAMPLESβ section down below for usage examples π
β¨ OPTIONS β¨
See lttng(1) for GENERAL OPTIONS.
π§ Tracing domain
one of these, pick your fighter:
-k,--kernelβ disable one or more Linux kernel channels π§-u,--userspaceβ disable one or more user space channels π
π Recording target
-sSESSION,--session=SESSION β disable one or more channels of the recording session named SESSION instead of the current recording session π«
β Program information
-h,--helpβ show help.
this option attempts to launch /usr/bin/man to view this manual page. override the manual pager path with the LTTNG_MAN_BIN_PATH environment variable π
--list-optionsβ list available command options and quit. short, sweet, done π
π EXIT STATUS π
0β success π1β command error π2β undefined command π3β fatal error π4β command warning (something went wrong during the command) β οΈ
π ENVIRONMENT π
LTTNG_ABORT_ON_ERRORβ set to1to abort the process after the first error is encountered πLTTNG_HOMEβ path to the LTTng home directory.
defaults to $HOME.
useful when the Unix user running the commands has a non-writable home directory π«Ά
LTTNG_LIST_LEGACYβ set to1to use the legacy output format (LTTng 2.14 and earlier) for thelttng-list(1)command instead of the modern output format.
note that the legacy output doesnβt show anything related to features introduced after LTTng 2.14 π°οΈ
LTTNG_MAN_BIN_PATHβ absolute path to the manual pager to use to read the LTTng command-line help (withlttng-help(1)or with the--helpoption) instead of/usr/bin/manπLTTNG_NO_UTF_8β set to1to NOT emit multi-byte UTF-8 sequences, even if the locale claims to support it π«LTTNG_SESSION_CONFIG_XSD_PATHβ path to the directory containing thesession.xsdrecording session configuration XML schema πLTTNG_SESSIOND_PATHβ absolute path to the LTTng session daemon binary (seelttng-sessiond(8)) to spawn from thelttng-create(1)command.
the --sessiond-path general option overrides this environment variable π₯
LTTNG_TERM_COLORβ controls when to emit terminal SGR codes in the output.
the NO_COLOR environment variable overrides this π
one of:
auto(default) β only emit SGR codes when the standard output is connected to a color-capable terminal π₯οΈalwaysβ always emit SGR codes πneverβ never emit SGR codes β¬
NO_COLORβ if set and not empty, then itβs equivalent to settingLTTNG_TERM_COLORtonever.
see NO_COLOR <https://no-color.org/> to learn more π
π FILES π
$LTTNG_HOME/.lttngrcβ Unix userβs LTTng runtime configuration.
this is where LTTng stores the name of the Unix userβs current recording session between executions of lttng(1). lttng-create(1) and lttng-set-session(1) set the current recording session πΎ
$LTTNG_HOME/lttng-tracesβ default output directory of LTTng traces in local and snapshot modes.
override this path with the --output option of the lttng-create(1) command π
$LTTNG_HOME/.lttngβ Unix userβs LTTng runtime and configuration directory ποΈ$LTTNG_HOME/.lttng/sessionsβ default directory containing the Unix userβs saved recording session configurations (seelttng-save(1)andlttng-load(1)) π/etc/lttng/sessionsβ directory containing the system-wide saved recording session configurations (seelttng-save(1)andlttng-load(1)) π
Note β$LTTNG_HOMEdefaults to the value of theHOMEenvironment variable β¨
π§ EXAMPLES π§
Example 1. Disable one Linux kernel channel of the current recording session.
$ lttng disable-channel --kernel my-channel
Example 2. Disable two user space channels of a specific recording session.
see the --session option π
$ lttng disable-channel --kernel --session=my-session \
little,box
π¦ RESOURCES π¦
- LTTng project website <https://lttng.org> π
- LTTng documentation <https://lttng.org/docs> π
- LTTng bug tracker <https://bugs.lttng.org> π
- Git repositories <https://git.lttng.org> π³
- GitHub organization <https://github.com/lttng> π
- Continuous integration <https://ci.lttng.org/> βοΈ
- Mailing list <https://lists.lttng.org/> for support and development:
lttng-dev@lists.lttng.orgπ§ - IRC channel <irc://irc.oftc.net/lttng>:
#lttngonirc.oftc.netπ¬ - Mastodon <https://mastodon.social/@lttng> π
π COPYRIGHT π
this program is part of the LTTng-tools project β¨
LTTng-tools is distributed under the GNU General Public License version 2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html>. see the LICENSE <https://github.com/lttng/lttng-tools/blob/master/LICENSE> file for details π
π«Ά THANKS π«Ά
special thanks to Michel Dagenais and the DORSAL laboratory <http://www.dorsal.polymtl.ca/> at Γcole Polytechnique de MontrΓ©al for the LTTng journey ππ
also thanks to the Ericsson teams working on tracing which helped us greatly with detailed bug reports and unusual test cases π
π SEE ALSO π
lttng(1), lttng-enable-channel(1), lttng-concepts(7) π
LTTng 2.15.1 β 14 June 2021 πΈ and that's the whole page bestie, no cap, go disable some channels and slay π β¨
π¦ where this page comes from
- ubuntu stonking: lttng-tools 2.15.1-1 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms