* Call BPF system call * * @param[in] cmd * BPF command for program loading, map creation, map entry update, etc * * @param[in] attr * System call attributes relevant to system call command * * @param[in] size * size of attr parameter * * @return * -1 if BPF system call failed, 0 otherwise */
| 87 | * -1 if BPF system call failed, 0 otherwise |
| 88 | */ |
| 89 | static inline int sys_bpf(enum bpf_cmd cmd, union bpf_attr *attr, |
| 90 | unsigned int size) |
| 91 | { |
| 92 | return syscall(__NR_bpf, cmd, attr, size); |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * Load BPF instructions to kernel |
no test coverage detected