memory mapped packet capturing - bpf replacement ?
Brian Feldman
green at freebsd.org
Tue Jun 15 20:29:23 GMT 2004
On Mon, Jun 14, 2004 at 06:47:49PM +0100, Bruce M Simpson wrote:
> On Mon, Jun 14, 2004 at 08:38:57AM -0400, Ed Maste wrote:
> > Hello Sergey. I haven't looked at your code, but I'll provide
> > some comments, having implemented a mmaped ringbuffer BPF
> > replacement myself.
>
> We've had some prior interest in this. Do you have patches? If so, I'd be
> more than happy to look at them.
>
> Linux has something similar, but when I looked at the mechanism involved,
> I was loathe to adopt the same logic because the buffer(s) involved were
> allocated from userland and then mapped accordingly; we generally can't
> afford to take a page fault in that path, for mutex related reasons.
If I finally get to finish fixing wiring, you should simply be able to
call vslock(9) in your kernel module and get that functionality. As it
is, vslock(9) is broken....
--
Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\
<> green at FreeBSD.org \ The Power to Serve! \
Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\
More information about the freebsd-hackers
mailing list