Allow LTTNG_KERNEL_SYSCALL_{ENTRY, EXIT}
authorFrancis Deslauriers <fdeslaur@gmail.com>
Tue, 24 Nov 2020 16:08:14 +0000 (11:08 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 25 Nov 2020 16:48:12 +0000 (11:48 -0500)
Signed-off-by: Francis Deslauriers <fdeslaur@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I1ea097797da5db474f2f33d779f66254b7979c46

include/lttng/abi.h
src/lttng-abi.c

index 5f0a3aa52a8ee992b0f5242a3e9412be4b923006..3b5cad5d9f5d3206f9c04b6564415c452906b2f4 100644 (file)
@@ -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 {
index f9e4422d24ee41b2fde52121e5c7af618e5c710d..984c0a2a5964143f36564c14bd50b15216f87029 100644 (file)
@@ -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:
This page took 0.029793 seconds and 4 git commands to generate.