Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb attach xfer pool event counters



details:   https://anonhg.NetBSD.org/src/rev/a4511c5da71d
branches:  trunk
changeset: 783941:a4511c5da71d
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Jan 13 01:04:46 2013 +0000

description:
attach xfer pool event counters

diffstat:

 sys/dev/usb/dwc_otg.c |  13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 5a79d894f803 -r a4511c5da71d sys/dev/usb/dwc_otg.c
--- a/sys/dev/usb/dwc_otg.c     Sun Jan 13 00:19:41 2013 +0000
+++ b/sys/dev/usb/dwc_otg.c     Sun Jan 13 01:04:46 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dwc_otg.c,v 1.20 2013/01/12 23:26:06 jmcneill Exp $    */
+/*     $NetBSD: dwc_otg.c,v 1.21 2013/01/13 01:04:46 jmcneill Exp $    */
 
 /*-
  * Copyright (c) 2012 Hans Petter Selasky. All rights reserved.
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc_otg.c,v 1.20 2013/01/12 23:26:06 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc_otg.c,v 1.21 2013/01/13 01:04:46 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -4154,9 +4154,14 @@
            NULL, xname, "work items");
 
        evcnt_attach_dynamic(&sc->sc_ev_tdpoolget, EVCNT_TYPE_MISC,
-           NULL, xname, "pool get");
+           NULL, xname, "td pool get");
        evcnt_attach_dynamic(&sc->sc_ev_tdpoolput, EVCNT_TYPE_MISC,
-           NULL, xname, "pool put");
+           NULL, xname, "td pool put");
+
+       evcnt_attach_dynamic(&sc->sc_ev_xferpoolget, EVCNT_TYPE_MISC,
+           NULL, xname, "xfer pool get");
+       evcnt_attach_dynamic(&sc->sc_ev_xferpoolput, EVCNT_TYPE_MISC,
+           NULL, xname, "xfer pool put");
 #endif
 
        temp = DWC_OTG_READ_4(sc, DOTG_GUSBCFG);



Home | Main Index | Thread Index | Old Index