Commit | Line | Data |
---|---|---|
b7cdc182 | 1 | /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) */ |
6314c2d3 | 2 | |
8ba62b94 | 3 | #define OVERRIDE_TABLE_32_mmap2 |
b11394d2 PW |
4 | |
5 | #ifndef CREATE_SYSCALL_TABLE | |
6 | ||
2335796b MJ |
7 | /* |
8 | * Override 'pipe' to set the output field 'fildes' to an array of 2 integers | |
9 | * instead of the default integer pointer. | |
10 | */ | |
5539ecc8 LP |
11 | #define OVERRIDE_32_pipe |
12 | SC_LTTNG_TRACEPOINT_EVENT(pipe, | |
13 | TP_PROTO(sc_exit(long ret,) int * fildes), | |
14 | TP_ARGS(sc_exit(ret,) fildes), | |
15 | TP_FIELDS(sc_exit(ctf_integer(long, ret, ret)) | |
16 | sc_out(ctf_user_array(int, fildes, fildes, 2)) | |
17 | ) | |
18 | ) | |
19 | ||
b11394d2 PW |
20 | #else /* CREATE_SYSCALL_TABLE */ |
21 | ||
8ba62b94 NL |
22 | #define OVERRIDE_TABLE_32_execve |
23 | TRACE_SYSCALL_TABLE(execve, execve, 11, 3) | |
24 | #define OVERRIDE_TABLE_32_clone | |
25 | TRACE_SYSCALL_TABLE(clone, clone, 120, 5) | |
b11394d2 PW |
26 | |
27 | #endif /* CREATE_SYSCALL_TABLE */ | |
28 |