From: Mike Gelfand <mikedld@mikedld.com>
To: qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org, Mike Gelfand <mikedld@mikedld.com>,
Laurent Vivier <laurent@vivier.eu>
Subject: [PATCH] linux-user: Add strace support for printing OFD fcntl operations
Date: Sun, 30 Aug 2020 12:22:42 +0300 [thread overview]
Message-ID: <20200830092242.31506-1-mikedld@mikedld.com> (raw)
Signed-off-by: Mike Gelfand <mikedld@mikedld.com>
---
linux-user/strace.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
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);
--
2.28.0
next reply other threads:[~2020-08-30 9:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-30 9:22 Mike Gelfand [this message]
2020-08-30 19:48 ` [PATCH] linux-user: Add strace support for printing OFD fcntl operations Laurent Vivier
2020-09-01 9:47 ` Laurent Vivier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200830092242.31506-1-mikedld@mikedld.com \
--to=mikedld@mikedld.com \
--cc=laurent@vivier.eu \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).