Cleanup: remove usage of enum in ABI structures
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Wed, 30 Sep 2020 18:27:26 +0000 (14:27 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 18 Nov 2020 17:55:14 +0000 (12:55 -0500)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I3730f7c0341028b25231c368166ee6e5fd74fa5d

include/lttng/abi.h

index 086a5834fe764b9e0342b7a4c72c296be1ae1903..9141d4e5cbe99c4915757794eef379d9587b159e 100644 (file)
@@ -50,7 +50,7 @@ struct lttng_kernel_channel {
        uint64_t num_subbuf;
        unsigned int switch_timer_interval;     /* usecs */
        unsigned int read_timer_interval;       /* usecs */
-       enum lttng_kernel_output output;        /* splice, mmap */
+       uint32_t output;                        /* enum lttng_kernel_output (splice, mmap) */
        int overwrite;                          /* 1: overwrite, 0: discard */
        char padding[LTTNG_KERNEL_CHANNEL_PADDING];
 } __attribute__((packed));
@@ -122,7 +122,7 @@ struct lttng_kernel_syscall {
 #define LTTNG_KERNEL_EVENT_PADDING2    LTTNG_KERNEL_SYM_NAME_LEN + 32
 struct lttng_kernel_event {
        char name[LTTNG_KERNEL_SYM_NAME_LEN];   /* event name */
-       enum lttng_kernel_instrumentation instrumentation;
+       uint32_t instrumentation;               /* enum lttng_kernel_instrumentation */
        char padding[LTTNG_KERNEL_EVENT_PADDING1];
 
        /* Per instrumentation type configuration */
@@ -160,7 +160,7 @@ enum lttng_kernel_calibrate_type {
 };
 
 struct lttng_kernel_calibrate {
-       enum lttng_kernel_calibrate_type type;  /* type (input) */
+       uint32_t type;  /* enum lttng_kernel_calibrate_type (input) */
 } __attribute__((packed));
 
 struct lttng_kernel_syscall_mask {
@@ -218,7 +218,7 @@ struct lttng_kernel_perf_counter_ctx {
 #define LTTNG_KERNEL_CONTEXT_PADDING1  16
 #define LTTNG_KERNEL_CONTEXT_PADDING2  LTTNG_KERNEL_SYM_NAME_LEN + 32
 struct lttng_kernel_context {
-       enum lttng_kernel_context_type ctx;
+       uint32_t ctx;   /*enum lttng_kernel_context_type */
        char padding[LTTNG_KERNEL_CONTEXT_PADDING1];
 
        union {
@@ -247,7 +247,7 @@ enum lttng_kernel_tracker_type {
 };
 
 struct lttng_kernel_tracker_args {
-       enum lttng_kernel_tracker_type type;
+       uint32_t type;  /* enum lttng_kernel_tracker_type */
        int32_t id;
 };
 
This page took 0.027997 seconds and 4 git commands to generate.