Warn and return on fd overflow fdt
[lttng-modules.git] / include / instrumentation / syscalls / arm-32-syscalls_pointers_override.h
CommitLineData
b7cdc182 1/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) */
8f4f80e0 2
8ba62b94 3#define OVERRIDE_TABLE_32_mmap2
8f4f80e0 4
ca956174
MD
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
8f4f80e0
RK
13
14#ifndef CREATE_SYSCALL_TABLE
15
d1fea608
JG
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
2335796b
MJ
34/*
35 * Override 'pipe' to set the output field 'fildes' to an array of 2 integers
36 * instead of the default integer pointer.
37 */
5539ecc8
LP
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
8f4f80e0
RK
47#else /* CREATE_SYSCALL_TABLE */
48
ca956174
MD
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
8ba62b94
NL
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)
8f4f80e0
RK
62
63#endif /* CREATE_SYSCALL_TABLE */
64
65
This page took 0.060002 seconds and 5 git commands to generate.