Cleanup: update stale file paths in LICENSE
[lttng-modules.git] / include / instrumentation / syscalls / 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 /*
33 * Override 'pipe' to set the output field 'fildes' to an array of 2 integers
34 * instead of the default integer pointer.
35 */
36 #define OVERRIDE_32_pipe
37 #define OVERRIDE_64_pipe
38 SC_LTTNG_TRACEPOINT_EVENT(pipe,
39 TP_PROTO(sc_exit(long ret,) int * fildes),
40 TP_ARGS(sc_exit(ret,) fildes),
41 TP_FIELDS(sc_exit(ctf_integer(long, ret, ret))
42 sc_out(ctf_user_array(int, fildes, fildes, 2))
43 )
44 )
45
46 #else /* CREATE_SYSCALL_TABLE */
47
48 # ifndef CONFIG_UID16
49 # define OVERRIDE_TABLE_32_getgroups16
50 # define OVERRIDE_TABLE_32_setgroups16
51 # define OVERRIDE_TABLE_32_lchown16
52 # define OVERRIDE_TABLE_32_getresuid16
53 # define OVERRIDE_TABLE_32_getresgid16
54 # define OVERRIDE_TABLE_32_chown16
55 # endif
56
57 #define OVERRIDE_TABLE_32_execve
58 TRACE_SYSCALL_TABLE(execve, execve, 11, 3)
59 #define OVERRIDE_TABLE_32_clone
60 TRACE_SYSCALL_TABLE(clone, clone, 120, 5)
61 #define OVERRIDE_TABLE_32_getcpu
62 TRACE_SYSCALL_TABLE(getcpu, getcpu, 318, 3)
63
64 #endif /* CREATE_SYSCALL_TABLE */
65
66
This page took 0.032493 seconds and 5 git commands to generate.