Fix: system call tracing for arm-64 compat !CONFIG_UID16
[lttng-modules.git] / instrumentation / syscalls / headers / arm-32-syscalls-3.4.25_pointers_override.h
CommitLineData
8f4f80e0 1
8ba62b94 2#define OVERRIDE_TABLE_32_mmap2
8f4f80e0 3
ca956174
MD
4# ifndef CONFIG_UID16
5# define OVERRIDE_32_getgroups16
6# define OVERRIDE_32_setgroups16
7# define OVERRIDE_32_lchown16
8# define OVERRIDE_32_getresuid16
9# define OVERRIDE_32_getresgid16
10# define OVERRIDE_32_chown16
11# endif
8f4f80e0
RK
12
13#ifndef CREATE_SYSCALL_TABLE
14
8ba62b94 15SC_LTTNG_TRACEPOINT_EVENT(mmap2,
8f4f80e0
RK
16 TP_PROTO(void *addr, size_t len, int prot,
17 int flags, int fd, off_t pgoff),
18 TP_ARGS(addr, len, prot, flags, fd, pgoff),
e0976e2b
MD
19 TP_FIELDS(
20 ctf_integer_hex(void *, addr, addr)
21 ctf_integer(size_t, len, len)
22 ctf_integer(int, prot, prot)
23 ctf_integer(int, flags, flags)
24 ctf_integer(int, fd, fd)
25 ctf_integer(off_t, pgoff, pgoff)
26 )
8f4f80e0
RK
27)
28
5539ecc8
LP
29#define OVERRIDE_32_pipe
30SC_LTTNG_TRACEPOINT_EVENT(pipe,
31 TP_PROTO(sc_exit(long ret,) int * fildes),
32 TP_ARGS(sc_exit(ret,) fildes),
33 TP_FIELDS(sc_exit(ctf_integer(long, ret, ret))
34 sc_out(ctf_user_array(int, fildes, fildes, 2))
35 )
36)
37
8f4f80e0
RK
38#else /* CREATE_SYSCALL_TABLE */
39
ca956174
MD
40# ifndef CONFIG_UID16
41# define OVERRIDE_TABLE_32_getgroups16
42# define OVERRIDE_TABLE_32_setgroups16
43# define OVERRIDE_TABLE_32_lchown16
44# define OVERRIDE_TABLE_32_getresuid16
45# define OVERRIDE_TABLE_32_getresgid16
46# define OVERRIDE_TABLE_32_chown16
47# endif
48
8ba62b94
NL
49#define OVERRIDE_TABLE_32_execve
50TRACE_SYSCALL_TABLE(execve, execve, 11, 3)
51#define OVERRIDE_TABLE_32_clone
52TRACE_SYSCALL_TABLE(clone, clone, 120, 5)
53#define OVERRIDE_TABLE_32_mmap2
54TRACE_SYSCALL_TABLE(mmap2, mmap2, 192, 6)
8f4f80e0
RK
55
56#endif /* CREATE_SYSCALL_TABLE */
57
58
This page took 0.029019 seconds and 4 git commands to generate.