summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2000-11-20 00:44:58 +0000
committerrwatson <rwatson@FreeBSD.org>2000-11-20 00:44:58 +0000
commitee2707f1c2af95f097f8ba5eaeb087e316e84036 (patch)
treec22f7fe461a8b4f214b07af6d02f73369883a008
parent7302881265de22775204f29a13a6531245b7139a (diff)
downloadFreeBSD-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.c3
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;
OpenPOWER on IntegriCloud