From patchwork Tue Feb 15 20:10:43 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 83299 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 2EEE2B7125 for ; Wed, 16 Feb 2011 07:15:28 +1100 (EST) Received: from localhost ([127.0.0.1]:47919 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpRFe-0003Xt-6M for incoming@patchwork.ozlabs.org; Tue, 15 Feb 2011 15:11:58 -0500 Received: from [140.186.70.92] (port=52452 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpREY-0003Xk-1p for qemu-devel@nongnu.org; Tue, 15 Feb 2011 15:10:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PpREW-0004dk-Ot for qemu-devel@nongnu.org; Tue, 15 Feb 2011 15:10:49 -0500 Received: from smtp6-g21.free.fr ([212.27.42.6]:60065) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PpREW-0004dM-5Q for qemu-devel@nongnu.org; Tue, 15 Feb 2011 15:10:48 -0500 Received: from Quad (unknown [78.238.229.36]) by smtp6-g21.free.fr (Postfix) with ESMTP id 24B8782393; Tue, 15 Feb 2011 21:10:41 +0100 (CET) Received: from laurent by Quad with local (Exim 4.72) (envelope-from ) id 1PpREW-00080q-KO; Tue, 15 Feb 2011 21:10:48 +0100 From: Laurent Vivier To: Riku Voipio Date: Tue, 15 Feb 2011 21:10:43 +0100 Message-Id: <1297800644-30773-1-git-send-email-laurent@vivier.eu> X-Mailer: git-send-email 1.7.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 212.27.42.6 Cc: qemu-devel@nongnu.org, Laurent Vivier Subject: [Qemu-devel] [PATCH 1/2] linux-user: add rmdir() strace X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Laurent Vivier --- linux-user/strace.c | 12 ++++++++++++ linux-user/strace.list | 3 +++ 2 files changed, 15 insertions(+), 0 deletions(-) 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