From: Mathieu Desnoyers Date: Mon, 28 Feb 2022 15:40:03 +0000 (-0500) Subject: Fix: lttng_abi_validate_event_param: use kretprobe enum X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=49b50b8dca12448bdf678bdf140b96982c2b6ba3;p=lttng-modules.git Fix: lttng_abi_validate_event_param: use kretprobe enum Signed-off-by: Mathieu Desnoyers Change-Id: I8c444e16781fb8d8df9f05f0c70775f324ae030f --- diff --git a/src/lttng-abi.c b/src/lttng-abi.c index afd23373..06cb5324 100644 --- a/src/lttng-abi.c +++ b/src/lttng-abi.c @@ -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;