Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
After libbpf commit 3fd6eebb2d4 ("libbpf: disassociate section handler on explicit bpf_program__set_type() call"): If user explicitly overrides programs's type with bpf_program__set_type() API call, we need to disassociate whatever SEC_DEF handler libbpf determined initially based on program's SEC() definition, as it's not goind to be valid anymore and could lead to crashes and/or confusing failures. The eBPF fentry program macro should only have the "fentry" keyword.
- Loading branch information