LTTNG-DISABLE-ROTA(1)

πŸ’… lttng-disable-rotation β€” from the LTTng Manual (yes bestie, LTTNG-DISABLE-ROTA(1), that's the one)

✨ NAME ✨

lttng-disable-rotation β€” unset an LTTng recording session rotation schedule πŸŽ€


🌸 SYNOPSIS 🌸

lttng [GENERAL OPTIONS] disable-rotation [--session=SESSION]
      (--timer | --size | --timer --size)

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the lttng disable-rotation command unsets a rotation schedule that you (or someone iconic) previously set with the lttng-enable-rotation(1) command. and who is it doing this for?? depends:

  • with the --session=SESSION option β€” it's for the recording session named SESSION, periodt πŸ’…
  • without the --session option β€” it's for the current recording session (go peek at lttng-concepts(7) if you wanna learn more about what "the current recording session" even means, iykyk)

also go read lttng-concepts(7) to learn more about the recording session rotation and trace chunk concepts β€” it's giving lore, honestly πŸ“š

and scroll down to the EXAMPLES section for usage examples, because seeing it > reading it, fr fr ✨


πŸ’– OPTIONS πŸ’–

see lttng(1) for GENERAL OPTIONS β€” those are the shared ones, not our problem here 🌈

Rotation schedule condition πŸŽ€

  • --size β€” unset the rotation schedule that was previously set with the --size option of the lttng-enable-rotation(1) command. bye bye size-based schedule πŸ’€
  • --timer β€” unset the rotation schedule that was previously set with the --timer option of the lttng-enable-rotation(1) command. the timer schedule is so over πŸ•βœ¨

Recording target 🫢

  • -s SESSION, --session=SESSION β€” unset a rotation schedule for the recording session named SESSION instead of the current recording session. main character session selection, no cap πŸ‘‘

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. it's lowkey doing its best πŸ₯Ί

  • --list-options β€” list available command options and quit. a lil menu, a lil snack, we love her πŸ“

πŸ’€ EXIT STATUS πŸ’€

  • 0 β€” success πŸŽ‰ ate and left no crumbs
  • 1 β€” command error 😭
  • 2 β€” undefined command πŸ™ˆ
  • 3 β€” fatal error πŸ’€ not slay
  • 4 β€” command warning (something went wrong during the command) πŸ‘€

🌈 ENVIRONMENT 🌈

  • LTTNG_ABORT_ON_ERROR β€” set to 1 to abort the process after the first error is encountered. zero patience, we respect it βœ‹
  • 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. (we've all been there 🫠)

  • LTTNG_LIST_LEGACY β€” set to 1 to use the legacy output format (LTTng 2.14 and earlier) for the lttng-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. so like, it's giving nostalgic but also missing stuff πŸ‘΅

  • LTTNG_MAN_BIN_PATH β€” absolute path to the manual pager to use to read the LTTng command-line help (with lttng-help(1) or with the --help option) instead of /usr/bin/man.
  • LTTNG_NO_UTF_8 β€” set to 1 to NOT emit multi-byte UTF-8 sequences, even if the locale claims to support it. plain text mode on purpose, respect 🧚
  • LTTNG_SESSION_CONFIG_XSD_PATH β€” path to the directory containing the session.xsd recording session configuration XML schema.
  • LTTNG_SESSIOND_PATH β€” absolute path to the LTTng session daemon binary (see lttng-sessiond(8)) to spawn from the lttng-create(1) command.

the --sessiond-path general option overrides this environment variable. so the CLI wins the vibe check πŸ’…

  • 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. rainbow always on 🌈
  • never β€” never emit SGR codes. boring but valid 🚫
  • NO_COLOR β€” if set and not empty, then it's equivalent to setting LTTNG_TERM_COLOR to never.

see NO_COLOR at 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. the memory keeper bestie 🧠✨

  • $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 (see lttng-save(1) and lttng-load(1)).
  • /etc/lttng/sessions β€” directory containing the system-wide saved recording session configurations (see lttng-save(1) and lttng-load(1)).
Note πŸ’‘: $LTTNG_HOME defaults to the value of the HOME environment variable.

🌟 EXAMPLES 🌟

Example 1. Unset the size-based rotation schedule of the current recording session.

see the --size option πŸ‘†

$ lttng disable-rotation --size

Example 2. Unset the periodic rotation schedule of a specific recording session.

see the --timer and --session options πŸ‘†

$ lttng disable-rotation --session=my-session --timer

πŸ”₯ RESOURCES πŸ”₯


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 file for details β€” https://github.com/lttng/lttng-tools/blob/master/LICENSE.


🫢 THANKS 🫢

special thanks to Michel Dagenais and the DORSAL laboratory at Γ‰cole Polytechnique de MontrΓ©al (http://www.dorsal.polymtl.ca/) for the LTTng journey. iconic behavior, truly πŸŽ“πŸ’–

also thanks to the Ericsson teams working on tracing which helped us greatly with detailed bug reports and unusual test cases. the realest πŸ’œ


🧚 SEE ALSO 🧚

lttng(1), lttng-enable-rotation(1), lttng-rotate(1), lttng-concepts(7)


k that's the whole page bestie πŸ’…

this was LTTng 2.15.1, dated 14 June 2021, and the page you just read is LTTNG-DISABLE-ROTA(1) β€” now go unset a rotation schedule, you've got this πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from