Export interrupt statistics via sysctl.

MFC-after: 3 days
This commit is contained in:
Luigi Rizzo 2001-10-07 17:03:56 +00:00
parent c6cd7661ed
commit 7d4b046991
4 changed files with 24 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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