kernel: Add token field to `struct lttng_kernel_event`
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Fri, 13 Nov 2020 21:27:59 +0000 (16:27 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 8 Dec 2020 17:25:37 +0000 (12:25 -0500)
This field will be used by event notifier and counters features.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I48d71a240150355d80b5a325717ca695467c5451

src/common/lttng-kernel.h

index 565f5392878d97be8b27f2a3f13cb571b9ad8a5a..3dd866c75eb5fd0707a24606134e970f9c311af3 100644 (file)
@@ -159,11 +159,12 @@ struct lttng_kernel_function {
        char symbol_name[LTTNG_KERNEL_SYM_NAME_LEN];
 } LTTNG_PACKED;
 
        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;
 #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 */
        char padding[LTTNG_KERNEL_EVENT_PADDING1];
 
        /* Per instrumentation type configuration */
This page took 0.025631 seconds and 4 git commands to generate.