1 /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) */
3 #ifndef CREATE_SYSCALL_TABLE
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
15 #ifdef CONFIG_COMPAT_OLD_SIGACTION
17 * From the point of view of the 64-bit ABI, old_sigaction
18 * becomes compat_old_sigaction.
20 #define old_sigaction compat_old_sigaction
21 #else /* CONFIG_COMPAT_OLD_SIGACTION */
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
28 #define OVERRIDE_32_sigaction
29 #endif /* CONFIG_COMPAT_OLD_SIGACTION */
33 * Override 'pipe' to set the output field 'fildes' to an array of 2 integers
34 * instead of the default integer pointer.
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))
46 #else /* CREATE_SYSCALL_TABLE */
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
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)
64 #endif /* CREATE_SYSCALL_TABLE */
This page took 0.061715 seconds and 5 git commands to generate.