From: Riku Voipio <riku.voipio@iki.fi>
To: Laurent Vivier <laurent@vivier.eu>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/2] linux-user: add rmdir() strace
Date: Wed, 16 Feb 2011 12:26:15 +0200 [thread overview]
Message-ID: <20110216102615.GB6394@afflict.kos.to> (raw)
In-Reply-To: <1297800644-30773-1-git-send-email-laurent@vivier.eu>
On Tue, Feb 15, 2011 at 09:10:43PM +0100, Laurent Vivier wrote:
> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
> ---
> linux-user/strace.c | 12 ++++++++++++
> linux-user/strace.list | 3 +++
> 2 files changed, 15 insertions(+), 0 deletions(-)
Applied to que.
> diff --git a/linux-user/strace.c b/linux-user/strace.c
> index 1836666..05277c0 100644
> --- a/linux-user/strace.c
> +++ b/linux-user/strace.c
> @@ -876,6 +876,18 @@ print_mkdirat(const struct syscallname *name,
> }
> #endif
>
> +#ifdef TARGET_NR_rmdir
> +static void
> +print_rmdir(const struct syscallname *name,
> + abi_long arg0, abi_long arg1, abi_long arg2,
> + abi_long arg3, abi_long arg4, abi_long arg5)
> +{
> + print_syscall_prologue(name);
> + print_string(arg0, 0);
> + print_syscall_epilogue(name);
> +}
> +#endif
> +
> #ifdef TARGET_NR_mknod
> static void
> print_mknod(const struct syscallname *name,
> diff --git a/linux-user/strace.list b/linux-user/strace.list
> index d7be0e7..563a67f 100644
> --- a/linux-user/strace.list
> +++ b/linux-user/strace.list
> @@ -495,6 +495,9 @@
> #ifdef TARGET_NR_mkdirat
> { TARGET_NR_mkdirat, "mkdirat" , NULL, print_mkdirat, NULL },
> #endif
> +#ifdef TARGET_NR_rmdir
> +{ TARGET_NR_rmdir, "rmdir" , NULL, print_rmdir, NULL },
> +#endif
> #ifdef TARGET_NR_mknod
> { TARGET_NR_mknod, "mknod" , NULL, print_mknod, NULL },
> #endif
> --
> 1.7.1
>
prev parent reply other threads:[~2011-02-16 10:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-15 20:10 [Qemu-devel] [PATCH 1/2] linux-user: add rmdir() strace Laurent Vivier
2011-02-15 20:10 ` [Qemu-devel] [PATCH 2/2] linux-user: in linux-user/strace.c, tswap() is useless Laurent Vivier
2011-02-16 10:25 ` Riku Voipio
2011-02-16 10:26 ` Riku Voipio [this message]
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=20110216102615.GB6394@afflict.kos.to \
--to=riku.voipio@iki.fi \
--cc=laurent@vivier.eu \
--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).