Date: Wed, 25 Nov 2009 15:23:14 +0000 (UTC) From: Attilio Rao <attilio@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/usr.bin/gcore Makefile elfcore.c gcore.1 gcore.c Message-ID: <200911251527.nAPFR7W2089532@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
attilio 2009-11-25 15:23:14 UTC
FreeBSD src repository
Modified files:
usr.bin/gcore Makefile elfcore.c gcore.1 gcore.c
Log:
SVN rev 199805 on 2009-11-25 15:23:14Z by attilio
Change gcore in order to get rid of the procfs accesses and use FreeBSD's
specific sysctls and ptrace interfaces.
This change switches a bit gcore POLA that is summarized here:
- now gcore can recognize threads within the process and handle dumps
on thread-scope
- the process to be analyzed will be stopped during its gcore run
- gcore may not work with processes which are actively being analyzed
by gdb or truss
- the ptrace interface may cause syscalls to return EINTR, thus
interferring with signals handling within the process
Side note: <janitor task> the interface can be further lifted in order to
get rid of the very last procfs interfaces remnants and made more
suitable for copying with sysctl/ptrace interface </janitor task>.
Obtained from: Sandvine Incorporated
Reviewed by: emaste, rwatson
Sponsored by: Sandvine Incorporated
MFC: 1 month
Revision Changes Path
1.10 +1 -0 src/usr.bin/gcore/Makefile
1.22 +164 -181 src/usr.bin/gcore/elfcore.c
1.16 +10 -14 src/usr.bin/gcore/gcore.1
1.32 +12 -5 src/usr.bin/gcore/gcore.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911251527.nAPFR7W2089532>
