qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Mulyadi Santosa <a_mulyadi@softhome.net>
To: qemu-devel@nongnu.org
Cc: anderson@netsweng.com
Subject: Re: [Qemu-devel] [RFC] strace-like output for user-linux
Date: Mon, 04 Jun 2007 00:41:45 +0700	[thread overview]
Message-ID: <4662FD59.40806@softhome.net> (raw)
In-Reply-To: <Pine.LNX.4.64.0706021230470.21792@trantor.stuart.netsweng.com>

Hi Stuart

I hope my little advice is correct... but overall, I think you add a 
nice usefuk feature here.

>
> I'm sending this patch out for comments. It adds the capability to get
> strace(1) like output from the target executable in user-linux mode.

+char *format="%s(%ld,%ld,%ld,%ld,%ld,%ld)";
+
+for(i=0;i<nsyscalls;i++)
+    if( scnames[i].nr == num ) {
+        if( scnames[i].format != NULL )
+            format = scnames[i].format;
+        gemu_log(format,scnames[i].name, arg1,arg2,arg3,arg4,arg5,arg6);
+    }--> don't you think we should break() here since we already found 
correct syscall num? otherwise we will continue the loop
+}
+

regards,

Mulyadi

  reply	other threads:[~2007-06-03 17:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-02 16:35 [Qemu-devel] [RFC] strace-like output for user-linux Stuart Anderson
2007-06-03 17:41 ` Mulyadi Santosa [this message]
2007-06-03 17:34   ` Stuart Anderson

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=4662FD59.40806@softhome.net \
    --to=a_mulyadi@softhome.net \
    --cc=anderson@netsweng.com \
    --cc=qemu-devel@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).