On Wed, 22 Nov 2006, offset wrote:

> I'm a newbie for USB, so please be gentle :)
> 
> I'm trying to examine the traffic between a usb device and the windows
> driver for the usb device using VMware and usbfs.
> 
> I've got usbcore.usbfs_snoop=1 working properly and running klogd -f
> <output> (so I dont muddy up my syslog) and I am seeing the traffic for
> the usb devices I am examining.
> 
> Now for the newbie questions.
> 
> 1)  Is using klogd -f the best way for me to get a stream of data for
> the usb device?  The output is still in text format and if this is the
> correct way to get to the data, I'm considering writing a parser to
> convert all of the data: <hex> <hex> information into a binary stream
> that I can then examine.

There is no way currently to get the data in binary form.  Instead of 
using usbfs_snoop you could consider using usbmon (see 
Documentation/usb/usbmon.txt).

> 2)  I've noticed in the klogd -f output, it appears that klogd puts in
> <6> for the majority of the usb traffic that I need, but sometimes I
> will see a small amount of data with <4>.  Is there a case where usb
> communication would be logged at the <6> and <4> level for the usb
> device?  Not sure why I would be seeing different levels of klog
> traffic.

<4> is KERN_WARNING and <6> is KERN_INFO; people prefer to use the
symbolic names instead of the numbers.  Note that klogd doesn't put those
numbers in there; the kernel itself does when the messages are created.

Some messages are logged as warnings, but all the usbfs_snoop messages are 
at the INFO level.  If you provided some examples it would be easier to 
answer your question.

Alan Stern


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to