From: Francis Deslauriers Date: Tue, 24 Nov 2020 16:08:14 +0000 (-0500) Subject: Allow LTTNG_KERNEL_SYSCALL_{ENTRY, EXIT} X-Git-Tag: v2.13.0-rc1~110 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c5d12b5b757bc06573a5ffa1e8ac83c1ef34e3df;p=lttng-modules.git Allow LTTNG_KERNEL_SYSCALL_{ENTRY, EXIT} Signed-off-by: Francis Deslauriers Signed-off-by: Mathieu Desnoyers Change-Id: I1ea097797da5db474f2f33d779f66254b7979c46 --- diff --git a/include/lttng/abi.h b/include/lttng/abi.h index 5f0a3aa5..3b5cad5d 100644 --- a/include/lttng/abi.h +++ b/include/lttng/abi.h @@ -91,9 +91,9 @@ struct lttng_kernel_event_callsite { } __attribute__((packed)); enum lttng_kernel_syscall_entryexit { - LTTNG_KERNEL_SYSCALL_ENTRYEXIT = 0, - LTTNG_KERNEL_SYSCALL_ENTRY = 1, /* Not implemented. */ - LTTNG_KERNEL_SYSCALL_EXIT = 2, /* Not implemented. */ + LTTNG_KERNEL_SYSCALL_ENTRYEXIT = 0, + LTTNG_KERNEL_SYSCALL_ENTRY = 1, + LTTNG_KERNEL_SYSCALL_EXIT = 2, }; enum lttng_kernel_syscall_abi { diff --git a/src/lttng-abi.c b/src/lttng-abi.c index f9e4422d..984c0a2a 100644 --- a/src/lttng-abi.c +++ b/src/lttng-abi.c @@ -1584,6 +1584,8 @@ int lttng_abi_validate_event_param(struct lttng_kernel_event *event_param) switch (event_param->instrumentation) { case LTTNG_KERNEL_SYSCALL: switch (event_param->u.syscall.entryexit) { + case LTTNG_KERNEL_SYSCALL_ENTRY: + case LTTNG_KERNEL_SYSCALL_EXIT: case LTTNG_KERNEL_SYSCALL_ENTRYEXIT: break; default: