Date: Wed, 4 Apr 2007 17:06:21 -0400 From: "Ed Maste" <ed.maste@gmail.com> To: "Ed Maste" <emaste@phaedrus.sandvine.ca>, "Ed Schouten" <ed@fxq.nl>, "Howard Su" <howard0su@gmail.com>, current@freebsd.org Subject: Re: [Review] Remove procfs dependency of truss Message-ID: <88607eb20704041406ka4902fdqe0f2897a2f9f15d9@mail.gmail.com> In-Reply-To: <20070404203221.GA88767@sandvine.com> References: <f126fae00704040118w25a7b291xdcf1b6300bab1ceb@mail.gmail.com> <20070404121602.GI14608@hoeg.nl> <20070404203221.GA88767@sandvine.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Apr 04, 2007 at 02:16:02PM +0200, Ed Schouten wrote: > Indeed. Looking at sys/ptrace.h, there are a lot of instructions that > aren't documented in the manpage: > > - PT_GETNUMLWPS > - PT_GETLWPLIST [...] Yeah, it's unfortunate that these aren't documented and ptrace seems to be somewhat mysterious. I ran across this while starting to work on switching gcore from procfs to ptrace, in the context of getting it to understand threads. (Procfs provides /proc/pid/regs, which returns only the register set for the first thread in the process. There are other XXXKSE gotchas in the procfs source too.) Ed Maste
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?88607eb20704041406ka4902fdqe0f2897a2f9f15d9>