1 // SPDX-FileCopyrightText: 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
3 // SPDX-License-Identifier: GPL-2.0-only OR LGPL-2.1-only
7 #define OVERRIDE_32_getuid16
8 #define OVERRIDE_32_getgid16
9 #define OVERRIDE_32_geteuid16
10 #define OVERRIDE_32_getegid16
11 #define OVERRIDE_32_setuid16
12 #define OVERRIDE_32_setgid16
13 #define OVERRIDE_32_setfsuid16
14 #define OVERRIDE_32_setfsgid16
15 #define OVERRIDE_32_setreuid16
16 #define OVERRIDE_32_setregid16
17 #define OVERRIDE_32_fchown16
18 #define OVERRIDE_32_setresuid16
19 #define OVERRIDE_32_setresgid16
21 #define OVERRIDE_TABLE_32_getuid16
22 #define OVERRIDE_TABLE_32_getgid16
23 #define OVERRIDE_TABLE_32_geteuid16
24 #define OVERRIDE_TABLE_32_getegid16
25 #define OVERRIDE_TABLE_32_setuid16
26 #define OVERRIDE_TABLE_32_setgid16
27 #define OVERRIDE_TABLE_32_setreuid16
28 #define OVERRIDE_TABLE_32_setregid16
29 #define OVERRIDE_TABLE_32_fchown16
30 #define OVERRIDE_TABLE_32_setfsuid16
31 #define OVERRIDE_TABLE_32_setfsgid16
32 #define OVERRIDE_TABLE_32_setresuid16
33 #define OVERRIDE_TABLE_32_setresgid16
37 #ifndef CREATE_SYSCALL_TABLE
39 #if (__BYTE_ORDER == __LITTLE_ENDIAN)
41 #define OVERRIDE_32_arm_fadvise64_64
42 SC_LTTNG_TRACEPOINT_EVENT(arm_fadvise64_64
,
43 TP_PROTO(sc_exit(long ret
,) int fd
, int advice
,
44 int32_t offset_low
, int32_t offset_high
,
45 int32_t len_low
, int32_t len_high
),
46 TP_ARGS(sc_exit(ret
,) fd
, advice
, offset_low
, offset_high
,
48 TP_FIELDS(sc_exit(ctf_integer(long, ret
, ret
))
49 sc_in(ctf_integer(int, fd
, fd
))
50 sc_in(ctf_integer(int, advice
, advice
))
51 sc_in(ctf_integer(loff_t
, offset
,
52 ((loff_t
) offset_high
<< 32) | offset_low
))
53 sc_in(ctf_integer(loff_t
, len
,
54 ((loff_t
) len_high
<< 32) | len_low
))
58 #define OVERRIDE_32_sync_file_range2
59 SC_LTTNG_TRACEPOINT_EVENT(sync_file_range2
,
60 TP_PROTO(sc_exit(long ret
,) int fd
,
62 int32_t offset_low
, int32_t offset_high
,
63 int32_t nbytes_low
, int32_t nbytes_high
),
64 TP_ARGS(sc_exit(ret
,) fd
, flags
, offset_low
, offset_high
,
65 nbytes_low
, nbytes_high
),
66 TP_FIELDS(sc_exit(ctf_integer(long, ret
, ret
))
67 sc_in(ctf_integer(int, fd
, fd
))
68 sc_in(ctf_integer(unsigned int, flags
, flags
))
69 sc_in(ctf_integer(loff_t
, offset
,
70 ((loff_t
) offset_high
<< 32) | offset_low
))
71 sc_in(ctf_integer(loff_t
, nbytes
,
72 ((loff_t
) nbytes_high
<< 32) | nbytes_low
))
76 #else /* __BIG_ENDIAN */
78 #define OVERRIDE_32_arm_fadvise64_64
79 SC_LTTNG_TRACEPOINT_EVENT(arm_fadvise64_64
,
80 TP_PROTO(sc_exit(long ret
,) int fd
, int advice
,
81 int32_t offset_high
, int32_t offset_low
,
82 int32_t len_high
, int32_t len_low
),
83 TP_ARGS(sc_exit(ret
,) fd
, advice
, offset_high
, offset_low
,
85 TP_FIELDS(sc_exit(ctf_integer(long, ret
, ret
))
86 sc_in(ctf_integer(int, fd
, fd
))
87 sc_in(ctf_integer(int, advice
, advice
))
88 sc_in(ctf_integer(loff_t
, offset
,
89 ((loff_t
) offset_high
<< 32) | offset_low
))
90 sc_in(ctf_integer(loff_t
, len
,
91 ((loff_t
) len_high
<< 32) | len_low
))
95 #define OVERRIDE_32_sync_file_range2
96 SC_LTTNG_TRACEPOINT_EVENT(sync_file_range2
,
97 TP_PROTO(sc_exit(long ret
,) int fd
,
99 int32_t offset_high
, int32_t offset_low
,
100 int32_t nbytes_high
, int32_t nbytes_low
),
101 TP_ARGS(sc_exit(ret
,) fd
, flags
, offset_high
, offset_low
,
102 nbytes_high
, nbytes_low
),
103 TP_FIELDS(sc_exit(ctf_integer(long, ret
, ret
))
104 sc_in(ctf_integer(int, fd
, fd
))
105 sc_in(ctf_integer(unsigned int, flags
, flags
))
106 sc_in(ctf_integer(loff_t
, offset
,
107 ((loff_t
) offset_high
<< 32) | offset_low
))
108 sc_in(ctf_integer(loff_t
, nbytes
,
109 ((loff_t
) nbytes_high
<< 32) | nbytes_low
))
115 #define OVERRIDE_32_mmap2
116 SC_LTTNG_TRACEPOINT_EVENT(mmap2
,
117 TP_PROTO(sc_exit(unsigned long ret
,)
118 unsigned long addr
, unsigned long len
,
119 unsigned long prot
, unsigned long flags
,
120 unsigned long fd
, unsigned long pgoff
),
121 TP_ARGS(sc_exit(ret
,) addr
, len
, prot
, flags
, fd
, pgoff
),
122 TP_FIELDS(sc_exit(ctf_integer_hex(unsigned long, ret
, ret
))
123 sc_in(ctf_integer_hex(unsigned long, addr
, addr
))
124 sc_in(ctf_integer(size_t, len
, len
))
125 sc_in(ctf_integer(int, prot
, prot
))
126 sc_in(ctf_integer(int, flags
, flags
))
127 sc_in(ctf_integer(int, fd
, fd
))
128 sc_in(ctf_integer(off_t
, pgoff
, pgoff
))
132 #else /* CREATE_SYSCALL_TABLE */
134 #define OVERRIDE_TABLE_32_mmap
135 TRACE_SYSCALL_TABLE(mmap
, mmap
, 90, 6)
136 #define OVERRIDE_TABLE_32_mmap2
137 TRACE_SYSCALL_TABLE(mmap2
, mmap2
, 192, 6)
138 #define OVERRIDE_TABLE_32_arm_fadvise64_64
139 TRACE_SYSCALL_TABLE(arm_fadvise64_64
, arm_fadvise64_64
, 270, 6)
140 #define OVERRIDE_TABLE_32_sync_file_range2
141 TRACE_SYSCALL_TABLE(sync_file_range2
, sync_file_range2
, 341, 6)
143 #endif /* CREATE_SYSCALL_TABLE */
This page took 0.032918 seconds and 5 git commands to generate.