From 8968a99fff433db0ce9268ed8f4107ddaf072186 Mon Sep 17 00:00:00 2001 From: Francis Deslauriers Date: Tue, 17 Nov 2020 18:15:14 -0500 Subject: [PATCH] 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 --- include/lttng/ust-abi.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */ -- 2.34.1