Add token to `struct lttng_ust_event`
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Tue, 17 Nov 2020 23:15:14 +0000 (18:15 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 26 Nov 2020 18:13:04 +0000 (13:13 -0500)
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 <francis.deslauriers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I780c681a6775cf61a2f805b7c6aed6ff2e321ea9

include/lttng/ust-abi.h

index 8bf77f64bb036106cc055d97fa2d0acb678d55f3..78aae7c73cbd265c651a3bac753273ee0a8e6665 100644 (file)
@@ -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 */
This page took 0.025237 seconds and 5 git commands to generate.