Commit | Line | Data |
---|---|---|
b7cdc182 | 1 | /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) */ |
e42e81fd MD |
2 | |
3 | #ifndef CREATE_SYSCALL_TABLE | |
4 | ||
5 | # ifndef CONFIG_UID16 | |
644d6e9c MD |
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 | |
e42e81fd MD |
12 | # endif |
13 | ||
5539ecc8 LP |
14 | #define OVERRIDE_32_pipe |
15 | #define OVERRIDE_64_pipe | |
16 | SC_LTTNG_TRACEPOINT_EVENT(pipe, | |
17 | TP_PROTO(sc_exit(long ret,) int * fildes), | |
18 | TP_ARGS(sc_exit(ret,) fildes), | |
19 | TP_FIELDS(sc_exit(ctf_integer(long, ret, ret)) | |
20 | sc_out(ctf_user_array(int, fildes, fildes, 2)) | |
21 | ) | |
22 | ) | |
23 | ||
e42e81fd MD |
24 | #else /* CREATE_SYSCALL_TABLE */ |
25 | ||
26 | # ifndef CONFIG_UID16 | |
644d6e9c MD |
27 | # define OVERRIDE_TABLE_32_getgroups16 |
28 | # define OVERRIDE_TABLE_32_setgroups16 | |
29 | # define OVERRIDE_TABLE_32_lchown16 | |
30 | # define OVERRIDE_TABLE_32_getresuid16 | |
31 | # define OVERRIDE_TABLE_32_getresgid16 | |
32 | # define OVERRIDE_TABLE_32_chown16 | |
e42e81fd MD |
33 | # endif |
34 | ||
644d6e9c MD |
35 | #define OVERRIDE_TABLE_32_execve |
36 | TRACE_SYSCALL_TABLE(execve, execve, 11, 3) | |
37 | #define OVERRIDE_TABLE_32_clone | |
38 | TRACE_SYSCALL_TABLE(clone, clone, 120, 5) | |
39 | #define OVERRIDE_TABLE_32_getcpu | |
40 | TRACE_SYSCALL_TABLE(getcpu, getcpu, 318, 3) | |
e42e81fd MD |
41 | |
42 | #endif /* CREATE_SYSCALL_TABLE */ | |
43 | ||
44 |