mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-22 01:21:53 -06:00
linux-user: Add strace for clock_nanosleep()
Signed-off-by: Helge Deller <deller@gmx.de> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20220918194555.83535-10-deller@gmx.de> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
9c9b5d7b92
commit
05f3adc982
2 changed files with 17 additions and 1 deletions
|
@ -3567,6 +3567,21 @@ print_unshare(CPUArchState *cpu_env, const struct syscallname *name,
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef TARGET_NR_clock_nanosleep
|
||||||
|
static void
|
||||||
|
print_clock_nanosleep(CPUArchState *cpu_env, 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_enums(clockids, arg0, 0);
|
||||||
|
print_raw_param("%d", arg1, 0);
|
||||||
|
print_timespec(arg2, 0);
|
||||||
|
print_timespec(arg3, 1);
|
||||||
|
print_syscall_epilogue(name);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef TARGET_NR_utime
|
#ifdef TARGET_NR_utime
|
||||||
static void
|
static void
|
||||||
print_utime(CPUArchState *cpu_env, const struct syscallname *name,
|
print_utime(CPUArchState *cpu_env, const struct syscallname *name,
|
||||||
|
|
|
@ -91,7 +91,8 @@
|
||||||
print_syscall_ret_clock_gettime },
|
print_syscall_ret_clock_gettime },
|
||||||
#endif
|
#endif
|
||||||
#ifdef TARGET_NR_clock_nanosleep
|
#ifdef TARGET_NR_clock_nanosleep
|
||||||
{ TARGET_NR_clock_nanosleep, "clock_nanosleep" , NULL, NULL, NULL },
|
{ TARGET_NR_clock_nanosleep, "clock_nanosleep" , NULL, print_clock_nanosleep,
|
||||||
|
NULL },
|
||||||
#endif
|
#endif
|
||||||
#ifdef TARGET_NR_clock_settime
|
#ifdef TARGET_NR_clock_settime
|
||||||
{ TARGET_NR_clock_settime, "clock_settime" , NULL, print_clock_settime, NULL },
|
{ TARGET_NR_clock_settime, "clock_settime" , NULL, print_clock_settime, NULL },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue