- <strong>Normal mode</strong>: use bt_ctf_trace_create() to create a
default, empty trace class.
-- <strong>CTF IR writer mode</strong>: use bt_ctf_writer_get_trace() to
- get the trace class created by a given CTF IR writer object.
+- <strong>CTF writer mode</strong>: use bt_ctf_writer_get_trace() to
+ get the trace class created by a given CTF writer object.
A trace class has the following properties:
- A \b name.
- A <strong>default byte order</strong>: all the
- \link ctfirfieldtype field types\endlink eventually part of the trace
+ \link ctfirfieldtypes field types\endlink eventually part of the trace
class with a byte order set to #BT_CTF_BYTE_ORDER_NATIVE have this
"real" byte order.
- An \b environment, which is a custom key-value mapping. Keys are
- bt_ctf_trace_add_stream_class()
- bt_ctf_writer_create_stream()
- (\link ctfirwriter CTF IR writer\endlink mode only)
+ (\link ctfwriter CTF writer\endlink mode only)
You cannot modify a frozen trace class: it is considered immutable,
except for:
/** @} */
+/** @} */
+
/*
* bt_ctf_trace_get_metadata_string: get metadata string.
*