The channel-buffer-usage-ge trigger condition below is considered
satisfied when the ring buffer usage of the Linux kernel event record
channel named my-channel within the recording session named
my-session becomes greater than or equal to 512 KiB.
The order of the --action options below is significant.
$
lttng add-trigger --condition=channel-buffer-usage-ge \
--session=my-session --channel=my-channel \
--domain=kernel --threshold-size=512k \
--action=notify \
--action=rotate-session my-sessionSee lttng-concepts(7) to learn more about recording sessions,
event record channels, and rotations.