Add script to automate the syscall extraction process
[lttng-modules.git] / instrumentation / syscalls / headers / arm-32-syscalls-3.4.25_integers_override.h
1 #ifndef CONFIG_UID16
2
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
32
33 #ifndef CREATE_SYSCALL_TABLE
34
35 #if (__BYTE_ORDER == __LITTLE_ENDIAN)
36
37 #define OVERRIDE_32_arm_fadvise64_64
38 SC_LTTNG_TRACEPOINT_EVENT(arm_fadvise64_64,
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))
51 )
52 )
53
54 #define OVERRIDE_32_sync_file_range2
55 SC_LTTNG_TRACEPOINT_EVENT(sync_file_range2,
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))
125 )
126 )
127
128 #else /* CREATE_SYSCALL_TABLE */
129
130 #define OVERRIDE_TABLE_32_mmap
131 TRACE_SYSCALL_TABLE(mmap, mmap, 90, 6)
132 #define OVERRIDE_TABLE_32_mmap2
133 TRACE_SYSCALL_TABLE(mmap2, mmap2, 192, 6)
134 #define OVERRIDE_TABLE_32_arm_fadvise64_64
135 TRACE_SYSCALL_TABLE(arm_fadvise64_64, arm_fadvise64_64, 270, 6)
136 #define OVERRIDE_TABLE_32_sync_file_range2
137 TRACE_SYSCALL_TABLE(sync_file_range2, sync_file_range2, 341, 6)
138
139 #endif /* CREATE_SYSCALL_TABLE */
140
141
This page took 0.031942 seconds and 4 git commands to generate.