usbmon status && extended urb information for binary API
Paolo Abeni <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
hello, I spend a few time in the last days using latest usbmon patch (with bus 0 interface). So far I did not notice any issue. My knowledge of the module removal process is far from complete, so I can't perform any formal correctness test for rmmod. I used a linux-2.6.21-rc4 tree with the mon_extended_text_api, mon_device_0 and mon_bus0 patches (your version, taken from the ML). The mon_device_0 and mon_bus0 apply with fuzz. I was wondering about making available the text extended information through the binary interface, without breaking current API. Some helper/dummy events could be generated for each isochronous transfer URB with number_of_packets > 0, one for each packet used by the transfer. This events have event type 'P' (isochronous packet) and id, xfer_type, epnum, devnum, busnum equal to the 'main' event field. The per frame information (offset, length, actual_length, status) could be encoded into the 'P' events: * Reusing some usbmon header fields (could be the setup field possibly used ?!?) and giving them different semantic for 'P' events or: * Adding a 'dummy' payload with such information. For other urb fields used in isochronous transfer: * the number_of_packet is implied by the number of 'P' events generated. * the start_frame could encoded in the 'status' field of the 'main' event (given that such field does not report the URB status in the usual way for isochronous transfer) or into each 'P' event, like the per frame information. Ok this is a bit complex :-). Anyway please let me know any suggestion. thanks, Paolo -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Tutto per il Modding PC: Case, Led, Neon, Ventole. Il tuo PC personalizzato da noi conviene, visita il nostro sito Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=6123&d=27-3 ------------------------------------------------------------------------- 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 _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel