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

Modules | |
| Trigger action path API | |
Variables | |
| struct lttng_endpoint * | lttng_session_daemon_command_endpoint |
| LTTng session daemon command endpoint. | |
The documentation of the error query API is incomplete.
The text below shows the typical usage of this API, but the types, enumerators, and functions of lttng/error-query.h aren't documented individually.
An error query retrieves error information for a given trigger, its condition, or its action from an LTTng session daemon.
To perform an error query:
Create the error query object with one of:
| Target | Creation function |
|---|---|
| Trigger | lttng_error_query_trigger_create() |
| Trigger condition | lttng_error_query_condition_create() |
| Trigger action | lttng_error_query_action_create(), which accepts a trigger action path to locate a specific action within the action tree formed with action lists. |
Execute the error query against the LTTng session daemon endpoint with lttng_error_query_execute(), passing an #lttng_error_query_results pointer.
You need to pass the lttng_session_daemon_command_endpoint endpoint to lttng_error_query_execute().
Borrow a result by index from the results with lttng_error_query_results_get_result().
For a given result:
|
extern |
LTTng session daemon command endpoint.
This endpoint follows the typical session daemon connection procedure.
The purpose of this endpoint is to execute an error query with lttng_error_query_execute().