On Sat, 3 Feb 2007, Pete Zaitcev wrote:

> On Sat, 3 Feb 2007 11:43:50 -0500 (EST), Alan Stern <[EMAIL PROTECTED]> wrote:
> 
> > Here's an idea for an improvement to the text interface in usbmon which
> > should be easy to implement.  I'd like to know for certain when and where
> > events are missing from the log.  Something as simple as a line containing
> > nothing but a '*' could mark the absence of one or more events.
> 
> Hmm... The problem with dropped events is that they are dropped when
> the cat is not reading fast enough. I need to come up with some sort
> of recurring counting idea which copes with the loss of asterisk entries.

Add a per-bus variable to count the number of times the event writer has
wrapped around.  Add a per-reader variable to count the number of times
the reader has wrapped, and another variable to keep track of where in the
buffer the last read ended.  If the wrap-around variables don't match or
the next read starts other than where the last read ended, data has been
lost.

Or maybe you can come up with something even better...

Alan Stern


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to