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:
parent
aa5429970c
commit
7f112b0489
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68923
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user