From 38be863d418a507bd2b27f20c4585c50eace8b98 Mon Sep 17 00:00:00 2001 From: Mike Gelfand Date: Sun, 30 Aug 2020 12:22:42 +0300 Subject: linux-user: Add strace support for printing OFD fcntl operations Signed-off-by: Mike Gelfand Reviewed-by: Laurent Vivier Message-Id: <20200830092242.31506-1-mikedld@mikedld.com> Signed-off-by: Laurent Vivier --- linux-user/strace.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'linux-user/strace.c') diff --git a/linux-user/strace.c b/linux-user/strace.c index 4f77b0cf76..11fea14fba 100644 --- a/linux-user/strace.c +++ b/linux-user/strace.c @@ -2056,6 +2056,18 @@ print_fcntl(void *cpu_env, const struct syscallname *name, print_pointer(arg2, 1); break; #endif + case TARGET_F_OFD_GETLK: + qemu_log("F_OFD_GETLK,"); + print_pointer(arg2, 1); + break; + case TARGET_F_OFD_SETLK: + qemu_log("F_OFD_SETLK,"); + print_pointer(arg2, 1); + break; + case TARGET_F_OFD_SETLKW: + qemu_log("F_OFD_SETLKW,"); + print_pointer(arg2, 1); + break; case TARGET_F_SETLEASE: qemu_log("F_SETLEASE,"); print_raw_param(TARGET_ABI_FMT_ld, arg2, 0); -- cgit v1.2.3