android_packages_modules_Co.../staticlibs/native/bpf_headers
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Zuklie 2669e24058 Add BpfRingbuf class to wrap ringbuf access
This implements the bare minimum to read from BPF ring buffers in
userspace. The implementation uses two shared memory regions with
atomic-like access. Currently, the class only guarantees that the
element type has the same size (later can add btf support).

The alternative would be to use libbpf or bcc, but since this is a small
header-only library that seemed like it could end up being more
difficulty than it was worth.

Bug: 246985031
Test: atest libbpf_android_test
Change-Id: I7f08e76db9cb9672ef66c629bccb3db63d3c2229
2023-01-23 08:28:50 -08:00
..
include/bpf Add BpfRingbuf class to wrap ringbuf access 2023-01-23 08:28:50 -08:00
Android.bp Add skeleton BPF ring buffer integration test 2022-12-12 10:02:18 -08:00
BpfMapTest.cpp BpfMap.h - hide dangerous stuff behind #ifdef BPF_MAP_MAKE_VISIBLE_FOR_TESTING 2022-06-16 19:25:30 +00:00
BpfRingbufTest.cpp Add BpfRingbuf class to wrap ringbuf access 2023-01-23 08:28:50 -08:00
TEST_MAPPING Rename bpf_map_utils to bpf_headers 2021-12-21 16:16:20 +08:00