From 49b50b8dca12448bdf678bdf140b96982c2b6ba3 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 28 Feb 2022 10:40:03 -0500 Subject: [PATCH] Fix: lttng_abi_validate_event_param: use kretprobe enum Signed-off-by: Mathieu Desnoyers Change-Id: I8c444e16781fb8d8df9f05f0c70775f324ae030f --- src/lttng-abi.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; -- 2.39.5