From: Francis Deslauriers Date: Fri, 13 Nov 2020 17:15:52 +0000 (-0500) Subject: Add token to `struct lttng_kernel_event` X-Git-Tag: v2.13.0-rc1~143 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d4f52727df0364e6c3eb0a1fd1ed5907439ad5d6;p=lttng-modules.git Add token to `struct lttng_kernel_event` 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 Signed-off-by: Mathieu Desnoyers Change-Id: I58cd6b6e33b97cc21e50cc0b36bef4b9e4224423 --- diff --git a/include/lttng/abi.h b/include/lttng/abi.h index 9141d4e5..0e3b5d15 100644 --- a/include/lttng/abi.h +++ b/include/lttng/abi.h @@ -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 */