Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Add counters for spurious interrupts.



details:   https://anonhg.NetBSD.org/src/rev/ebdab22022c2
branches:  trunk
changeset: 352839:ebdab22022c2
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Apr 12 05:59:43 2017 +0000

description:
Add counters for spurious interrupts.

diffstat:

 sys/dev/pci/if_bge.c    |  8 ++++++--
 sys/dev/pci/if_bgevar.h |  4 ++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diffs (47 lines):

diff -r 374dc2ed98f0 -r ebdab22022c2 sys/dev/pci/if_bge.c
--- a/sys/dev/pci/if_bge.c      Wed Apr 12 05:50:52 2017 +0000
+++ b/sys/dev/pci/if_bge.c      Wed Apr 12 05:59:43 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bge.c,v 1.301 2017/04/12 05:50:52 msaitoh Exp $     */
+/*     $NetBSD: if_bge.c,v 1.302 2017/04/12 05:59:43 msaitoh Exp $     */
 
 /*
  * Copyright (c) 2001 Wind River Systems
@@ -79,7 +79,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.301 2017/04/12 05:50:52 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.302 2017/04/12 05:59:43 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -4073,6 +4073,10 @@
         */
        evcnt_attach_dynamic(&sc->bge_ev_intr, EVCNT_TYPE_INTR,
            NULL, device_xname(sc->bge_dev), "intr");
+       evcnt_attach_dynamic(&sc->bge_ev_intr_spurious, EVCNT_TYPE_INTR,
+           NULL, device_xname(sc->bge_dev), "intr_spurious");
+       evcnt_attach_dynamic(&sc->bge_ev_intr_spurious2, EVCNT_TYPE_INTR,
+           NULL, device_xname(sc->bge_dev), "intr_spurious2");
        evcnt_attach_dynamic(&sc->bge_ev_tx_xoff, EVCNT_TYPE_MISC,
            NULL, device_xname(sc->bge_dev), "tx_xoff");
        evcnt_attach_dynamic(&sc->bge_ev_tx_xon, EVCNT_TYPE_MISC,
diff -r 374dc2ed98f0 -r ebdab22022c2 sys/dev/pci/if_bgevar.h
--- a/sys/dev/pci/if_bgevar.h   Wed Apr 12 05:50:52 2017 +0000
+++ b/sys/dev/pci/if_bgevar.h   Wed Apr 12 05:59:43 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bgevar.h,v 1.22 2017/04/12 05:50:52 msaitoh Exp $   */
+/*     $NetBSD: if_bgevar.h,v 1.23 2017/04/12 05:59:43 msaitoh Exp $   */
 /*
  * Copyright (c) 2001 Wind River Systems
  * Copyright (c) 1997, 1998, 1999, 2001
@@ -326,7 +326,7 @@
         * Event counters.
         */
        struct evcnt bge_ev_intr;       /* interrupts */
-       struct evcnt bge_ev_intr_spurious;  /* spurious intr. (taged status) */
+       struct evcnt bge_ev_intr_spurious;  /* spurious intr. (tagged status)*/
        struct evcnt bge_ev_intr_spurious2; /* spurious interrupts */
        struct evcnt bge_ev_tx_xoff;    /* send PAUSE(len>0) packets */
        struct evcnt bge_ev_tx_xon;     /* send PAUSE(len=0) packets */



Home | Main Index | Thread Index | Old Index