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