Fix: lttng_abi_validate_event_param: use kretprobe enum
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 28 Feb 2022 15:40:03 +0000 (10:40 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 15 Jul 2024 20:57:36 +0000 (16:57 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I8c444e16781fb8d8df9f05f0c70775f324ae030f

src/lttng-abi.c

index afd233738dc326b66e80df9ae81c53ff52520557..06cb53249cd04a902fc7f596f9b7114305e97040 100644 (file)
@@ -1767,11 +1767,11 @@ int lttng_abi_validate_event_param(struct lttng_kernel_abi_event *event_param)
        switch (event_param->instrumentation) {
        case LTTNG_KERNEL_ABI_SYSCALL:
                switch (event_param->u.syscall.entryexit) {
+               case LTTNG_KERNEL_ABI_SYSCALL_ENTRYEXIT:
+                       lttng_fallthrough;
                case LTTNG_KERNEL_ABI_SYSCALL_ENTRY:
                        lttng_fallthrough;
                case LTTNG_KERNEL_ABI_SYSCALL_EXIT:
-                       lttng_fallthrough;
-               case LTTNG_KERNEL_ABI_SYSCALL_ENTRYEXIT:
                        break;
                default:
                        return -EINVAL;
@@ -1792,11 +1792,11 @@ int lttng_abi_validate_event_param(struct lttng_kernel_abi_event *event_param)
 
        case LTTNG_KERNEL_ABI_KRETPROBE:
                switch (event_param->u.kretprobe.entryexit) {
-               case LTTNG_KERNEL_ABI_SYSCALL_ENTRYEXIT:
+               case LTTNG_KERNEL_ABI_KRETPROBE_ENTRYEXIT:
                        break;
-               case LTTNG_KERNEL_ABI_SYSCALL_ENTRY:
+               case LTTNG_KERNEL_ABI_KRETPROBE_ENTRY:
                        lttng_fallthrough;
-               case LTTNG_KERNEL_ABI_SYSCALL_EXIT:
+               case LTTNG_KERNEL_ABI_KRETPROBE_EXIT:
                        lttng_fallthrough;
                default:
                        return -EINVAL;
This page took 0.028623 seconds and 4 git commands to generate.