No description. Add one?
  • C 52.6%
  • Rust 25.3%
  • C++ 22.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Kalesh Singh 809c5f5636 bpfloader: Add support for auto-attaching programs
Introduce an 'auto_attach' flag to the ProgDesc struct.

When this flag is true, bpfloader attaches the BPF program and pins
the resulting link. This makes the attachment persist across framework
reboots, only being removed when the device itself reboots.

This simplifies client-side logic, as clients no longer need to
manage attachments or handle missed events after a restart. They can
assume the program is always attached and simply read from the maps.

This is particularly useful for collecting statistics that would
otherwise be corrupted by framework restarts and for capturing events
that occur during early boot, before client processes are running.

Bug: 419635765
Bug: 438637519
Test: manual, load and auto attach ag/35064705
Change-Id: Iffcde8972778b9152f4732e65c221eb72523ea34
Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
2025-08-15 14:34:11 -07:00
include bpf: vmlinux: Add OWNERS 2025-06-20 14:40:47 -07:00
loader bpfloader: Add support for auto-attaching programs 2025-08-15 14:34:11 -07:00
progs Move CPU time in state bpf maps to their own dir, 2025-06-26 16:31:52 +00:00
.clang-format Replace clang-format with symlink. 2019-01-18 14:26:33 -08:00
Android.bp Merge changes I89a4c1d2,I961ba203,Idc61221e into main 2025-06-23 08:09:45 -07:00
NOTICE Fix the build problem with bpf project 2018-10-16 21:17:12 -07:00
OWNERS Move OWNER reference master=>main. 2023-07-18 17:09:29 +00:00
OWNERS_bpf mark most bpf owners as LAST_RESORT_SUGGESTION 2025-02-04 14:07:42 -08:00
PREUPLOAD.cfg Fix the build problem with bpf project 2018-10-16 21:17:12 -07:00
rustfmt.toml BpfLoader-rs: add rustfmt.toml symlink 2024-11-12 23:28:40 +00:00
TEST_MAPPING TEST_MAPPING: remove libbpf_load_test 2025-05-23 03:00:08 -07:00