1 .Pretty-print the events, in order, of one or more CTF traces.
5 $ babeltrace2 my-ctf-traces
10 $ babeltrace2 my-ctf-traces
15 $ babeltrace2 my-ctf-trace-1 my-ctf-trace-2 my-ctf-trace-3
19 .Trim a CTF trace and pretty-print the events.
23 $ babeltrace2 my-ctf-trace --begin=22:55:43.658582931 \
24 --end=22:55:46.967687564
29 $ babeltrace2 my-trace --begin=22:55:43.658582931
34 $ babeltrace2 my-trace --end=22:55:46.967687564
39 $ babeltrace2 my-trace --timerange=22:55:43,22:55:46.967687564
43 .Trim a CTF trace, enable the stream intersection mode, and write a CTF trace.
47 $ babeltrace2 my-ctf-trace --stream-intersection \
48 --timerange=22:55:43,22:55:46.967687564 \
49 --output-format=ctf --output=out-ctf-trace
53 .Print the available remote LTTng sessions (through LTTng live).
57 $ babeltrace2 --input-format=lttng-live net://localhost
61 .Pretty-print LTTng live events.
65 $ babeltrace2 net://localhost/host/myhostname/my-session-name
69 .Record LTTng live traces to the file system (as CTF traces).
73 $ babeltrace2 net://localhost/host/myhostname/my-session-name \
74 --params=session-not-found-action=end \
75 --output-format=ctf --output=out-ctf-traces
79 .Read a CTF trace as fast as possible using a dummy output.
83 $ babeltrace2 my-trace --output-format=dummy
87 .Read three CTF traces in stream intersection mode, add debugging information, and pretty-print them to a file.
91 $ babeltrace2 ctf-trace1 ctf-trace2 ctf-trace3 --stream-intersection \
92 --debug-info --output=pretty-out
96 .Pretty-print a CTF trace and traces from an explicit source component, with the event times showed in seconds since the Unix epoch.
100 $ babeltrace2 ctf-trace --component=src.my-plugin.my-src \
101 --params='path="spec-trace",output-some-event-type=yes' \
106 .Send LTTng live events to an explicit sink component.
110 $ babeltrace2 net://localhost/host/myhostname/mysession \
111 --component=sink.my-plugin.my-sink
115 .Trim a CTF trace, add debugging information, apply an explicit filter component, and write as a CTF trace.
119 $ babeltrace2 /path/to/ctf/trace --timerange=22:14:38,22:15:07 \
120 --debug-info --component=filter.my-plugin.my-filter \
121 --params=criteria=xyz,ignore-abc=yes \
122 --output-format=ctf --output=out-ctf-trace
126 .Print the metadata text of a CTF trace.
130 $ babeltrace2 /path/to/ctf/trace --output-format=ctf-metadata