From owner-freebsd-current@FreeBSD.ORG Tue Nov 17 16:30:26 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C8E61065696; Tue, 17 Nov 2009 16:30:26 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id D92468FC1F; Tue, 17 Nov 2009 16:30:25 +0000 (UTC) Received: from [192.168.14.4] (unknown [62.49.66.13]) by cyrus.watson.org (Postfix) with ESMTPSA id 24D5E46B06; Tue, 17 Nov 2009 11:30:25 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: "Robert N. M. Watson" In-Reply-To: <20091117141713.GA51251@sandvine.com> Date: Tue, 17 Nov 2009 16:30:24 +0000 Content-Transfer-Encoding: 7bit Message-Id: <9C740225-CB30-4D26-8E4B-F9D5DC51B899@FreeBSD.org> References: <3bbf2fe10911160718j7784b311g2980aa02c79bc9ec@mail.gmail.com> <20091117141713.GA51251@sandvine.com> To: Ed Maste X-Mailer: Apple Mail (2.1077) Cc: Attilio Rao , freebsd-current@freebsd.org Subject: Re: [PATCH] Let gcore use ptrace interface rather than the procfs X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Nov 2009 16:30:26 -0000 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