From owner-cvs-src-old@FreeBSD.ORG Wed Nov 25 15:27:08 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 244661065694 for ; Wed, 25 Nov 2009 15:27:08 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 11D0D8FC1B for ; Wed, 25 Nov 2009 15:27:08 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id nAPFR7q6089533 for ; Wed, 25 Nov 2009 15:27:07 GMT (envelope-from attilio@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id nAPFR7W2089532 for cvs-src-old@freebsd.org; Wed, 25 Nov 2009 15:27:07 GMT (envelope-from attilio@repoman.freebsd.org) Message-Id: <200911251527.nAPFR7W2089532@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to attilio@repoman.freebsd.org using -f From: Attilio Rao Date: Wed, 25 Nov 2009 15:23:14 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/gcore Makefile elfcore.c gcore.1 gcore.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Nov 2009 15:27:08 -0000 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: 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 . 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