Am Montag, 15. März 2010 17:04:44 schrieb Alan Stern: > On Fri, 12 Mar 2010, Alan Stern wrote: > > > Maybe we could have the scatter-gather library put pointers to the > > scatterlist elements in the URBs, and then for each URB have usbmon > > call dma_sync_sg() with nelems set to 1 (see > > Documentation/DMA-API.txt). I'm not sure whether this will work > > properly if the original scatter-gather list contained more than one > > element, but it probably will. I can ask. > > Here's a patch. Oliver, does it fix your problem? It works. vanamonde:/home/oneukum # cat /sys/kernel/debug/usb/usbmon/2u| tee /tmp/stor_capture_23.txt ffff88010d832240 125401915 S Ci:2:001:0 s a3 00 0000 0003 0004 4 < ffff88010d832240 125401937 C Ci:2:001:0 0 4 = 07050000 ffff88010d832240 125401950 S Co:2:001:0 s 23 01 0002 0003 0000 0 ffff88010d832240 125401959 C Co:2:001:0 0 0 ffff88010d832240 125432077 S Ci:2:001:0 s a3 00 0000 0003 0004 4 < ffff88010d832240 125432108 C Ci:2:001:0 0 4 = 03050400 ffff88010d832240 125451599 S Co:2:001:0 s 23 01 0012 0003 0000 0 ffff88010d832240 125451606 C Co:2:001:0 0 0 ffff88010d832240 125451613 S Ci:2:004:0 s 80 00 0000 0000 0002 2 < ffff88010d832240 125451760 C Ci:2:004:0 0 2 = 0000 ffff88013905c8c0 125451803 S Bo:2:004:1 -115 31 = 55534243 7f000000 00800000 80000a28 00000002 40000040 00000000 000000 ffff88013905c8c0 125451872 C Bo:2:004:1 0 31 > ffff88010d832240 125451910 S Bi:2:004:2 -115 32768 < ffff88010d832240 125667015 C Bi:2:004:2 -32 0 ffff88013905c8c0 125667060 S Co:2:004:0 s 02 01 0000 0082 0000 0 ffff88013905c8c0 125667257 C Co:2:004:0 0 0 ffff88013905c8c0 125667279 S Bi:2:004:2 -115 13 < ffff88013905c8c0 125667372 C Bi:2:004:2 0 13 = 55534253 7f000000 00800000 01 ffff88013905c8c0 125667401 S Bo:2:004:1 -115 31 = 55534243 80000000 12000000 80000603 00000012 00000000 00000000 000000 ffff88013905c8c0 125667496 C Bo:2:004:1 0 31 > ffff88010d832240 125667528 S Bi:2:004:2 -115 18 < ffff88010d832240 125667632 C Bi:2:004:2 0 18 = f0010600 0000000a 00aa5501 28000100 0000 ffff88013905c8c0 125667654 S Bi:2:004:2 -115 13 < ffff88013905c8c0 125667746 C Bi:2:004:2 0 13 = 55534253 80000000 00000000 00 ffff88010d832240 127816190 S Co:2:001:0 s 23 03 0002 0003 0000 0 ffff88010d832240 127816202 C Co:2:001:0 0 0 Regards Oliver -- 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