Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aya: Implement RingBuf #294

Closed
wants to merge 3 commits into from
Closed

Commits on Nov 5, 2022

  1. aya-bpf: implement ringbuf map

    Co-authored-by: William Findlay <william@williamfindlay.com>
    ishitatsuyuki and willfindlay committed Nov 5, 2022
    Configuration menu
    Copy the full SHA
    6ff54d0 View commit details
    Browse the repository at this point in the history
  2. aya: move mmap from perf_buffer.rs to sys/mod.rs

    mmap() is needed for the ring buffer implementation, so move it to a common module
    willfindlay authored and ishitatsuyuki committed Nov 5, 2022
    Configuration menu
    Copy the full SHA
    9731995 View commit details
    Browse the repository at this point in the history
  3. aya: Implement RingBuf

    This implements the userspace binding for RingBuf.
    
    Instead of streaming the samples as heap buffers, the process_ring
    function takes a callback to which we pass the event's byte region,
    roughly following [libbpf]'s API design. This avoids a copy and allows
    marking the consumer pointer in a timely manner.
    
    [libbpf]: https://github.com/libbpf/libbpf/blob/master/src/ringbuf.c
    
    Co-authored-by: William Findlay <william@williamfindlay.com>
    ishitatsuyuki and willfindlay committed Nov 5, 2022
    Configuration menu
    Copy the full SHA
    52b4f44 View commit details
    Browse the repository at this point in the history