| 1 | |
| 2 | #define OVERRIDE_TABLE_32_mmap2 |
| 3 | |
| 4 | # ifndef CONFIG_UID16 |
| 5 | # define OVERRIDE_32_getgroups16 |
| 6 | # define OVERRIDE_32_setgroups16 |
| 7 | # define OVERRIDE_32_lchown16 |
| 8 | # define OVERRIDE_32_getresuid16 |
| 9 | # define OVERRIDE_32_getresgid16 |
| 10 | # define OVERRIDE_32_chown16 |
| 11 | # endif |
| 12 | |
| 13 | #ifndef CREATE_SYSCALL_TABLE |
| 14 | |
| 15 | SC_LTTNG_TRACEPOINT_EVENT(mmap2, |
| 16 | TP_PROTO(void *addr, size_t len, int prot, |
| 17 | int flags, int fd, off_t pgoff), |
| 18 | TP_ARGS(addr, len, prot, flags, fd, pgoff), |
| 19 | TP_FIELDS( |
| 20 | ctf_integer_hex(void *, addr, addr) |
| 21 | ctf_integer(size_t, len, len) |
| 22 | ctf_integer(int, prot, prot) |
| 23 | ctf_integer(int, flags, flags) |
| 24 | ctf_integer(int, fd, fd) |
| 25 | ctf_integer(off_t, pgoff, pgoff) |
| 26 | ) |
| 27 | ) |
| 28 | |
| 29 | #define OVERRIDE_32_pipe |
| 30 | SC_LTTNG_TRACEPOINT_EVENT(pipe, |
| 31 | TP_PROTO(sc_exit(long ret,) int * fildes), |
| 32 | TP_ARGS(sc_exit(ret,) fildes), |
| 33 | TP_FIELDS(sc_exit(ctf_integer(long, ret, ret)) |
| 34 | sc_out(ctf_user_array(int, fildes, fildes, 2)) |
| 35 | ) |
| 36 | ) |
| 37 | |
| 38 | #else /* CREATE_SYSCALL_TABLE */ |
| 39 | |
| 40 | # ifndef CONFIG_UID16 |
| 41 | # define OVERRIDE_TABLE_32_getgroups16 |
| 42 | # define OVERRIDE_TABLE_32_setgroups16 |
| 43 | # define OVERRIDE_TABLE_32_lchown16 |
| 44 | # define OVERRIDE_TABLE_32_getresuid16 |
| 45 | # define OVERRIDE_TABLE_32_getresgid16 |
| 46 | # define OVERRIDE_TABLE_32_chown16 |
| 47 | # endif |
| 48 | |
| 49 | #define OVERRIDE_TABLE_32_execve |
| 50 | TRACE_SYSCALL_TABLE(execve, execve, 11, 3) |
| 51 | #define OVERRIDE_TABLE_32_clone |
| 52 | TRACE_SYSCALL_TABLE(clone, clone, 120, 5) |
| 53 | #define OVERRIDE_TABLE_32_mmap2 |
| 54 | TRACE_SYSCALL_TABLE(mmap2, mmap2, 192, 6) |
| 55 | |
| 56 | #endif /* CREATE_SYSCALL_TABLE */ |
| 57 | |
| 58 | |