bd63ed09ceebda18410da8f6dcd076060f329589
[lttng-modules.git] / include / instrumentation / syscalls / headers / x86-32-syscalls_pointers_override.h
1 /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) */
2
3 #ifndef CREATE_SYSCALL_TABLE
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 #ifdef CONFIG_X86_64
15 #ifdef CONFIG_COMPAT_OLD_SIGACTION
16 /*
17 * From the point of view of the 64-bit ABI, old_sigaction
18 * becomes compat_old_sigaction.
19 */
20 #define old_sigaction compat_old_sigaction
21 #else /* CONFIG_COMPAT_OLD_SIGACTION */
22 /*
23 * The target 64-bit kernel does not enable the support for
24 * the 32-bit compat version of OLD_SIGACTION. Defining
25 * OVERRIDE_32_sigaction ensures we don't build a tracepoint
26 * for this syscall.
27 */
28 #define OVERRIDE_32_sigaction
29 #endif /* CONFIG_COMPAT_OLD_SIGACTION */
30 #endif
31
32 #define OVERRIDE_32_pipe
33 #define OVERRIDE_64_pipe
34 SC_LTTNG_TRACEPOINT_EVENT(pipe,
35 TP_PROTO(sc_exit(long ret,) int * fildes),
36 TP_ARGS(sc_exit(ret,) fildes),
37 TP_FIELDS(sc_exit(ctf_integer(long, ret, ret))
38 sc_out(ctf_user_array(int, fildes, fildes, 2))
39 )
40 )
41
42 #else /* CREATE_SYSCALL_TABLE */
43
44 # ifndef CONFIG_UID16
45 # define OVERRIDE_TABLE_32_getgroups16
46 # define OVERRIDE_TABLE_32_setgroups16
47 # define OVERRIDE_TABLE_32_lchown16
48 # define OVERRIDE_TABLE_32_getresuid16
49 # define OVERRIDE_TABLE_32_getresgid16
50 # define OVERRIDE_TABLE_32_chown16
51 # endif
52
53 #define OVERRIDE_TABLE_32_execve
54 TRACE_SYSCALL_TABLE(execve, execve, 11, 3)
55 #define OVERRIDE_TABLE_32_clone
56 TRACE_SYSCALL_TABLE(clone, clone, 120, 5)
57 #define OVERRIDE_TABLE_32_getcpu
58 TRACE_SYSCALL_TABLE(getcpu, getcpu, 318, 3)
59
60 #endif /* CREATE_SYSCALL_TABLE */
61
62
This page took 0.03557 seconds and 3 git commands to generate.