X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Factions%2Faction.c;h=2bf5e4877c501f0df38e1de1e1072278d4a7b660;hp=95a0c0f4d20a19eb743b60d392c65934a82d656f;hb=refs%2Fheads%2Fsow-2020-0002-rev2;hpb=11f6ce94d8fb73f017888681aaba5d7df55fc735 diff --git a/src/common/actions/action.c b/src/common/actions/action.c index 95a0c0f4d..2bf5e4877 100644 --- a/src/common/actions/action.c +++ b/src/common/actions/action.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -33,6 +34,8 @@ const char *lttng_action_type_string(enum lttng_action_type action_type) return "START_SESSION"; case LTTNG_ACTION_TYPE_STOP_SESSION: return "STOP_SESSION"; + case LTTNG_ACTION_TYPE_INCREMENT_VALUE: + return "INCREMENT_VALUE"; default: return "???"; } @@ -182,6 +185,10 @@ ssize_t lttng_action_create_from_payload(struct lttng_payload_view *view, create_from_payload_cb = lttng_action_stop_session_create_from_payload; break; + case LTTNG_ACTION_TYPE_INCREMENT_VALUE: + create_from_payload_cb = + lttng_action_incr_value_create_from_payload; + break; case LTTNG_ACTION_TYPE_GROUP: create_from_payload_cb = lttng_action_group_create_from_payload; break;