Cleanup unused Makefile
[lttng-modules.git] / include / instrumentation / syscalls / headers / x86-32-syscalls_pointers_override.h
CommitLineData
b7cdc182 1/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) */
e42e81fd
MD
2
3#ifndef CREATE_SYSCALL_TABLE
4
5# ifndef CONFIG_UID16
644d6e9c
MD
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
e42e81fd
MD
12# endif
13
cae34aad 14#ifdef CONFIG_X86_64
9d77ec47 15#ifdef CONFIG_COMPAT_OLD_SIGACTION
cae34aad
JG
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
5539ecc8
LP
32#define OVERRIDE_32_pipe
33#define OVERRIDE_64_pipe
34SC_LTTNG_TRACEPOINT_EVENT(pipe,
35 TP_PROTO(sc_exit(long ret,) int * fildes),
36 TP_ARGS(sc_exit(ret,) fildes),
37 TP_FIELDS(sc_exit(ctf_integer(long, ret, ret))
38 sc_out(ctf_user_array(int, fildes, fildes, 2))
39 )
40)
41
e42e81fd
MD
42#else /* CREATE_SYSCALL_TABLE */
43
44# ifndef CONFIG_UID16
644d6e9c
MD
45# define OVERRIDE_TABLE_32_getgroups16
46# define OVERRIDE_TABLE_32_setgroups16
47# define OVERRIDE_TABLE_32_lchown16
48# define OVERRIDE_TABLE_32_getresuid16
49# define OVERRIDE_TABLE_32_getresgid16
50# define OVERRIDE_TABLE_32_chown16
e42e81fd
MD
51# endif
52
644d6e9c
MD
53#define OVERRIDE_TABLE_32_execve
54TRACE_SYSCALL_TABLE(execve, execve, 11, 3)
55#define OVERRIDE_TABLE_32_clone
56TRACE_SYSCALL_TABLE(clone, clone, 120, 5)
57#define OVERRIDE_TABLE_32_getcpu
58TRACE_SYSCALL_TABLE(getcpu, getcpu, 318, 3)
e42e81fd
MD
59
60#endif /* CREATE_SYSCALL_TABLE */
61
62
This page took 0.052919 seconds and 4 git commands to generate.