Open chengshuyi opened 1 year ago
/assign
This part seems complicated. I'll see if the libbpf can provide a method to construct a bpf_program instance to facilitate our loading of the eBPF program.
[1] https://lore.kernel.org/bpf/686fce03-cee7-c268-8bfc-ce49230210b9@linux.alibaba.com/T/#u
The following steps may be involved:
For details, please refer to the logic of Libbpf processing. The functions that may be involved in libbpf include bpf_objectelf_collect (collecting elf information, such as eBPF program instructions, map information, relocation information, etc.) and bpf_objectrelocate_data (mainly relocating map information, that is, the map's fd )