migration: Add Error** argument to .save_setup() handler
[qemu/armbru.git] / linux-user / strace.h
blobd5e7f26bcb83bb89f2cf5f22eceefde810298aa9
1 /*
2 * strace.h: prototypes for linux-user builtin strace handling
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, see <http://www.gnu.org/licenses/>.
18 #ifndef LINUX_USER_STRACE_H
19 #define LINUX_USER_STRACE_H
21 void print_syscall(CPUArchState *cpu_env, int num,
22 abi_long arg1, abi_long arg2, abi_long arg3,
23 abi_long arg4, abi_long arg5, abi_long arg6);
24 void print_syscall_ret(CPUArchState *cpu_env, int num, abi_long ret,
25 abi_long arg1, abi_long arg2, abi_long arg3,
26 abi_long arg4, abi_long arg5, abi_long arg6);
27 /**
28 * print_taken_signal:
29 * @target_signum: target signal being taken
30 * @tinfo: target_siginfo_t which will be passed to the guest for the signal
32 * Print strace output indicating that this signal is being taken by the guest,
33 * in a format similar to:
34 * --- SIGSEGV {si_signo=SIGSEGV, si_code=SI_KERNEL, si_addr=0} ---
36 void print_taken_signal(int target_signum, const target_siginfo_t *tinfo);
38 #endif /* LINUX_USER_STRACE_H */