Subject: Re: usb command tracing.
To: None <port-i386@netbsd.org>
From: Michael van Elst <mlelstv@serpens.de>
List: port-i386
Date: 10/03/2006 08:58:09
pts@bom.gov.au ("Paul (NCC/CS).") writes:

>is it possible to turn on usb command tracing in netbsd?
>I guess this is not like flicking a switch, but then again
>it might be.

On several levels. You need a kernel compiled with 'options USB_DEBUG'
and then set kernel variables

uhcidebug        debug level for various controller
ohcidebug
ehcidebug

usbdebug         debug level for low level USB operations

umassdebug       flags for umass tracing, see umassvar.h for details

For tracing commands set umassdebug to 0x80000000.

You can set these variables at runtime with DDB.

Since this may generate lots of output you probably want to compile
the kernel with 'options MSGBUFSIZE=65536' or even larger.


-- 
-- 
                                Michael van Elst
Internet: mlelstv@serpens.de
                                "A potential Snark may lurk in every tree."