On Thu, 12 Jan 2006, D.rama krishna wrote: > Dear all, > > I am ramakrishna. I am working on USB application > and drivers. I have a need to know the data rate at > which my USB transfers are happening for eg:webcam or > from mass-storage device. > > Is there a tool to get these statistics, or is there > any way to write a simple application to get these > statistics. > > I am working on 2.4.18 linux kernel redhat > distribution. I have to work on 2.4.18 kernel > keeping > in view of drivers i got for my usb controllers.
Those data rates are not available from the kernel; no statistics are kept. Of course, if you write a program that transfers data from a USB mass storage device, you can always keep track of how much data you read and how long it takes. You can't so easily keep track of data-out transfers, however, because writes are buffered in the kernel. Alan Stern ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
