Fix: scsi: sd: Atomic write support added in 6.11-rc1
[lttng-modules.git] / include / instrumentation / syscalls / arm-32-syscalls_pointers_override.h
... / ...
CommitLineData
1// SPDX-FileCopyrightText: 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
2//
3// SPDX-License-Identifier: GPL-2.0-only OR LGPL-2.1-only
4
5#define OVERRIDE_TABLE_32_mmap2
6
7# ifndef CONFIG_UID16
8# define OVERRIDE_32_getgroups16
9# define OVERRIDE_32_setgroups16
10# define OVERRIDE_32_lchown16
11# define OVERRIDE_32_getresuid16
12# define OVERRIDE_32_getresgid16
13# define OVERRIDE_32_chown16
14# endif
15
16#ifndef CREATE_SYSCALL_TABLE
17
18#ifdef CONFIG_ARM64
19#ifdef CONFIG_COMPAT_OLD_SIGACTION
20/*
21 * From the point of view of the 64-bit ABI, old_sigaction
22 * becomes compat_old_sigaction.
23 */
24#define old_sigaction compat_old_sigaction
25#else /* CONFIG_COMPAT_OLD_SIGACTION */
26/*
27 * The target 64-bit kernel does not enable the support for
28 * the 32-bit compat version of OLD_SIGACTION. Defining
29 * OVERRIDE_32_sigaction ensures we don't build a tracepoint
30 * for this syscall.
31 */
32#define OVERRIDE_32_sigaction
33#endif /* CONFIG_COMPAT_OLD_SIGACTION */
34#endif
35
36/*
37 * Override 'pipe' to set the output field 'fildes' to an array of 2 integers
38 * instead of the default integer pointer.
39 */
40#define OVERRIDE_32_pipe
41SC_LTTNG_TRACEPOINT_EVENT(pipe,
42 TP_PROTO(sc_exit(long ret,) int * fildes),
43 TP_ARGS(sc_exit(ret,) fildes),
44 TP_FIELDS(sc_exit(ctf_integer(long, ret, ret))
45 sc_out(ctf_user_array(int, fildes, fildes, 2))
46 )
47)
48
49#else /* CREATE_SYSCALL_TABLE */
50
51# ifndef CONFIG_UID16
52# define OVERRIDE_TABLE_32_getgroups16
53# define OVERRIDE_TABLE_32_setgroups16
54# define OVERRIDE_TABLE_32_lchown16
55# define OVERRIDE_TABLE_32_getresuid16
56# define OVERRIDE_TABLE_32_getresgid16
57# define OVERRIDE_TABLE_32_chown16
58# endif
59
60#define OVERRIDE_TABLE_32_execve
61TRACE_SYSCALL_TABLE(execve, execve, 11, 3)
62#define OVERRIDE_TABLE_32_clone
63TRACE_SYSCALL_TABLE(clone, clone, 120, 5)
64
65#endif /* CREATE_SYSCALL_TABLE */
66
67
This page took 0.023903 seconds and 5 git commands to generate.