o Export cp_time ("CPU time statistics") using SYSCTL_OPAQUE.

This removes a reason that systat requires setgid kmem.  More to
  come.
This commit is contained in:
Robert Watson 2000-11-20 00:44:58 +00:00
parent aa5429970c
commit 7f112b0489
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68923

View File

@ -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;