Fix: system call instrumentation overrides
[lttng-modules.git] / instrumentation / syscalls / headers / arm-32-syscalls-3.4.25_integers_override.h
1
2
3 #ifndef CREATE_SYSCALL_TABLE
4
5 #if (__BYTE_ORDER == __LITTLE_ENDIAN)
6
7 #define OVERRIDE_32_arm_fadvise64_64
8 SC_LTTNG_TRACEPOINT_EVENT(arm_fadvise64_64,
9 TP_PROTO(sc_exit(long ret,) int fd, int advice,
10 int32_t offset_low, int32_t offset_high,
11 int32_t len_low, int32_t len_high),
12 TP_ARGS(sc_exit(ret,) fd, advice, offset_low, offset_high,
13 len_low, len_high),
14 TP_FIELDS(sc_exit(ctf_integer(long, ret, ret))
15 sc_in(ctf_integer(int, fd, fd))
16 sc_in(ctf_integer(int, advice, advice))
17 sc_in(ctf_integer(loff_t, offset,
18 ((loff_t) offset_high << 32) | offset_low))
19 sc_in(ctf_integer(loff_t, len,
20 ((loff_t) len_high << 32) | len_low))
21 )
22 )
23
24 #define OVERRIDE_32_sync_file_range2
25 SC_LTTNG_TRACEPOINT_EVENT(sync_file_range2,
26 TP_PROTO(sc_exit(long ret,) int fd,
27 unsigned int flags,
28 int32_t offset_low, int32_t offset_high,
29 int32_t nbytes_low, int32_t nbytes_high),
30 TP_ARGS(sc_exit(ret,) fd, flags, offset_low, offset_high,
31 nbytes_low, nbytes_high),
32 TP_FIELDS(sc_exit(ctf_integer(long, ret, ret))
33 sc_in(ctf_integer(int, fd, fd))
34 sc_in(ctf_integer(unsigned int, flags, flags))
35 sc_in(ctf_integer(loff_t, offset,
36 ((loff_t) offset_high << 32) | offset_low))
37 sc_in(ctf_integer(loff_t, nbytes,
38 ((loff_t) nbytes_high << 32) | nbytes_low))
39 )
40 )
41
42 #else /* __BIG_ENDIAN */
43
44 #define OVERRIDE_32_arm_fadvise64_64
45 SC_LTTNG_TRACEPOINT_EVENT(arm_fadvise64_64,
46 TP_PROTO(sc_exit(long ret,) int fd, int advice,
47 int32_t offset_high, int32_t offset_low,
48 int32_t len_high, int32_t len_low),
49 TP_ARGS(sc_exit(ret,) fd, advice, offset_high, offset_low,
50 len_high, len_low),
51 TP_FIELDS(sc_exit(ctf_integer(long, ret, ret))
52 sc_in(ctf_integer(int, fd, fd))
53 sc_in(ctf_integer(int, advice, advice))
54 sc_in(ctf_integer(loff_t, offset,
55 ((loff_t) offset_high << 32) | offset_low))
56 sc_in(ctf_integer(loff_t, len,
57 ((loff_t) len_high << 32) | len_low))
58 )
59 )
60
61 #define OVERRIDE_32_sync_file_range2
62 SC_LTTNG_TRACEPOINT_EVENT(sync_file_range2,
63 TP_PROTO(sc_exit(long ret,) int fd,
64 unsigned int flags,
65 int32_t offset_high, int32_t offset_low,
66 int32_t nbytes_high, int32_t nbytes_low),
67 TP_ARGS(sc_exit(ret,) fd, flags, offset_high, offset_low,
68 nbytes_high, nbytes_low),
69 TP_FIELDS(sc_exit(ctf_integer(long, ret, ret))
70 sc_in(ctf_integer(int, fd, fd))
71 sc_in(ctf_integer(unsigned int, flags, flags))
72 sc_in(ctf_integer(loff_t, offset,
73 ((loff_t) offset_high << 32) | offset_low))
74 sc_in(ctf_integer(loff_t, nbytes,
75 ((loff_t) nbytes_high << 32) | nbytes_low))
76 )
77 )
78
79 #endif
80
81 #define OVERRIDE_32_mmap2
82 SC_LTTNG_TRACEPOINT_EVENT(mmap2,
83 TP_PROTO(sc_exit(unsigned long ret,)
84 unsigned long addr, unsigned long len,
85 unsigned long prot, unsigned long flags,
86 unsigned long fd, unsigned long pgoff),
87 TP_ARGS(sc_exit(ret,) addr, len, prot, flags, fd, pgoff),
88 TP_FIELDS(sc_exit(ctf_integer_hex(unsigned long, ret, ret))
89 sc_in(ctf_integer_hex(unsigned long, addr, addr))
90 sc_in(ctf_integer(size_t, len, len))
91 sc_in(ctf_integer(int, prot, prot))
92 sc_in(ctf_integer(int, flags, flags))
93 sc_in(ctf_integer(int, fd, fd))
94 sc_in(ctf_integer(off_t, pgoff, pgoff))
95 )
96 )
97
98 #else /* CREATE_SYSCALL_TABLE */
99
100 #define OVERRIDE_TABLE_32_mmap
101 TRACE_SYSCALL_TABLE(mmap, mmap, 90, 6)
102 #define OVERRIDE_TABLE_32_mmap2
103 TRACE_SYSCALL_TABLE(mmap2, mmap2, 192, 6)
104 #define OVERRIDE_TABLE_32_arm_fadvise64_64
105 TRACE_SYSCALL_TABLE(arm_fadvise64_64, arm_fadvise64_64, 270, 6)
106 #define OVERRIDE_TABLE_32_sync_file_range2
107 TRACE_SYSCALL_TABLE(sync_file_range2, sync_file_range2, 341, 6)
108
109 #endif /* CREATE_SYSCALL_TABLE */
110
111
This page took 0.031218 seconds and 4 git commands to generate.