| 1 | /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) */ |
| 2 | |
| 3 | #define OVERRIDE_TABLE_32_mmap2 |
| 4 | |
| 5 | # ifndef CONFIG_UID16 |
| 6 | # define OVERRIDE_32_getgroups16 |
| 7 | # define OVERRIDE_32_setgroups16 |
| 8 | # define OVERRIDE_32_lchown16 |
| 9 | # define OVERRIDE_32_getresuid16 |
| 10 | # define OVERRIDE_32_getresgid16 |
| 11 | # define OVERRIDE_32_chown16 |
| 12 | # endif |
| 13 | |
| 14 | #ifndef CREATE_SYSCALL_TABLE |
| 15 | |
| 16 | #define OVERRIDE_32_pipe |
| 17 | SC_LTTNG_TRACEPOINT_EVENT(pipe, |
| 18 | TP_PROTO(sc_exit(long ret,) int * fildes), |
| 19 | TP_ARGS(sc_exit(ret,) fildes), |
| 20 | TP_FIELDS(sc_exit(ctf_integer(long, ret, ret)) |
| 21 | sc_out(ctf_user_array(int, fildes, fildes, 2)) |
| 22 | ) |
| 23 | ) |
| 24 | |
| 25 | #else /* CREATE_SYSCALL_TABLE */ |
| 26 | |
| 27 | # ifndef CONFIG_UID16 |
| 28 | # define OVERRIDE_TABLE_32_getgroups16 |
| 29 | # define OVERRIDE_TABLE_32_setgroups16 |
| 30 | # define OVERRIDE_TABLE_32_lchown16 |
| 31 | # define OVERRIDE_TABLE_32_getresuid16 |
| 32 | # define OVERRIDE_TABLE_32_getresgid16 |
| 33 | # define OVERRIDE_TABLE_32_chown16 |
| 34 | # endif |
| 35 | |
| 36 | #define OVERRIDE_TABLE_32_execve |
| 37 | TRACE_SYSCALL_TABLE(execve, execve, 11, 3) |
| 38 | #define OVERRIDE_TABLE_32_clone |
| 39 | TRACE_SYSCALL_TABLE(clone, clone, 120, 5) |
| 40 | |
| 41 | #endif /* CREATE_SYSCALL_TABLE */ |
| 42 | |
| 43 | |