From owner-freebsd-emulation@FreeBSD.ORG Fri May 20 16:58:41 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 CDD0816A4CE for ; Fri, 20 May 2005 16:58:41 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B79343DBB for ; Fri, 20 May 2005 16:58:41 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id j4KGwZDL086529; Fri, 20 May 2005 11:58:35 -0500 (CDT) (envelope-from dan) Date: Fri, 20 May 2005 11:58:35 -0500 From: Dan Nelson To: Martin Cracauer Message-ID: <20050520165834.GA51092@dan.emsphone.com> References: <20050520111120.A90436@cons.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050520111120.A90436@cons.org> X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.9i cc: freebsd-emulation@freebsd.org Subject: Re: 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 16:58:41 -0000 In the last episode (May 20), Martin Cracauer said: > 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 I don't think you can trace a program that's tracing another program. > What are people using these days? I just use truss. It understands the linux syscalls just fine. -- Dan Nelson dnelson@allantgroup.com