Cleanup: lttng_abi_create_event{,_notifier}: use switch/case rather than if
[lttng-modules.git] / include / lttng / abi.h
index 86c0a3cf493e73201c6e56737f317ecd344386fc..5745635e8e9bf937d7aca26d7efb5997cd22d6f8 100644 (file)
@@ -56,11 +56,18 @@ struct lttng_kernel_channel {
        char padding[LTTNG_KERNEL_CHANNEL_PADDING];
 } __attribute__((packed));
 
+enum lttng_kernel_kretprobe_entryexit {
+       LTTNG_KERNEL_KRETPROBE_ENTRYEXIT = 0,
+       LTTNG_KERNEL_KRETPROBE_ENTRY = 1,
+       LTTNG_KERNEL_KRETPROBE_EXIT = 2,
+};
+
 struct lttng_kernel_kretprobe {
        uint64_t addr;
 
        uint64_t offset;
        char symbol_name[LTTNG_KERNEL_SYM_NAME_LEN];
+       uint8_t entryexit;      /* enum lttng_kernel_kretprobe_entryexit */
 } __attribute__((packed));
 
 /*
@@ -146,6 +153,8 @@ struct lttng_kernel_event_notifier {
        char padding[LTTNG_KERNEL_EVENT_NOTIFIER_PADDING];
 } __attribute__((packed));
 
+#define LTTNG_KERNEL_COUNTER_DIMENSION_MAX     4
+
 enum lttng_kernel_counter_arithmetic {
        LTTNG_KERNEL_COUNTER_ARITHMETIC_MODULAR = 0,
 };
@@ -163,13 +172,15 @@ struct lttng_kernel_counter_dimension {
        uint8_t has_overflow;
 } __attribute__((packed));
 
-#define LTTNG_KERNEL_COUNTER_DIMENSION_MAX 4
+#define LTTNG_KERNEL_COUNTER_CONF_PADDING1     67
 struct lttng_kernel_counter_conf {
        uint32_t arithmetic;    /* enum lttng_kernel_counter_arithmetic */
        uint32_t bitness;       /* enum lttng_kernel_counter_bitness */
        uint32_t number_dimensions;
        int64_t global_sum_step;
        struct lttng_kernel_counter_dimension dimensions[LTTNG_KERNEL_COUNTER_DIMENSION_MAX];
+       uint8_t coalesce_hits;
+       char padding[LTTNG_KERNEL_COUNTER_CONF_PADDING1];
 } __attribute__((packed));
 
 struct lttng_kernel_counter_index {
This page took 0.023877 seconds and 4 git commands to generate.