Cleanup: Move instrumentation/ headers to include/instrumentation/
[lttng-modules.git] / include / instrumentation / syscalls / headers / powerpc-32-syscalls_integers_override.h
1 /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) */
2
3 #ifndef CREATE_SYSCALL_TABLE
4
5 #define OVERRIDE_32_mmap2
6 SC_LTTNG_TRACEPOINT_EVENT(mmap2,
7 TP_PROTO(sc_exit(unsigned long ret,)
8 unsigned long addr, unsigned long len,
9 unsigned long prot, unsigned long flags,
10 unsigned long fd, unsigned long pgoff),
11 TP_ARGS(sc_exit(ret,) addr, len, prot, flags, fd, pgoff),
12 TP_FIELDS(sc_exit(ctf_integer_hex(unsigned long, ret, ret))
13 sc_in(ctf_integer_hex(unsigned long, addr, addr))
14 sc_in(ctf_integer(size_t, len, len))
15 sc_in(ctf_integer(int, prot, prot))
16 sc_in(ctf_integer(int, flags, flags))
17 sc_in(ctf_integer(int, fd, fd))
18 sc_in(ctf_integer(off_t, pgoff, pgoff))
19 )
20 )
21
22 #if (__BYTE_ORDER == __LITTLE_ENDIAN)
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_sync_file_range2
45 SC_LTTNG_TRACEPOINT_EVENT(sync_file_range2,
46 TP_PROTO(sc_exit(long ret,) int fd,
47 unsigned int flags,
48 int32_t offset_high, int32_t offset_low,
49 int32_t nbytes_high, int32_t nbytes_low),
50 TP_ARGS(sc_exit(ret,) fd, flags, offset_high, offset_low,
51 nbytes_high, nbytes_low),
52 TP_FIELDS(sc_exit(ctf_integer(long, ret, ret))
53 sc_in(ctf_integer(int, fd, fd))
54 sc_in(ctf_integer(unsigned int, flags, flags))
55 sc_in(ctf_integer(loff_t, offset,
56 ((loff_t) offset_high << 32) | offset_low))
57 sc_in(ctf_integer(loff_t, nbytes,
58 ((loff_t) nbytes_high << 32) | nbytes_low))
59 )
60 )
61
62 #endif
63
64 #else /* CREATE_SYSCALL_TABLE */
65
66 #define OVERRIDE_TABLE_32_mmap
67 TRACE_SYSCALL_TABLE(mmap, mmap, 90, 6)
68 #define OVERRIDE_TABLE_32_mmap2
69 TRACE_SYSCALL_TABLE(mmap2, mmap2, 192, 6)
70 #define OVERRIDE_TABLE_32_sync_file_range2
71 TRACE_SYSCALL_TABLE(sync_file_range2, sync_file_range2, 308, 6)
72
73 #endif /* CREATE_SYSCALL_TABLE */
74
This page took 0.034043 seconds and 4 git commands to generate.