"BABELTRACE2−SOURCE - Online Linux Manual Page
NAMEbabeltrace2-source.ctf.fs − Babeltrace 2's file system CTF source component class

DESCRIPTIONA Babeltrace ​2 source.ctf.fs message iterator reads one or more CTF (see <https://diamon.org/ctf/>) ​1​.8 streams on the file system and emits corresponding messages​. CTF streams on the file system | | +−−−−−−−−−−−−−−−−−−−−−+ | | src​.ctf​.fs | | | | '−−>| ​.​.​.5c847 | 0 | 0 @−−> Stream 0 messages | ​.​.​.5c847 | 0 | 1 @−−> Stream 1 messages | ​.​.​.5c847 | 0 | 2 @−−> Stream 2 messages +−−−−−−−−−−−−−−−−−−−−−+See babeltrace2-intro(7) to learn more about the Babeltrace ​2 project and its core concepts​.

InputA source.ctf.fs component opens a single logical CTF trace​. A logical CTF trace contains one or more physical CTF traces​. A physical CTF trace on the file system is a directory which contains: •  One metadata stream file named metadata​. •  One or more data stream files, that is, any file with a name that does not start with . and which is not metadata​. •  Optional: One LTTng (see <https://lttng.org/>) index directory named index​. If the logical CTF trace to handle contains more than one physical CTF trace, then all the physical CTF traces must have a trace UUID and all UUIDs must be the same​. Opening more than one physical CTF trace to constitute a single logical CTF trace is needed to support LTTngs tracing session rotation feature, for example (see lttng-rotate(1) starting from LTTng ​2​.11)​. You specify which physical CTF traces to open and read with the inputs array parameter​. Each entry in this array is the path to a physical CTF trace directory, that is, the directory directly containing the stream files​. A source.ctf.fs component does not recurse into directories to find CTF traces​. However, the component class provides the babeltrace.support-info query object which indicates whether or not a given directory looks like a CTF trace directory (see babeltrace.support-info)​. The component creates one output port for each logical CTF data stream​. More than one physical CTF data stream file can support a single logical CTF data stream (LTTngs trace file rotation and tracing session rotation can cause this)​. If two or more data stream files contain the same packets, a source.ctf.fs message iterator reads each of them only once so that it never emits duplicated messages​. This feature makes it possible, for example, to open overlapping LTTng snapshots (see <https://lttng.org/docs/#doc-taking-a-snapshot>) with a single source.ctf.fs component and silently discard the duplicated packets​.

Trace quirksMany tracers produce CTF traces​. A source.ctf.fs component makes some effort to support as many CTF traces as possible, even those with malformed streams​. Generally: •  If the timestamp_begin or timestamp_end packet context field class exists, but it is not mapped to a clock class, and theres only one clock class at this point in the metadata stream, the component maps the field class to this unique clock class​. A source.ctf.fs component has special quirk handling for some LTTng (see <https://lttng.org/>) and barectf (see <https://lttng.org/>) traces, depending on the tracers version: All LTTng versions •  The component sets the monotonic clock classs origin to the Unix epoch so that different LTTng traces are always correlatable​. This is the equivalent of setting the force-clock-class-origin-unix-epoch parameter to true​. •  For a given data stream, for all the contiguous last packets of which the timestamp_end context field is 0, the message iterator uses the packets last event records time as the packet end messages time​. This is useful for the traces which lttng-crash(1) generates​. LTTng−UST up to, but excluding, 2​.11​.0, LTTng−modules up to, but excluding, 2​.9​.13, LTTng−modules from 2​.10​.0 to 2​.10​.9 •  For a given packet, the message iterator uses the packets last event records time as the packet end messages time, ignoring the packet contexts timestamp_end field​. barectf up to, but excluding, 2​.3​.1 •  For a given packet, the message iterator uses the packets first event records time as the packet beginning messages time, ignoring the packet contexts timestamp_begin field​.

INITIALIZATION PARAMETERSclock-class-offset-ns=NS [optional signed integer] Add NS nanoseconds to the offset of all the clock classes that the component creates​. You can combine this parameter with the clock-class-offset-s parameter​. clock-class-offset-s=SEC [optional signed integer] Add SEC seconds to the offset of all the clock classes that the component creates​. You can combine this parameter with the clock-class-offset-ns parameter​. force-clock-class-origin-unix-epoch=yes [optional boolean] Force the origin of all clock classes that the component creates to have a Unix epoch origin, whatever the detected tracer​. inputs=DIRS [array of strings] Open and read the physical CTF traces located in DIRS​. Each element of DIRS is the path to a physical CTF trace directory containing the traces stream files​. All the specified physical CTF traces must belong to the same logical CTF trace​. See Input to learn more about logical and physical CTF traces​. trace-name=NAME [optional string] Set the name of the trace object that the component creates to NAME​.

PORTS+−−−−−−−−−−−−−−−−−−−−+ | src​.ctf​.fs | | | | ​.​.​.5c847 | 0 | 1 @ | ​.​.​. @ +−−−−−−−−−−−−−−−−−−−−+

OutputA source.ctf.fs component creates one output port for each logical CTF data stream​. See Input to learn more about logical and physical CTF data streams​. Each output ports name has one of the following forms: TRACE−ID | STREAM−CLASS−ID | STREAM−ID TRACE−ID | STREAM−IDThe component uses the second form when the stream class ID is not available​. TRACE−ID Traces UUID if available, otherwise traces absolute directory path​. STREAM−CLASS−ID Stream class ID​. STREAM−ID Stream ID if available, otherwise streams absolute file path​.

QUERY OBJECTS

babeltrace​.support−infoSee babeltrace2-query-babeltrace.support-info(7) to learn more about this query object​. For a directory input which is the path to a CTF trace directory, the result object contains: weight 0​.75 group Traces UUID if available, otherwise the entry does not exist​. You can leverage this query objects group entry to assemble many physical CTF traces as a single logical CTF trace (see Input to learn more about logical and physical CTF traces)​. This is how the babeltrace2-convert(1) command makes it possible to specify as non−option arguments the paths to multiple physical CTF traces which belong to the same logical CTF trace and create a single source.ctf.fs component​.

babeltrace​.trace−infosSee babeltrace2-query-babeltrace.trace-infos(7) to learn more about this query object​.

metadata−infoYou can query the metadata-info object for a specific CTF trace to get its plain text metadata stream as well as whether or not it is packetized​. Parameters: path=PATH [string] Path to the physical CTF trace directory which contains the metadata file​. Result object (map): is-packetized [boolean] True if the metadata stream file is packetized​. text [string] Plain text metadata stream​.

BUGSIf you encounter any issue or usability problem, please report it on the Babeltrace bug tracker (see <https://bugs.lttng.org/projects/babeltrace>)​.

RESOURCESThe 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>): #lttng on irc.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>)

AUTHORSThe Babeltrace ​2 project is the result of hard work by many regular developers and occasional contributors​. The current project maintainer is Jérémie Galarneau <mailto:jeremie.galarneau@efficios.com>​.

COPYRIGHTThis component class is part of the Babeltrace ​2 project​. Babeltrace is distributed under the MIT license (see <https://opensource.org/licenses/MIT>)​.

SEE ALSObabeltrace2-intro(7), babeltrace2-plugin-ctf(7), lttng-crash(1)
0
Johanes Gumabo
Data Size   :   37,042 byte
man-babeltrace2-source.ctf.fs.7Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 175,863
Visitor ID   :     :  
Visitor IP   :   3.12.151.11   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.