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

From: Attilio Rao <attilio_at_freebsd.org>
Date: Thu, 19 Nov 2009 02:33:01 +0100
2009/11/17 Robert N. M. Watson <rwatson_at_freebsd.org>:
>
> 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?

This patch should address the arised concerns by both of you:
http://www.freebsd.org/~attilio/Sandvine/STABLE_8/gcore/gcore2.diff

and additively fix elf_getstatus() to not use procfs, so that gcore is
completely procfs independent now.
Comments, reviews and testing are welcome.

Thanks,
Attilio


-- 
Peace can only be achieved by understanding - A. Einstein
Received on Thu Nov 19 2009 - 00:33:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:58 UTC