Source-Changes archive

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

CVS commit: src/usr.bin/vmstat



Module Name:    src
Committed By:   matt
Date:           Sat Jan 29 18:10:08 UTC 2011

Modified Files:
        src/usr.bin/vmstat: vmstat.c

Log Message:
Defer nlist processing until we know we need to it.  If everything can be
obtained via sysctl, we can skip it entirely.  This means we can run even
if not setgid.

getuptime will now use sysctl/clock_gettime if memf is NULL.
doevcnt now sues sysctl(kern.evcnt) is memf is NULL.  It falls back to
groveling if sysctl returns an error of ENOENT.
dointr will call doevcnt to evcnt based intr stats.


To generate a diff of this commit:
cvs rdiff -u -r1.175 -r1.176 src/usr.bin/vmstat/vmstat.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Home | Main Index | Thread Index | Old Index