Date: Wed, 10 Nov 2010 13:16:07 -0800 From: Julian Elischer <julian@freebsd.org> To: hackers@freebsd.org Subject: Re: libkvm: consumers of kvm_getprocs for non-live kernels? Message-ID: <4CDB0B97.3060209@freebsd.org> In-Reply-To: <20101110204152.GF85693@acme.spoerlein.net> References: <20101110204152.GF85693@acme.spoerlein.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 11/10/10 12:41 PM, Ulrich Spörlein wrote: > Hi, > > 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. > > 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 they used to. you should ask on -current because more people who know hang out there. > But, the kgdb file gnu/usr.bin/binutils/gdb/kvm-fbsd.c, where > kvm_getprocs is probably called on a dead kernel is not even used during > build! > > So I guess I'm staring at dead code here, any kvm people around that can > clue me in? > > Thanks, > Uli > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CDB0B97.3060209>