From 8e49ca127d75e09de47b55f171f250bf4b64f219 Mon Sep 17 00:00:00 2001 From: Francis Deslauriers Date: Fri, 13 Nov 2020 16:27:59 -0500 Subject: [PATCH] kernel: Add token field to `struct lttng_kernel_event` MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This field will be used by event notifier and counters features. Signed-off-by: Francis Deslauriers Signed-off-by: Jérémie Galarneau Change-Id: I48d71a240150355d80b5a325717ca695467c5451 --- src/common/lttng-kernel.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/lttng-kernel.h b/src/common/lttng-kernel.h index 565f53928..3dd866c75 100644 --- a/src/common/lttng-kernel.h +++ b/src/common/lttng-kernel.h @@ -159,11 +159,12 @@ struct lttng_kernel_function { char symbol_name[LTTNG_KERNEL_SYM_NAME_LEN]; } LTTNG_PACKED; -#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]; enum lttng_kernel_instrumentation instrumentation; + uint64_t token; char padding[LTTNG_KERNEL_EVENT_PADDING1]; /* Per instrumentation type configuration */ -- 2.34.1