mirror of
https://github.com/eunomia-bpf/bpf-developer-tutorial.git
synced 2026-02-03 02:04:30 +08:00
This commit introduces a new BPF program that manages an arena list, allowing for the addition and deletion of elements. The following changes were made: - Added `arena_list.bpf.c` to implement BPF functions for adding and deleting elements in an arena list. - Created `arena_list.c` for user-space testing of the BPF program, including functions to sum elements and validate the arena list operations. - Introduced `bpf_arena_alloc.h` and `bpf_arena_common.h` for memory allocation and common definitions related to arena management. - Defined `bpf_arena_list.h` to establish the structure of the arena list nodes and heads. - Added `bpf_experimental.h` to include experimental BPF features and helper functions for object management. These changes enhance the BPF capabilities for managing memory in a structured way, facilitating efficient allocation and deallocation of resources.