]> git.ipfire.org Git - thirdparty/qemu.git/commit
linux-user: add strace support for openat2
authorMichael Vogt <mvogt@redhat.com>
Tue, 1 Oct 2024 15:14:54 +0000 (17:14 +0200)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 8 Oct 2024 13:31:36 +0000 (06:31 -0700)
commit9729930344687c7077531ab07cb9dc275795b413
treeed305f54422b61fcbe79c6a16108e0c03d7c13c1
parent9651cead2f1bb34b9b72f9c2c5dc81baea2b082e
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>
linux-user/qemu.h
linux-user/strace.c
linux-user/strace.list
linux-user/syscall.c
linux-user/syscall_defs.h
meson.build