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

feat: AddRingBuf() using ring_buffer__add #430

Merged
merged 1 commit into from
Jun 26, 2024

Commits on Jun 10, 2024

  1. feat: AddRingBuf() using ring_buffer__add

    libbpf provides ring_buffer__add to handle multiple ringbuf event
    callbacks
    
    - single RingBuffer object now handles multiple slots
    - implements AddRingBuf() for ring_buffer__add wrapper
    - updates ringbuffers selftest to show how to handle it
    
    Reference
    - https://github.com/torvalds/linux/blob/eb6a9339efeb6f3d2b5c86fdf2382cdc293eca2c/tools/testing/selftests/bpf/progs/test_ringbuf_multi.c
    - https://github.com/torvalds/linux/blob/eb6a9339efeb6f3d2b5c86fdf2382cdc293eca2c/tools/testing/selftests/bpf/prog_tests/ringbuf_multi.c#41
    mighty1231 committed Jun 10, 2024
    Configuration menu
    Copy the full SHA
    c0b5034 View commit details
    Browse the repository at this point in the history