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