DragonFly BSD
DragonFly kernel List (threaded) for 2004-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: iostat, vmstat and other kvm(4) users

From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 23 Nov 2004 16:43:48 -0800 (PST)

: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.

    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.

					Matthew Dillon 

[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]