![]() |
LTTng control library C API
|

The documentation of the trace chunk archive API is incomplete.
The text below shows the typical usage of this API, but the types, enumerators, and functions of lttng/location.h aren't documented individually.
A trace chunk archive location indicates where LTTng wrote a recording session trace chunk archive after a recording session rotation or destruction.
The type of a trace chunk archive location is #lttng_trace_archive_location.
A trace chunk archive location can refer to a local directory or to a remote LTTng relay daemon (see lttng-relayd(8)).
To inspect an existing trace chunk archive location, call lttng_trace_archive_location_get_type() to get its type (enumerator of #lttng_trace_archive_location_type). Depending on the returned type:
| Location type | Type enumerator | Property access |
|---|---|---|
| Local filesystem location | #LTTNG_TRACE_ARCHIVE_LOCATION_TYPE_LOCAL | Borrow the absolute directory path with lttng_trace_archive_location_local_get_absolute_path(). |
| Remote location (LTTng relay daemon) | #LTTNG_TRACE_ARCHIVE_LOCATION_TYPE_RELAY | Retrieve:
|
Each accessor returns an #lttng_trace_archive_location_status enumerator amongst:
Success.
Unsatisfied precondition.