Add token to `struct lttng_kernel_event`
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Fri, 13 Nov 2020 17:15:52 +0000 (12:15 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 18 Nov 2020 18:05:55 +0000 (13:05 -0500)
This token is provided by the user when registering an event rule to the
kernel. It is going to used to identify messages from event notifiers, and
counter bucket owners in the upcoming event notifier and map counter
features.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I58cd6b6e33b97cc21e50cc0b36bef4b9e4224423

include/lttng/abi.h

index 9141d4e5cbe99c4915757794eef379d9587b159e..0e3b5d15661a7e2cdc9b323c33d6020f07b6fd51 100644 (file)
@@ -118,11 +118,12 @@ struct lttng_kernel_syscall {
 /*
  * For syscall tracing, name = "*" means "enable all".
  */
-#define LTTNG_KERNEL_EVENT_PADDING1    16
+#define LTTNG_KERNEL_EVENT_PADDING1    8
 #define LTTNG_KERNEL_EVENT_PADDING2    LTTNG_KERNEL_SYM_NAME_LEN + 32
 struct lttng_kernel_event {
        char name[LTTNG_KERNEL_SYM_NAME_LEN];   /* event name */
        uint32_t instrumentation;               /* enum lttng_kernel_instrumentation */
+       uint64_t token;                         /* User-provided token */
        char padding[LTTNG_KERNEL_EVENT_PADDING1];
 
        /* Per instrumentation type configuration */
This page took 0.026387 seconds and 4 git commands to generate.