Commit | Line | Data |
---|---|---|
b11394d2 PW |
1 | #ifndef CREATE_SYSCALL_TABLE |
2 | ||
769ad370 MD |
3 | #define OVERRIDE_32_mmap2 |
4 | SC_LTTNG_TRACEPOINT_EVENT(mmap2, | |
5 | TP_PROTO(sc_exit(unsigned long ret,) | |
6 | unsigned long addr, unsigned long len, | |
7 | unsigned long prot, unsigned long flags, | |
8 | unsigned long fd, unsigned long pgoff), | |
9 | TP_ARGS(sc_exit(ret,) addr, len, prot, flags, fd, pgoff), | |
10 | TP_FIELDS(sc_exit(ctf_integer_hex(unsigned long, ret, ret)) | |
11 | sc_in(ctf_integer_hex(unsigned long, addr, addr)) | |
12 | sc_in(ctf_integer(size_t, len, len)) | |
13 | sc_in(ctf_integer(int, prot, prot)) | |
14 | sc_in(ctf_integer(int, flags, flags)) | |
15 | sc_in(ctf_integer(int, fd, fd)) | |
16 | sc_in(ctf_integer(off_t, pgoff, pgoff)) | |
17 | ) | |
18 | ) | |
19 | ||
20 | #if (__BYTE_ORDER == __LITTLE_ENDIAN) | |
21 | ||
22 | #define OVERRIDE_32_sync_file_range2 | |
23 | SC_LTTNG_TRACEPOINT_EVENT(sync_file_range2, | |
24 | TP_PROTO(sc_exit(long ret,) int fd, | |
25 | unsigned int flags, | |
26 | int32_t offset_low, int32_t offset_high, | |
27 | int32_t nbytes_low, int32_t nbytes_high), | |
28 | TP_ARGS(sc_exit(ret,) fd, flags, offset_low, offset_high, | |
29 | nbytes_low, nbytes_high), | |
30 | TP_FIELDS(sc_exit(ctf_integer(long, ret, ret)) | |
31 | sc_in(ctf_integer(int, fd, fd)) | |
32 | sc_in(ctf_integer(unsigned int, flags, flags)) | |
33 | sc_in(ctf_integer(loff_t, offset, | |
34 | ((loff_t) offset_high << 32) | offset_low)) | |
35 | sc_in(ctf_integer(loff_t, nbytes, | |
36 | ((loff_t) nbytes_high << 32) | nbytes_low)) | |
37 | ) | |
38 | ) | |
39 | ||
40 | #else /* __BIG_ENDIAN */ | |
41 | ||
42 | #define OVERRIDE_32_sync_file_range2 | |
43 | SC_LTTNG_TRACEPOINT_EVENT(sync_file_range2, | |
44 | TP_PROTO(sc_exit(long ret,) int fd, | |
45 | unsigned int flags, | |
46 | int32_t offset_high, int32_t offset_low, | |
47 | int32_t nbytes_high, int32_t nbytes_low), | |
48 | TP_ARGS(sc_exit(ret,) fd, flags, offset_high, offset_low, | |
49 | nbytes_high, nbytes_low), | |
50 | TP_FIELDS(sc_exit(ctf_integer(long, ret, ret)) | |
51 | sc_in(ctf_integer(int, fd, fd)) | |
52 | sc_in(ctf_integer(unsigned int, flags, flags)) | |
53 | sc_in(ctf_integer(loff_t, offset, | |
54 | ((loff_t) offset_high << 32) | offset_low)) | |
55 | sc_in(ctf_integer(loff_t, nbytes, | |
56 | ((loff_t) nbytes_high << 32) | nbytes_low)) | |
57 | ) | |
58 | ) | |
59 | ||
60 | #endif | |
61 | ||
b11394d2 PW |
62 | #else /* CREATE_SYSCALL_TABLE */ |
63 | ||
8ba62b94 NL |
64 | #define OVERRIDE_TABLE_32_mmap |
65 | TRACE_SYSCALL_TABLE(mmap, mmap, 90, 6) | |
769ad370 MD |
66 | #define OVERRIDE_TABLE_32_mmap2 |
67 | TRACE_SYSCALL_TABLE(mmap2, mmap2, 192, 6) | |
68 | #define OVERRIDE_TABLE_32_sync_file_range2 | |
69 | TRACE_SYSCALL_TABLE(sync_file_range2, sync_file_range2, 308, 6) | |
b11394d2 PW |
70 | |
71 | #endif /* CREATE_SYSCALL_TABLE */ | |
72 |