You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aya/bpf/aya-bpf/src/maps
Andrew Werner cd53baf71b 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

Additionally, integration tests are added to demonstrate the usage
of the new APIs and to ensure that they work end-to-end.

Co-authored-by: William Findlay <william@williamfindlay.com>
Co-authored-by: Tatsuyuki Ishi <ishitatsuyuki@gmail.com>
2 years ago
..
perf bpf: Replace map types to use &self, remove HashMap::get_mut 3 years ago
array.rs aya-bpf/maps: Add `get_ptr` and `get_mut_ptr` methods to Array 3 years ago
bloom_filter.rs bpf: Use `then_some` instead of `then(|| [...])` 3 years ago
hash_map.rs bpf: Use `then_some` instead of `then(|| [...])` 3 years ago
lpm_trie.rs aya-bpf/maps: Create LPMTrie with BPF_F_NO_PREALLOC 3 years ago
mod.rs aya: Implement RingBuf 2 years ago
per_cpu_array.rs bpf: Remove unnecessary Sync bound on PerCpuArray<T> 3 years ago
program_array.rs bpf: Only use never type with rust nightly 3 years ago
queue.rs bpf: Use `then_some` instead of `then(|| [...])` 3 years ago
ring_buf.rs aya: Implement RingBuf 2 years ago
sock_hash.rs cargo fmt 3 years ago
sock_map.rs bpf: Use `then_some` instead of `then(|| [...])` 3 years ago
stack.rs bpf: Use `then_some` instead of `then(|| [...])` 3 years ago
stack_trace.rs Restore previous check for bpf_get_stackid 3 years ago