From 7f112b0489015958e3990c0015d114c69de53d29 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Mon, 20 Nov 2000 00:44:58 +0000 Subject: [PATCH] o Export cp_time ("CPU time statistics") using SYSCTL_OPAQUE. This removes a reason that systat requires setgid kmem. More to come. --- sys/kern/kern_clock.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c index b02158026312..223be915c229 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;