libkvm: consumers of kvm_getprocs for non-live kernels?

John Baldwin jhb at freebsd.org
Thu Nov 11 15:15:09 UTC 2010


On Wednesday, November 10, 2010 3:41:52 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

ps and fstat certainly work fine on crashdumps.  w did before devfs (it 
doesn't have a good way to map the device entries from the crashed kernel to 
the entries in wtmp IIRC).  kvm_getprocs() is certainly actively used by 
various programs on crashdumps and works.

-- 
John Baldwin


More information about the freebsd-hackers mailing list