From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 11 15:15:09 2010 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 42DC0106566C; Thu, 11 Nov 2010 15:15:09 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 0E37B8FC20; Thu, 11 Nov 2010 15:15:09 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 9CF4A46B17; Thu, 11 Nov 2010 10:15:08 -0500 (EST) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 92D6A8A009; Thu, 11 Nov 2010 10:15:07 -0500 (EST) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Thu, 11 Nov 2010 08:45:36 -0500 User-Agent: KMail/1.13.5 (FreeBSD/7.3-CBSD-20100819; KDE/4.4.5; amd64; ; ) References: <20101110204152.GF85693@acme.spoerlein.net> In-Reply-To: <20101110204152.GF85693@acme.spoerlein.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <201011110845.36896.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Thu, 11 Nov 2010 10:15:07 -0500 (EST) X-Virus-Scanned: clamav-milter 0.96.3 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.9 required=4.2 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on bigwig.baldwin.cx Cc: Ulrich =?iso-8859-1?q?Sp=F6rlein?= , hackers@freebsd.org Subject: Re: libkvm: consumers of kvm_getprocs for non-live kernels? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Nov 2010 15:15:09 -0000 On Wednesday, November 10, 2010 3:41:52 pm Ulrich Sp=F6rlein wrote: > Hi, >=20 > I have this cleanup of libkvm sitting in my tree and it needs a little > bit of testing, especially the function kvm_proclist, which is only > called from kvm_deadprocs which is only called from kvm_getprocs when kd > is not ALIVE. >=20 > The only consumer in our tree that I can make out is *probably* kgdb, as > ps(1), top(1), w(1), pkill(1), fstat(1), systat(1), pmcstat(8) and > bsnmpd don't really work on coredumps ps and fstat certainly work fine on crashdumps. w did before devfs (it=20 doesn't have a good way to map the device entries from the crashed kernel t= o=20 the entries in wtmp IIRC). kvm_getprocs() is certainly actively used by=20 various programs on crashdumps and works. =2D-=20 John Baldwin