hi alan 2013/11/15 Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>: > On Fri, 15 Nov 2013, vichy wrote: > >> hi Alan >> >> 2013/11/14 Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>: >> > On Thu, 14 Nov 2013, vichy wrote: >> > >> >> hi all: >> >> I have some questions: >> >> 1. if I need to capture all the data host capture from bus, usb mon >> >> binary can reach this goal? >> > >> > Yes. >> > >> >> 2. if #1 is Yes. from usb mon text I need >> >> a. compile kernel with usbmon support >> >> b. access /dev/usbmonx >> >> c. feed the binary file to wireshark. >> >> in b), shall we write a user mode program? >> > >> > No, just use the usbmon program. However, it creates a text file, not >> > a binary file. You can't feed the output to wireshark. >> > If you want binary output that wireshark can use, you have to run a >> > different program like tcpdump or dumpcap. > > Read the four lines above... I can use wireshark to pasring the binary get from tcpdump. I apoligize for misunderstanding your explaination. :) BTW, is it possible to filter out bulk, interrupt or isochronous data that echi driver pass to urb? I am writing user mode usb driver with libusb and want to check the data correctness by comparing 1. the data return from urb->complete 2. data ehci get from device and pass to urb Appreciate your help, -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html