| 1 | /* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) */ |
| 2 | |
| 3 | #ifndef CREATE_SYSCALL_TABLE |
| 4 | |
| 5 | #define OVERRIDE_32_mmap |
| 6 | #define OVERRIDE_64_mmap |
| 7 | SC_LTTNG_TRACEPOINT_EVENT(mmap, |
| 8 | TP_PROTO(sc_exit(unsigned long ret,) |
| 9 | unsigned long addr, unsigned long len, |
| 10 | unsigned long prot, unsigned long flags, |
| 11 | unsigned long fd, unsigned long off), |
| 12 | TP_ARGS(sc_exit(ret,) addr, len, prot, flags, fd, off), |
| 13 | TP_FIELDS(sc_exit(ctf_integer_hex(unsigned long, ret, ret)) |
| 14 | sc_in(ctf_integer_hex(unsigned long, addr, addr)) |
| 15 | sc_in(ctf_integer(size_t, len, len)) |
| 16 | sc_in(ctf_integer(int, prot, prot)) |
| 17 | sc_in(ctf_integer(int, flags, flags)) |
| 18 | sc_in(ctf_integer(int, fd, fd)) |
| 19 | sc_in(ctf_integer(off_t, offset, off)) |
| 20 | ) |
| 21 | ) |
| 22 | |
| 23 | #endif /* CREATE_SYSCALL_TABLE */ |