linux-user: Add strace support for printing OFD fcntl operations

Signed-off-by: Mike Gelfand <mikedld@mikedld.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20200830092242.31506-1-mikedld@mikedld.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
Mike Gelfand 2020-08-30 12:22:42 +03:00 committed by Laurent Vivier
parent ce0ce715cd
commit 38be863d41

View File

@ -2056,6 +2056,18 @@ print_fcntl(void *cpu_env, const struct syscallname *name,
print_pointer(arg2, 1); print_pointer(arg2, 1);
break; break;
#endif #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: case TARGET_F_SETLEASE:
qemu_log("F_SETLEASE,"); qemu_log("F_SETLEASE,");
print_raw_param(TARGET_ABI_FMT_ld, arg2, 0); print_raw_param(TARGET_ABI_FMT_ld, arg2, 0);