android_system_bpf/loader
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Motomu Utsumi 91e5b0ba66 Fix kernel version check for map loading
Before this CL, the kernel version check occurred after all maps
were loaded by `open_file.load()`.

This CL moves the check before `open_file.load()`. It calls
`map.set_autocreate(false)` for maps incompatible with the current
kernel, preventing their auto-creation by libbpf.

Test: Verify the map is not loaded if the kver is out of range
Bug: 410982483
Change-Id: I7a102dd2ef4b24f87c6efa5a105848fddc08d501
2025-05-21 15:10:28 +09:00
..
include BpfLoader: remove unnecessary logging functionality 2024-10-04 21:10:13 +00:00
Android.bp Explicitly set bpf fuse program type for fuse/ programs 2025-05-19 13:37:50 +09:00
bpfloader.rs Fix kernel version check for map loading 2025-05-21 15:10:28 +09:00
BpfLoadTest.cpp BpfLoadTest: change some EXPECT's to ASSERT's 2024-09-17 00:04:20 +00:00
Loader.cpp Add -Wshadow to bpf_cc_defaults 2025-03-21 16:27:05 +09:00