Date: 20 Oct 2001 15:54:13 +0200 From: Dag-Erling Smorgrav <des@ofug.org> To: Robert Watson <rwatson@freebsd.org> Cc: Jim Pirzyk <Jim.Pirzyk@disney.com>, freebsd-hackers@freebsd.org Subject: Re: truss vs ktrace Message-ID: <xzp1yjymn7e.fsf@flood.ping.uio.no> In-Reply-To: <Pine.NEB.3.96L.1011017132024.34079A-100000@fledge.watson.org> References: <Pine.NEB.3.96L.1011017132024.34079A-100000@fledge.watson.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Robert Watson <rwatson@freebsd.org> writes: > There are a fair number of differences, but from my perspective, one of > the primary ones is that truss relies on procfs, Truss could be easily be rewritten to use ptrace() instead of procfs. It'd be a lot slower though, because ptrace() can only return one int at a time from process memory whereas with /proc/pid/mem you can read as much as you want in one go. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzp1yjymn7e.fsf>