From 340ebc1ff185021dfc3396266222d6cfdd31853c Mon Sep 17 00:00:00 2001 From: dlg Date: Tue, 19 Apr 2022 01:32:06 +0000 Subject: [PATCH] enable kstat(4) and kstat(1). kstat allows the kernel to expose arbitrary data for userland to consume. currently this is used by some network card drivers to expose hardware counters they provide, and a bit by the network stack to show things like ifq counters. ok bluhm@ deraadt@ --- sys/conf/GENERIC | 3 ++- usr.bin/Makefile | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/conf/GENERIC b/sys/conf/GENERIC index 3a97d4095d1..06b21390811 100644 --- a/sys/conf/GENERIC +++ b/sys/conf/GENERIC @@ -1,4 +1,4 @@ -# $OpenBSD: GENERIC,v 1.283 2022/04/05 18:38:07 naddy Exp $ +# $OpenBSD: GENERIC,v 1.284 2022/04/19 01:32:06 dlg Exp $ # # Machine-independent option; used by all architectures for their # GENERIC kernel @@ -81,6 +81,7 @@ pseudo-device msts 1 # MSTS line discipline pseudo-device endrun 1 # EndRun line discipline pseudo-device vnd 4 # vnode disk devices pseudo-device ksyms 1 # kernel symbols device +pseudo-device kstat # kernel statistics device # clonable devices pseudo-device bpfilter # packet filter diff --git a/usr.bin/Makefile b/usr.bin/Makefile index a2173f9c55c..d97844c5adc 100644 --- a/usr.bin/Makefile +++ b/usr.bin/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.166 2022/02/22 15:15:34 millert Exp $ +# $OpenBSD: Makefile,v 1.167 2022/04/19 01:32:06 dlg Exp $ .include @@ -11,7 +11,8 @@ SUBDIR= apply arch at aucat audioctl awk banner \ find fgen finger fmt fold from fstat ftp gencat getcap \ getconf getent getopt gprof grep head hexdump htpasswd id indent \ infocmp ipcrm ipcs \ - join jot kdump keynote ktrace lam last lastcomm ldap leave less lex \ + join jot kdump keynote kstat ktrace \ + lam last lastcomm ldap leave less lex \ libtool lndir \ locale locate lock logger login logname look lorder \ m4 mail make mandoc mesg mg \ -- 2.20.1