Re: My vision of usbmon

Greg KH
2004-12-22T05:06:48Z

On Tue, Dec 21, 2004 at 06:25:14PM -0800, Pete Zaitcev wrote:
>
> Generally, the type of coding which requires a use of memory barriers in drivers
> is a bug or a latent bug, so I am sorry for the above. It was a sacrifice to
> make usbmon invisible if it's not actively monitoring. Sorry about that.

Well, why do that? Why not do something like the security hooks do, and
have a default "noop" hook if we don't have a monitor, and when you load
the monitor, it switches the hook to point to your code?

thanks,

greg k-h