USB: add scatter-gather support to usbmon
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 6 Nov 2009 17:32:23 +0000 (12:32 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 19:55:20 +0000 (11:55 -0800)
commitb375e1169d8ecc9e9db3ecba8147d484b5510833
tree6e82dd614c4a36d725b7250ced5a48a76c301607
parent40f8db8f8f5af2cafeb976ae15e11aca641a931d
USB: add scatter-gather support to usbmon

This patch (as1301) adds support to usbmon for scatter-gather URBs.
The text interface looks at only the first scatterlist element, since
it never copies more than 32 bytes of data anyway.  The binary
interface copies as much data as possible up to the first
non-addressable buffer.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
CC: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/mon/mon_bin.c
drivers/usb/mon/mon_text.c