Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb usb(4), uhub(4): Sprinkle usbhist.



details:   https://anonhg.NetBSD.org/src/rev/9466e3c1002a
branches:  trunk
changeset: 1021644:9466e3c1002a
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Jun 12 12:13:23 2021 +0000

description:
usb(4), uhub(4): Sprinkle usbhist.

diffstat:

 sys/dev/usb/uhub.c     |  7 +++++--
 sys/dev/usb/usb_subr.c |  8 ++++++--
 2 files changed, 11 insertions(+), 4 deletions(-)

diffs (57 lines):

diff -r bc634243fd5d -r 9466e3c1002a sys/dev/usb/uhub.c
--- a/sys/dev/usb/uhub.c        Sat Jun 12 12:13:10 2021 +0000
+++ b/sys/dev/usb/uhub.c        Sat Jun 12 12:13:23 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhub.c,v 1.149 2021/06/12 12:13:10 riastradh Exp $     */
+/*     $NetBSD: uhub.c,v 1.150 2021/06/12 12:13:23 riastradh Exp $     */
 /*     $FreeBSD: src/sys/dev/usb/uhub.c,v 1.18 1999/11/17 22:33:43 n_hibma Exp $       */
 /*     $OpenBSD: uhub.c,v 1.86 2015/06/29 18:27:40 mpi Exp $ */
 
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uhub.c,v 1.149 2021/06/12 12:13:10 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhub.c,v 1.150 2021/06/12 12:13:23 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -932,6 +932,9 @@
        struct usbd_device *dev;
        int port;
 
+       UHUBHIST_FUNC();
+       UHUBHIST_CALLARGS("uhub%jd", device_unit(sc->sc_dev), 0, 0, 0);
+
        KASSERT(KERNEL_LOCKED_P());
 
        if (uhub_explore_enter(sc) != 0)
diff -r bc634243fd5d -r 9466e3c1002a sys/dev/usb/usb_subr.c
--- a/sys/dev/usb/usb_subr.c    Sat Jun 12 12:13:10 2021 +0000
+++ b/sys/dev/usb/usb_subr.c    Sat Jun 12 12:13:23 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usb_subr.c,v 1.253 2021/06/12 12:13:10 riastradh Exp $ */
+/*     $NetBSD: usb_subr.c,v 1.254 2021/06/12 12:13:23 riastradh Exp $ */
 /*     $FreeBSD: src/sys/dev/usb/usb_subr.c,v 1.18 1999/11/17 22:33:47 n_hibma Exp $   */
 
 /*
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usb_subr.c,v 1.253 2021/06/12 12:13:10 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usb_subr.c,v 1.254 2021/06/12 12:13:23 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -1116,6 +1116,10 @@
 {
        int i, loc;
 
+       USBHIST_FUNC();
+       USBHIST_CALLARGS(usbdebug, "uhub%jd port=%jd",
+           device_unit(parent), port, 0, 0);
+
        KASSERT(KERNEL_LOCKED_P());
 
        if (locators != NULL) {



Home | Main Index | Thread Index | Old Index