mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-26 20:03:54 -06:00
linux-user: Add pidfd_open(), pidfd_send_signal() and pidfd_getfd() syscalls
I noticed those were missing when running the glib2.0 testsuite. Add the syscalls including the strace output. Signed-off-by: Helge Deller <deller@gmx.de> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20220918194555.83535-4-deller@gmx.de> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
aad43d1542
commit
cc054c6f13
3 changed files with 71 additions and 0 deletions
|
@ -3317,6 +3317,34 @@ print_openat(CPUArchState *cpu_env, const struct syscallname *name,
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef TARGET_NR_pidfd_send_signal
|
||||
static void
|
||||
print_pidfd_send_signal(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)
|
||||
{
|
||||
void *p;
|
||||
target_siginfo_t uinfo;
|
||||
|
||||
print_syscall_prologue(name);
|
||||
print_raw_param("%d", arg0, 0);
|
||||
print_signal(arg1, 0);
|
||||
|
||||
p = lock_user(VERIFY_READ, arg2, sizeof(target_siginfo_t), 1);
|
||||
if (p) {
|
||||
get_target_siginfo(&uinfo, p);
|
||||
print_siginfo(&uinfo);
|
||||
|
||||
unlock_user(p, arg2, 0);
|
||||
} else {
|
||||
print_pointer(arg2, 1);
|
||||
}
|
||||
|
||||
print_raw_param("%u", arg3, 0);
|
||||
print_syscall_epilogue(name);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef TARGET_NR_mq_unlink
|
||||
static void
|
||||
print_mq_unlink(CPUArchState *cpu_env, const struct syscallname *name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue