linux-user: Nicer strace output of chroot() syscall

Signed-off-by: Helge Deller <deller@gmx.de>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>

Message-Id: <20190227191115.GA20163@ls3530.dellerweb.de>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
Helge Deller 2019-02-27 20:11:15 +01:00 committed by Laurent Vivier
parent b78c522ab9
commit 1b7695fe5f
2 changed files with 13 additions and 1 deletions

View File

@ -1235,6 +1235,18 @@ print_chdir(const struct syscallname *name,
} }
#endif #endif
#ifdef TARGET_NR_chroot
static void
print_chroot(const struct syscallname *name,
abi_long arg0, abi_long arg1, abi_long arg2,
abi_long arg3, abi_long arg4, abi_long arg5)
{
print_syscall_prologue(name);
print_string(arg0, 1);
print_syscall_epilogue(name);
}
#endif
#ifdef TARGET_NR_chmod #ifdef TARGET_NR_chmod
static void static void
print_chmod(const struct syscallname *name, print_chmod(const struct syscallname *name,

View File

@ -77,7 +77,7 @@
{ TARGET_NR_chown32, "chown32" , NULL, NULL, NULL }, { TARGET_NR_chown32, "chown32" , NULL, NULL, NULL },
#endif #endif
#ifdef TARGET_NR_chroot #ifdef TARGET_NR_chroot
{ TARGET_NR_chroot, "chroot" , NULL, NULL, NULL }, { TARGET_NR_chroot, "chroot" , NULL, print_chroot, NULL },
#endif #endif
#ifdef TARGET_NR_clock_adjtime #ifdef TARGET_NR_clock_adjtime
{ TARGET_NR_clock_adjtime, "clock_adjtime" , NULL, print_clock_adjtime, NULL }, { TARGET_NR_clock_adjtime, "clock_adjtime" , NULL, print_clock_adjtime, NULL },