Libbpf userspace function bpf_program__autoload
Query if the program will be automatically loaded.
Definition
bool bpf_program__autoload(const struct bpf_program *prog);
Usage
If true, the program will be loaded when the BPF object is loaded. By default this value is determined by the ELF section name. Programs in ELF sections starting with ? are not autoloaded.
This value can be updated with the bpf_program__set_autoload function.
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome