Commit | Line | Data |
---|---|---|
8f4f80e0 RK |
1 | |
2 | ||
8ba62b94 NL |
3 | #define OVERRIDE_TABLE_32_arm_fadvise64_64 |
4 | #define OVERRIDE_TABLE_32_sync_file_range2 | |
8f4f80e0 RK |
5 | |
6 | #ifndef CREATE_SYSCALL_TABLE | |
7 | ||
8ba62b94 | 8 | SC_LTTNG_TRACEPOINT_EVENT(arm_fadvise64_64, |
8f4f80e0 RK |
9 | TP_PROTO(int fd, int advice, loff_t offset, loff_t len), |
10 | TP_ARGS(fd, advice, offset, len), | |
11 | TP_STRUCT__entry( | |
12 | __field_hex(int, fd) | |
13 | __field_hex(int, advice) | |
14 | __field_hex(loff_t, offset) | |
15 | __field_hex(loff_t, len)), | |
16 | TP_fast_assign( | |
17 | tp_assign(fd, fd) | |
18 | tp_assign(advice, advice) | |
19 | tp_assign(offset, offset) | |
20 | tp_assign(len, len)), | |
21 | TP_printk() | |
22 | ) | |
23 | ||
8ba62b94 | 24 | SC_LTTNG_TRACEPOINT_EVENT(sync_file_range2, |
8f4f80e0 RK |
25 | TP_PROTO(int fd, loff_t offset, loff_t nbytes, unsigned int flags), |
26 | TP_ARGS(fd, offset, nbytes, flags), | |
27 | TP_STRUCT__entry( | |
28 | __field_hex(int, fd) | |
29 | __field_hex(loff_t, offset) | |
30 | __field_hex(loff_t, nbytes) | |
31 | __field_hex(unsigned int, flags)), | |
32 | TP_fast_assign( | |
33 | tp_assign(fd, fd) | |
34 | tp_assign(offset, offset) | |
35 | tp_assign(nbytes, nbytes) | |
36 | tp_assign(flags, flags)), | |
37 | TP_printk() | |
38 | ) | |
39 | ||
8f4f80e0 RK |
40 | #else /* CREATE_SYSCALL_TABLE */ |
41 | ||
8ba62b94 NL |
42 | #define OVERRIDE_TABLE_32_mmap |
43 | TRACE_SYSCALL_TABLE(mmap, mmap, 90, 6) | |
8f4f80e0 | 44 | |
8ba62b94 NL |
45 | #define OVERRIDE_TABLE_32_arm_fadvise64_64 |
46 | TRACE_SYSCALL_TABLE(arm_fadvise64_64, arm_fadvise64_64, 270, 4) | |
47 | #define OVERRIDE_TABLE_32_sync_file_range2 | |
48 | TRACE_SYSCALL_TABLE(sync_file_range2, sync_file_range2, 341, 4) | |
8f4f80e0 RK |
49 | |
50 | #endif /* CREATE_SYSCALL_TABLE */ | |
51 | ||
52 |