From owner-freebsd-emulation@FreeBSD.ORG Fri May 20 15:11:22 2005 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 897C116A4CE for ; Fri, 20 May 2005 15:11:22 +0000 (GMT) Received: from schlepper.zs64.net (schlepper.zs64.net [212.12.50.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE75743DCA for ; Fri, 20 May 2005 15:11:21 +0000 (GMT) (envelope-from cracauer@schlepper.zs64.net) Received: from schlepper.zs64.net (schlepper [212.12.50.230]) by schlepper.zs64.net (8.13.1/8.12.9) with ESMTP id j4KFBLaj090542 for ; Fri, 20 May 2005 17:11:21 +0200 (CEST) (envelope-from cracauer@schlepper.zs64.net) Received: (from cracauer@localhost) by schlepper.zs64.net (8.13.1/8.12.9/Submit) id j4KFBKuK090541 for freebsd-emulation@freebsd.org; Fri, 20 May 2005 11:11:20 -0400 (EDT) (envelope-from cracauer) Date: Fri, 20 May 2005 11:11:20 -0400 From: Martin Cracauer To: freebsd-emulation@freebsd.org Message-ID: <20050520111120.A90436@cons.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Subject: System call tracing in Linuxulator X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2005 15:11:22 -0000 Didn't we use top have a linux-strace port? It seems that there is currently no stracing tool which would resolve Linux system calls to some text description. Using the strace Linux binary fails with an invalid argument to ptrace: ./strace /compat/linux/bin/cat execve("/compat/linux/bin/cat", ["/compat/linux/bin/cat"], [/* 56 vars */]) = 0 trace: ptrace(PTRACE_SYSCALL, ...): Invalid argument FreeBSD truss of the above strace ends with: linux_ptrace(0x18,0x17c41,0x1,0x0) ERR#22 'Invalid argument' trace: ptrace(PTRACE_SYSCALL, ...): Invalid argument What are people using these days? Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/ No warranty. This email is probably produced by one of my cats stepping on the keys. No, I don't have an infinite number of cats.