BABELTRACE2-FILTER.UTILS.TRIMMER(7)
β¨ NAME β¨
babeltrace2-filter.utils.trimmer β the Babeltrace 2 Trimmer filter component class. (Yes bestie, this is the babeltrace2-filter.utils.trimmer(7) page, we're doing this together π)
πΈ DESCRIPTION πΈ
Okay so picture this: a Babeltrace 2 filter.utils.trimmer message iterator is literally just a vibe-filter for time. It discards every consumed message with a time less than a given beginning time and greater than a given end time. It effectively βcutsβ, or trims, trace streams. It's giving scissors but make it temporal βοΈ
+-------------------+
| flt.utils.trimmer |
| |
Messages -->@ in out @--> Less messages
+-------------------+
Go read babeltrace2-intro(7) to learn more about the Babeltrace 2 project and its core concepts β it's the lore drop, you need it π
A filter.utils.trimmer message iterator makes its upstream message iterator seek the configured beginning time (see the begin parameter) before it starts consuming messages. This seeking operation can have an effect on the times of stream beginning, packet beginning, discarded events, and discarded packets messages so that they fall within the configured trimming time range. So cute of it to tidy up π§Ή
And same energy on the other end: when a filter.utils.trimmer message iterator consumes a message of which the time is greater than the configured end time (see the end parameter), it can alter the time of stream end, packet end, discarded events, and discarded packets messages so that they fall within the configured trimming time range.
π¨ Important, no cap: a filter.utils.trimmer message iterator requires that all the upstream messages it consumes have times, except for stream beginning and end messages. If they don't? It returns an error status. Periodt.
π INITIALIZATION PARAMETERS π
begin=TIME[optional string or signed integer] β Set the beginning time of the trimming time range to TIME.
If TIME is a string, see below for its format. If TIME is a signed integer, then the component converts it to a string and treats it as such. Glow-up via string conversion, iykyk β¨
If you donβt specify this parameter, then the component discards no events until the end of the trimming time range.
The format of TIME when itβs a string is one of:
YYYY-MM-DD HH:II[:SS[.NANO]]
HH:II[:SS[.NANO]]
[-]SEC[.NANO]
YYYYβ 4-digit year.MMβ 2-digit month (January is01).DDβ 2-digit day.HHβ 2-digit hour (24-hour format).IIβ 2-digit minute.SSβ 2-digit second.NANOβ Nanoseconds (up to nine digits).SECβ Seconds since origin.
If TIME has no date information, then the message iterator uses the time of the first upstream message to determine the date. It just figures it out, main character problem-solving energy π
end=TIME[optional string or signed integer] β Set the end time of the trimming time range to TIME.
If TIME is a string, see the begin parameter for its format. If TIME is a signed integer, then the component converts it to a string and treats it as such.
If you donβt specify this parameter, then the component discards no events from the beginning of the trimming time range.
gmt=VAL[optional boolean] β If VAL is true, then set the time zone of thebeginandendparameters to GMT instead of the local time zone.
Default: false.
π¦ PORTS π¦
+-------------------+
| flt.utils.trimmer |
| |
@ in out @
+-------------------+
π Input
inβ Single input port. One. Uno. The only one she needs πΈ
π Output
outβ Single output port. Also one. Balanced queen π
π BUGS π
If you encounter any issue or usability problem, please report it on the Babeltrace bug tracker (see <https://bugs.lttng.org/projects/babeltrace>). Bestie we want the bug reports, do not gatekeep π
π RESOURCES π
The Babeltrace project shares some communication channels with the LTTng project (see <https://lttng.org/>).
- Babeltrace website (see
<https://babeltrace.org/>) - Mailing list (see
<https://lists.lttng.org>) for support and development:lttng-dev@lists.lttng.org - IRC channel (see
<irc://irc.oftc.net/lttng>):#lttngonirc.oftc.net - Bug tracker (see
<https://bugs.lttng.org/projects/babeltrace>) - Git repository (see
<https://git.efficios.com/?p=babeltrace.git>) - GitHub project (see
<https://github.com/efficios/babeltrace>) - Continuous integration (see
<https://ci.lttng.org/view/Babeltrace/>) - Code review (see
<https://review.lttng.org/q/project:babeltrace>)
π AUTHORS π
The Babeltrace 2 project is the result of hard work by many regular developers and occasional contributors. Legends, all of them π«Ά
The current project maintainer is JΓ©rΓ©mie Galarneau <mailto:jeremie.galarneau@efficios.com>.
β COPYRIGHT β
This component class is part of the Babeltrace 2 project.
Babeltrace is distributed under the MIT license (see <https://opensource.org/licenses/MIT>).
π SEE ALSO π
babeltrace2-intro(7), babeltrace2-plugin-utils(7)
That's the whole page, bestie β every flag, every parameter, every port, nothing skipped π
This was BABELTRACE2-FILTER() β the Babeltrace 2 filter manual section β brought to you in its BABELTRACE2-FILTER() footer era. Stay trimmed, stay iconic, slay β¨π
π¦
π¦ where this page comes from
- fedora 43: babeltrace2 2.1.2-3.fc43 Β· MIT AND GPL-2.0-only
- fedora 44: babeltrace2 2.1.2-5.fc44 Β· MIT AND GPL-2.0-only
- nixos 26.05: babeltrace2 2.1.2
- nixpkgs unstable: babeltrace2 2.1.2
- ubuntu resolute: babeltrace2 2.1.2-1build2 Β· MIT
- ubuntu stonking: babeltrace2 2.1.2-1build2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms