diff options
author | Stacey Son <sson@FreeBSD.org> | 2020-12-18 13:54:50 -0700 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2021-01-11 14:59:21 +0100 |
commit | ea1ab4cf2c268c61e97b12cac670c5ccfc71d745 (patch) | |
tree | dba61e41ed5a2c92e4e30a3ac75cf0f56bd55f92 /bsd-user/strace.c | |
parent | 4d306e59cbc0ea8539bbb6732a30f113cdf0bf2d (diff) |
bsd-user: move strace OS/arch dependent code to host/arch dirs
This change moves host OS and arch dependent code for the sysarch
system call related to the -strace functionality into the
appropriate host OS and target arch directories.
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Sean Bruno <sburno@FreeBSD.org>
[ imp integrated minor build fixes from sbruno ]
Signed-off-by: Warner Losh <imp@FreeBSD.org>
Message-Id: <20201218205451.10559-4-imp@freebsd.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'bsd-user/strace.c')
-rw-r--r-- | bsd-user/strace.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bsd-user/strace.c b/bsd-user/strace.c index fa66fe1ee2..2c3b59caf0 100644 --- a/bsd-user/strace.c +++ b/bsd-user/strace.c @@ -20,9 +20,12 @@ #include <sys/select.h> #include <sys/syscall.h> #include <sys/ioccom.h> +#include <ctype.h> #include "qemu.h" +#include "os-strace.h" /* OS dependent strace print functions */ + int do_strace; /* @@ -104,6 +107,14 @@ static void print_ioctl(const struct syscallname *name, arg3); } +static void print_sysarch(const struct syscallname *name, abi_long arg1, + abi_long arg2, abi_long arg3, abi_long arg4, abi_long arg5, + abi_long arg6) +{ + /* This is os dependent. */ + do_os_print_sysarch(name, arg1, arg2, arg3, arg4, arg5, arg6); +} + /* * Variants for the return value output function */ |