iostat, vmstat and other kvm(4) users

Matthew Dillon dillon at apollo.backplane.com
Tue Nov 23 16:45:33 PST 2004


:
:Can you have a look at http://leaf.dragonflybsd.org/~joerg/libkcore.diff ?
:This does implement the magic to switch for pstat depending on wether
:USE_KCORE is defined or not. I'm not yet satisfied with the use of
:KCORE_KVM_GLOBAL, I'm thinking of using NULL instead and handle that
:pointer in the library as meaning the special compatibility global.
:
:The implementation of kcore_get_procs is a hack, this should not (yet)
:be considered part of the public API.
:
:This allows us (as in developers or more concerned admins, in theory
:can certain parts be faster) to use get the fully fledged, kernel
:dependent tools and the normal user can be have the fully stable version.
:
:Joerg

    It looks reasonable, but I again do not see any reason to required
    a build-time conditionalization of the code.  Just compile it in
    and make it selectable at run-time, and make e.g. pstat, ps, etc...
    select kcore mode when they themselves are run with -N/-M.

    I don't want there to be different versions of the program for
    developers vs users, that would only create confusion.

					-Matt
					Matthew Dillon 
					<dillon at xxxxxxxxxxxxx>





More information about the Kernel mailing list