From: Francis Deslauriers Date: Fri, 13 Nov 2020 21:27:59 +0000 (-0500) Subject: kernel: Add token field to `struct lttng_kernel_event` X-Git-Tag: v2.13.0-rc1~402 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8e49ca127d75e09de47b55f171f250bf4b64f219;p=lttng-tools.git kernel: Add token field to `struct lttng_kernel_event` 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 --- 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 */