From: Francis Deslauriers Date: Tue, 17 Nov 2020 23:15:14 +0000 (-0500) Subject: Add token to `struct lttng_ust_event` X-Git-Tag: v2.13.0-rc1~453 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8968a99fff433db0ce9268ed8f4107ddaf072186;p=lttng-ust.git Add token to `struct lttng_ust_event` This token is provided by the user when registering an event rule to UST. It is going to used to identify messages from event notifiers in the upcoming event notifier feature. Signed-off-by: Francis Deslauriers Signed-off-by: Mathieu Desnoyers Change-Id: I780c681a6775cf61a2f805b7c6aed6ff2e321ea9 --- diff --git a/include/lttng/ust-abi.h b/include/lttng/ust-abi.h index 8bf77f64..78aae7c7 100644 --- a/include/lttng/ust-abi.h +++ b/include/lttng/ust-abi.h @@ -103,7 +103,7 @@ struct lttng_ust_stream { */ } LTTNG_PACKED; -#define LTTNG_UST_EVENT_PADDING1 16 +#define LTTNG_UST_EVENT_PADDING1 8 #define LTTNG_UST_EVENT_PADDING2 (LTTNG_UST_SYM_NAME_LEN + 32) struct lttng_ust_event { enum lttng_ust_instrumentation instrumentation; @@ -111,6 +111,7 @@ struct lttng_ust_event { enum lttng_ust_loglevel_type loglevel_type; int loglevel; /* value, -1: all */ + uint64_t token; /* User-provided token */ char padding[LTTNG_UST_EVENT_PADDING1]; /* Per instrumentation type configuration */