Commit | Line | Data |
---|---|---|
ca956174 | 1 | #ifndef CONFIG_UID16 |
8f4f80e0 | 2 | |
ca956174 MD |
3 | #define OVERRIDE_32_getuid16 |
4 | #define OVERRIDE_32_getgid16 | |
5 | #define OVERRIDE_32_geteuid16 | |
6 | #define OVERRIDE_32_getegid16 | |
7 | #define OVERRIDE_32_setuid16 | |
8 | #define OVERRIDE_32_setgid16 | |
9 | #define OVERRIDE_32_setfsuid16 | |
10 | #define OVERRIDE_32_setfsgid16 | |
11 | #define OVERRIDE_32_setreuid16 | |
12 | #define OVERRIDE_32_setregid16 | |
13 | #define OVERRIDE_32_fchown16 | |
14 | #define OVERRIDE_32_setresuid16 | |
15 | #define OVERRIDE_32_setresgid16 | |
16 | ||
17 | #define OVERRIDE_TABLE_32_getuid16 | |
18 | #define OVERRIDE_TABLE_32_getgid16 | |
19 | #define OVERRIDE_TABLE_32_geteuid16 | |
20 | #define OVERRIDE_TABLE_32_getegid16 | |
21 | #define OVERRIDE_TABLE_32_setuid16 | |
22 | #define OVERRIDE_TABLE_32_setgid16 | |
23 | #define OVERRIDE_TABLE_32_setreuid16 | |
24 | #define OVERRIDE_TABLE_32_setregid16 | |
25 | #define OVERRIDE_TABLE_32_fchown16 | |
26 | #define OVERRIDE_TABLE_32_setfsuid16 | |
27 | #define OVERRIDE_TABLE_32_setfsgid16 | |
28 | #define OVERRIDE_TABLE_32_setresuid16 | |
29 | #define OVERRIDE_TABLE_32_setresgid16 | |
30 | ||
31 | #endif | |
8f4f80e0 | 32 | |
8f4f80e0 RK |
33 | #ifndef CREATE_SYSCALL_TABLE |
34 | ||
769ad370 MD |
35 | #if (__BYTE_ORDER == __LITTLE_ENDIAN) |
36 | ||
37 | #define OVERRIDE_32_arm_fadvise64_64 | |
8ba62b94 | 38 | SC_LTTNG_TRACEPOINT_EVENT(arm_fadvise64_64, |
769ad370 MD |
39 | TP_PROTO(sc_exit(long ret,) int fd, int advice, |
40 | int32_t offset_low, int32_t offset_high, | |
41 | int32_t len_low, int32_t len_high), | |
42 | TP_ARGS(sc_exit(ret,) fd, advice, offset_low, offset_high, | |
43 | len_low, len_high), | |
44 | TP_FIELDS(sc_exit(ctf_integer(long, ret, ret)) | |
45 | sc_in(ctf_integer(int, fd, fd)) | |
46 | sc_in(ctf_integer(int, advice, advice)) | |
47 | sc_in(ctf_integer(loff_t, offset, | |
48 | ((loff_t) offset_high << 32) | offset_low)) | |
49 | sc_in(ctf_integer(loff_t, len, | |
50 | ((loff_t) len_high << 32) | len_low)) | |
e0976e2b | 51 | ) |
8f4f80e0 RK |
52 | ) |
53 | ||
769ad370 | 54 | #define OVERRIDE_32_sync_file_range2 |
8ba62b94 | 55 | SC_LTTNG_TRACEPOINT_EVENT(sync_file_range2, |
769ad370 MD |
56 | TP_PROTO(sc_exit(long ret,) int fd, |
57 | unsigned int flags, | |
58 | int32_t offset_low, int32_t offset_high, | |
59 | int32_t nbytes_low, int32_t nbytes_high), | |
60 | TP_ARGS(sc_exit(ret,) fd, flags, offset_low, offset_high, | |
61 | nbytes_low, nbytes_high), | |
62 | TP_FIELDS(sc_exit(ctf_integer(long, ret, ret)) | |
63 | sc_in(ctf_integer(int, fd, fd)) | |
64 | sc_in(ctf_integer(unsigned int, flags, flags)) | |
65 | sc_in(ctf_integer(loff_t, offset, | |
66 | ((loff_t) offset_high << 32) | offset_low)) | |
67 | sc_in(ctf_integer(loff_t, nbytes, | |
68 | ((loff_t) nbytes_high << 32) | nbytes_low)) | |
69 | ) | |
70 | ) | |
71 | ||
72 | #else /* __BIG_ENDIAN */ | |
73 | ||
74 | #define OVERRIDE_32_arm_fadvise64_64 | |
75 | SC_LTTNG_TRACEPOINT_EVENT(arm_fadvise64_64, | |
76 | TP_PROTO(sc_exit(long ret,) int fd, int advice, | |
77 | int32_t offset_high, int32_t offset_low, | |
78 | int32_t len_high, int32_t len_low), | |
79 | TP_ARGS(sc_exit(ret,) fd, advice, offset_high, offset_low, | |
80 | len_high, len_low), | |
81 | TP_FIELDS(sc_exit(ctf_integer(long, ret, ret)) | |
82 | sc_in(ctf_integer(int, fd, fd)) | |
83 | sc_in(ctf_integer(int, advice, advice)) | |
84 | sc_in(ctf_integer(loff_t, offset, | |
85 | ((loff_t) offset_high << 32) | offset_low)) | |
86 | sc_in(ctf_integer(loff_t, len, | |
87 | ((loff_t) len_high << 32) | len_low)) | |
88 | ) | |
89 | ) | |
90 | ||
91 | #define OVERRIDE_32_sync_file_range2 | |
92 | SC_LTTNG_TRACEPOINT_EVENT(sync_file_range2, | |
93 | TP_PROTO(sc_exit(long ret,) int fd, | |
94 | unsigned int flags, | |
95 | int32_t offset_high, int32_t offset_low, | |
96 | int32_t nbytes_high, int32_t nbytes_low), | |
97 | TP_ARGS(sc_exit(ret,) fd, flags, offset_high, offset_low, | |
98 | nbytes_high, nbytes_low), | |
99 | TP_FIELDS(sc_exit(ctf_integer(long, ret, ret)) | |
100 | sc_in(ctf_integer(int, fd, fd)) | |
101 | sc_in(ctf_integer(unsigned int, flags, flags)) | |
102 | sc_in(ctf_integer(loff_t, offset, | |
103 | ((loff_t) offset_high << 32) | offset_low)) | |
104 | sc_in(ctf_integer(loff_t, nbytes, | |
105 | ((loff_t) nbytes_high << 32) | nbytes_low)) | |
106 | ) | |
107 | ) | |
108 | ||
109 | #endif | |
110 | ||
111 | #define OVERRIDE_32_mmap2 | |
112 | SC_LTTNG_TRACEPOINT_EVENT(mmap2, | |
113 | TP_PROTO(sc_exit(unsigned long ret,) | |
114 | unsigned long addr, unsigned long len, | |
115 | unsigned long prot, unsigned long flags, | |
116 | unsigned long fd, unsigned long pgoff), | |
117 | TP_ARGS(sc_exit(ret,) addr, len, prot, flags, fd, pgoff), | |
118 | TP_FIELDS(sc_exit(ctf_integer_hex(unsigned long, ret, ret)) | |
119 | sc_in(ctf_integer_hex(unsigned long, addr, addr)) | |
120 | sc_in(ctf_integer(size_t, len, len)) | |
121 | sc_in(ctf_integer(int, prot, prot)) | |
122 | sc_in(ctf_integer(int, flags, flags)) | |
123 | sc_in(ctf_integer(int, fd, fd)) | |
124 | sc_in(ctf_integer(off_t, pgoff, pgoff)) | |
e0976e2b | 125 | ) |
8f4f80e0 RK |
126 | ) |
127 | ||
8f4f80e0 RK |
128 | #else /* CREATE_SYSCALL_TABLE */ |
129 | ||
8ba62b94 NL |
130 | #define OVERRIDE_TABLE_32_mmap |
131 | TRACE_SYSCALL_TABLE(mmap, mmap, 90, 6) | |
769ad370 MD |
132 | #define OVERRIDE_TABLE_32_mmap2 |
133 | TRACE_SYSCALL_TABLE(mmap2, mmap2, 192, 6) | |
8ba62b94 | 134 | #define OVERRIDE_TABLE_32_arm_fadvise64_64 |
769ad370 | 135 | TRACE_SYSCALL_TABLE(arm_fadvise64_64, arm_fadvise64_64, 270, 6) |
8ba62b94 | 136 | #define OVERRIDE_TABLE_32_sync_file_range2 |
769ad370 | 137 | TRACE_SYSCALL_TABLE(sync_file_range2, sync_file_range2, 341, 6) |
8f4f80e0 RK |
138 | |
139 | #endif /* CREATE_SYSCALL_TABLE */ | |
140 | ||
141 |