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

Enumerations | |
| enum | lttng_action_status { LTTNG_ACTION_STATUS_OK , LTTNG_ACTION_STATUS_ERROR , LTTNG_ACTION_STATUS_UNKNOWN , LTTNG_ACTION_STATUS_INVALID , LTTNG_ACTION_STATUS_UNSET } |
| Return type of trigger action API functions. More... | |
| enum | lttng_action_type { LTTNG_ACTION_TYPE_NOTIFY , LTTNG_ACTION_TYPE_START_SESSION , LTTNG_ACTION_TYPE_STOP_SESSION , LTTNG_ACTION_TYPE_ROTATE_SESSION , LTTNG_ACTION_TYPE_SNAPSHOT_SESSION , LTTNG_ACTION_TYPE_LIST , LTTNG_ACTION_TYPE_INCREMENT_MAP_VALUE , LTTNG_ACTION_TYPE_UNKNOWN } |
| Trigger action type. More... | |
Functions | |
| void | lttng_action_destroy (struct lttng_action *action) |
Destroys the trigger action action. | |
| enum lttng_action_type | lttng_action_get_type (const struct lttng_action *action) |
Returns the type of the trigger action action. | |
A trigger action is the part of a trigger which LTTng executes when its trigger condition is satisfied.
As of LTTng-tools 16.2, the following trigger actions are available:
LTTng can execute more than one action when a trigger fires: create a trigger action list with lttng_action_list_create().
Get the type of a trigger condition with lttng_condition_get_type().
By default, LTTng executes the action of a trigger every time it fires. See Trigger action rate policy API to change the rate policy of a trigger action (every N times or once after N times). As of LTTng-tools 16.2, you cannot change the rate policy of an “increment map value” action: its effective rate policy is “every time”.
Destroy a trigger condition with lttng_condition_destroy().
| enum lttng_action_status |
| enum lttng_action_type |
Trigger action type.
Get the type of a trigger action with lttng_action_get_type().
|
extern |
Destroys the trigger action action.
| [in] | action | Trigger action to destroy. May be |
|
extern |
Returns the type of the trigger action action.
| [in] | action | Trigger action of which to get the type. |
action.action is not NULL.