2
0

strace.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * strace.h: prototypes for linux-user builtin strace handling
  3. *
  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.
  8. *
  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.
  13. *
  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/>.
  16. */
  17. #ifndef LINUX_USER_STRACE_H
  18. #define LINUX_USER_STRACE_H
  19. void print_syscall(CPUArchState *cpu_env, int num,
  20. abi_long arg1, abi_long arg2, abi_long arg3,
  21. abi_long arg4, abi_long arg5, abi_long arg6);
  22. void print_syscall_ret(CPUArchState *cpu_env, int num, abi_long ret,
  23. abi_long arg1, abi_long arg2, abi_long arg3,
  24. abi_long arg4, abi_long arg5, abi_long arg6);
  25. /**
  26. * print_taken_signal:
  27. * @target_signum: target signal being taken
  28. * @tinfo: target_siginfo_t which will be passed to the guest for the signal
  29. *
  30. * Print strace output indicating that this signal is being taken by the guest,
  31. * in a format similar to:
  32. * --- SIGSEGV {si_signo=SIGSEGV, si_code=SI_KERNEL, si_addr=0} ---
  33. */
  34. void print_taken_signal(int target_signum, const target_siginfo_t *tinfo);
  35. #endif /* LINUX_USER_STRACE_H */