diff options
author | luigi <luigi@FreeBSD.org> | 2001-10-07 17:03:56 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2001-10-07 17:03:56 +0000 |
commit | 392c300e5f20d59d5578951d6dc70493187e4b1e (patch) | |
tree | 2bc3076c29a64878d682616c54432de90f63f76c /sys/amd64/isa/nmi.c | |
parent | a5a9e4b16331b862a4ef4126f67e3cf769783233 (diff) | |
download | FreeBSD-src-392c300e5f20d59d5578951d6dc70493187e4b1e.zip FreeBSD-src-392c300e5f20d59d5578951d6dc70493187e4b1e.tar.gz |
Export interrupt statistics via sysctl.
MFC-after: 3 days
Diffstat (limited to 'sys/amd64/isa/nmi.c')
-rw-r--r-- | sys/amd64/isa/nmi.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/amd64/isa/nmi.c b/sys/amd64/isa/nmi.c index c17806f..aea0511 100644 --- a/sys/amd64/isa/nmi.c +++ b/sys/amd64/isa/nmi.c @@ -52,6 +52,7 @@ #include <sys/module.h> #include <sys/mutex.h> #include <sys/proc.h> +#include <sys/sysctl.h> #include <sys/syslog.h> #include <sys/systm.h> #include <sys/unistd.h> @@ -412,6 +413,11 @@ isa_irq_pending() } #endif +SYSCTL_OPAQUE(_kern, OID_AUTO, intrcnt, CTLFLAG_RD, intrcnt, + 4*NR_INTRNAMES, "LU", "Interrupt counts"); +SYSCTL_OPAQUE(_kern, OID_AUTO, intrnames, CTLFLAG_RD, intrnames, + 16*NR_INTRNAMES, "S", "Interrupt names"); + /* * Update intrnames array with the specified name. This is used by * vmstat(8) and the like. |