From: Jérémie Galarneau Date: Tue, 19 Mar 2019 01:30:35 +0000 (-0400) Subject: Fix: missing mentions of tracing session rotation in basic help X-Git-Tag: v2.12.0-rc1~649 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=77927271f4b396ec3cb9e8e380c26d19e3589558;p=lttng-tools.git Fix: missing mentions of tracing session rotation in basic help The basic help shown when the 'lttng' binary is invoked without a command is currently out of sync with the LTTNG(1) man page. This adds the short descriptions of the 'rotate', 'enable-roation', and 'disable-rotation' commands which were added as part of the 2.11 release. Signed-off-by: Jérémie Galarneau --- diff --git a/configure.ac b/configure.ac index fa0edc442..f11d1b86d 100644 --- a/configure.ac +++ b/configure.ac @@ -410,6 +410,9 @@ _AC_DEFINE_QUOTED_AND_SUBST([CMD_DESCR_SNAPSHOT], [Snapshot buffers of current t _AC_DEFINE_QUOTED_AND_SUBST([CMD_DESCR_START], [Start tracing]) _AC_DEFINE_QUOTED_AND_SUBST([CMD_DESCR_STATUS], [Get the status of the current tracing session]) _AC_DEFINE_QUOTED_AND_SUBST([CMD_DESCR_STOP], [Stop tracing]) +_AC_DEFINE_QUOTED_AND_SUBST([CMD_DESCR_DISABLE_ROTATION], [Unset a rotation schedule]) +_AC_DEFINE_QUOTED_AND_SUBST([CMD_DESCR_ENABLE_ROTATION], [Set a rotation schedule]) +_AC_DEFINE_QUOTED_AND_SUBST([CMD_DESCR_ROTATE], [Archive a tracing session’s current trace chunk]) _AC_DEFINE_QUOTED_AND_SUBST([CMD_DESCR_TRACK], [Track specific system resources]) _AC_DEFINE_QUOTED_AND_SUBST([CMD_DESCR_UNTRACK], [Untrack specific system resources]) _AC_DEFINE_QUOTED_AND_SUBST([CMD_DESCR_VERSION], [Show version information]) diff --git a/src/bin/lttng/lttng.c b/src/bin/lttng/lttng.c index 8842a03b5..aaee5a25d 100644 --- a/src/bin/lttng/lttng.c +++ b/src/bin/lttng/lttng.c @@ -303,6 +303,11 @@ static void show_basic_help(void) puts(" start " CONFIG_CMD_DESCR_START); puts(" stop " CONFIG_CMD_DESCR_STOP); puts(""); + puts("Tracing session rotation:"); + puts(" disable-rotation " CONFIG_CMD_DESCR_DISABLE_ROTATION); + puts(" enable-rotation " CONFIG_CMD_DESCR_ENABLE_ROTATION); + puts(" rotate " CONFIG_CMD_DESCR_ROTATE); + puts(""); puts("Resource tracking:"); puts(" track " CONFIG_CMD_DESCR_TRACK); puts(" untrack " CONFIG_CMD_DESCR_UNTRACK);