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