diff options
author | rwatson <rwatson@FreeBSD.org> | 2000-11-20 00:44:58 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2000-11-20 00:44:58 +0000 |
commit | ee2707f1c2af95f097f8ba5eaeb087e316e84036 (patch) | |
tree | c22f7fe461a8b4f214b07af6d02f73369883a008 | |
parent | 7302881265de22775204f29a13a6531245b7139a (diff) | |
download | FreeBSD-src-ee2707f1c2af95f097f8ba5eaeb087e316e84036.zip FreeBSD-src-ee2707f1c2af95f097f8ba5eaeb087e316e84036.tar.gz |
o Export cp_time ("CPU time statistics") using SYSCTL_OPAQUE.
This removes a reason that systat requires setgid kmem. More to
come.
-rw-r--r-- | sys/kern/kern_clock.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c index b021580..223be91 100644 --- a/sys/kern/kern_clock.c +++ b/sys/kern/kern_clock.c @@ -76,6 +76,9 @@ SYSINIT(clocks, SI_SUB_CLOCKS, SI_ORDER_FIRST, initclocks, NULL) /* Some of these don't belong here, but it's easiest to concentrate them. */ long cp_time[CPUSTATES]; +SYSCTL_OPAQUE(_kern, OID_AUTO, cp_time, CTLFLAG_RD, &cp_time, sizeof(cp_time), + "LU", "CPU time statistics"); + long tk_cancc; long tk_nin; long tk_nout; |