[PATCH] Let gcore use ptrace interface rather than the procfs

Robert N. M. Watson rwatson at FreeBSD.org
Tue Nov 17 16:30:26 UTC 2009


On 17 Nov 2009, at 14:17, Ed Maste wrote:

> Our original motivation for doing this was to make gcore work with
> threaded apps, not avoiding procfs, but that's a useful side-effect of
> the work.  Note though that for that purpose it isn't complete; procfs
> is still used in readmap to read the process' memory map.  It looks like
> we need to find a way to implement readmap without procfs.

Are the sysctls used for procstat -v sufficient for this purpose?

Robert


More information about the freebsd-current mailing list