mirror of
https://github.com/netdata/libbpf.git
synced 2026-03-25 02:39:39 +08:00
libbpf: Support for syscall program type
Trivial support for syscall program type. Signed-off-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20210514003623.28033-5-alexei.starovoitov@gmail.com
This commit is contained in:
committed by
Andrii Nakryiko
parent
007709011e
commit
34eb4fb3f1
@@ -8907,6 +8907,8 @@ static const struct bpf_sec_def section_defs[] = {
|
||||
.expected_attach_type = BPF_TRACE_ITER,
|
||||
.is_attach_btf = true,
|
||||
.attach_fn = attach_iter),
|
||||
SEC_DEF("syscall", SYSCALL,
|
||||
.is_sleepable = true),
|
||||
BPF_EAPROG_SEC("xdp_devmap/", BPF_PROG_TYPE_XDP,
|
||||
BPF_XDP_DEVMAP),
|
||||
BPF_EAPROG_SEC("xdp_cpumap/", BPF_PROG_TYPE_XDP,
|
||||
|
||||
Reference in New Issue
Block a user