Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 May 2005 11:11:20 -0400
From:      Martin Cracauer <cracauer@cons.org>
To:        freebsd-emulation@freebsd.org
Subject:   System call tracing in Linuxulator
Message-ID:  <20050520111120.A90436@cons.org>

next in thread | raw e-mail | index | archive | help
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 <cracauer@cons.org>   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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050520111120.A90436>