diff options
| author | Alexei Starovoitov <[email protected]> | 2021-05-14 00:36:06 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2021-05-18 22:33:40 +0000 |
| commit | 5452fc9a17fc26816a683ab04cf1c29131ca27e4 (patch) | |
| tree | b84e4394e6ddb972af6c00f3898e42522e6bb69c /tools/lib/bpf/libbpf.c | |
| parent | bpf: Prepare bpf syscall to be used from kernel and user space. (diff) | |
| download | kernel-5452fc9a17fc26816a683ab04cf1c29131ca27e4.tar.gz kernel-5452fc9a17fc26816a683ab04cf1c29131ca27e4.zip | |
libbpf: Support for syscall program type
Trivial support for syscall program type.
Signed-off-by: Alexei Starovoitov <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
| -rw-r--r-- | tools/lib/bpf/libbpf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c index e58f51b24574..05315048dd10 100644 --- a/tools/lib/bpf/libbpf.c +++ b/tools/lib/bpf/libbpf.c @@ -8904,6 +8904,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, |
