mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
linux-user: add strace support for openat2
This commit adds support for the `openat2()` to `QEMU_STRACE`. It will use the `openat2.h` header if available to create user readable flags for the `resolve` argument but does not require the header otherwise. It also makes `copy_struct_from_user()` available via `qemu.h` and `open_how_ver0` via `syscall_defs.h` so that strace.c can use them. Signed-off-by: Michael Vogt <mvogt@redhat.com> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-ID: <f02d40c7751c03af885ced6dd94e4734d4be4d8f.1727795334.git.mvogt@redhat.com> [rth: Add braces around the expanded how structure, like strace(3)] Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
9651cead2f
commit
9729930344
6 changed files with 66 additions and 7 deletions
|
@ -715,6 +715,9 @@
|
|||
#ifdef TARGET_NR_openat
|
||||
{ TARGET_NR_openat, "openat" , NULL, print_openat, NULL },
|
||||
#endif
|
||||
#ifdef TARGET_NR_openat2
|
||||
{ TARGET_NR_openat2, "openat2" , NULL, print_openat2, NULL },
|
||||
#endif
|
||||
#ifdef TARGET_NR_osf_adjtime
|
||||
{ TARGET_NR_osf_adjtime, "osf_adjtime" , NULL, NULL, NULL },
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue