Warn and return on fd overflow fdt
[lttng-modules.git] / include / instrumentation / syscalls / powerpc-32-syscalls_pointers_override.h
1 /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) */
2
3 #define OVERRIDE_TABLE_32_mmap2
4
5 #ifndef CREATE_SYSCALL_TABLE
6
7 /*
8 * Override 'pipe' to set the output field 'fildes' to an array of 2 integers
9 * instead of the default integer pointer.
10 */
11 #define OVERRIDE_32_pipe
12 SC_LTTNG_TRACEPOINT_EVENT(pipe,
13 TP_PROTO(sc_exit(long ret,) int * fildes),
14 TP_ARGS(sc_exit(ret,) fildes),
15 TP_FIELDS(sc_exit(ctf_integer(long, ret, ret))
16 sc_out(ctf_user_array(int, fildes, fildes, 2))
17 )
18 )
19
20 #else /* CREATE_SYSCALL_TABLE */
21
22 #define OVERRIDE_TABLE_32_execve
23 TRACE_SYSCALL_TABLE(execve, execve, 11, 3)
24 #define OVERRIDE_TABLE_32_clone
25 TRACE_SYSCALL_TABLE(clone, clone, 120, 5)
26
27 #endif /* CREATE_SYSCALL_TABLE */
28
This page took 0.031984 seconds and 4 git commands to generate.