aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorYiFei Zhu <[email protected]>2020-09-15 23:45:41 +0000
committerAlexei Starovoitov <[email protected]>2020-09-16 01:28:27 +0000
commit5d23328dccd93c47e2719cb9d2ae303c235d277d (patch)
tree9e6e301201a9a5f400125dcfa8d9cd1e9c5ec4ef /tools/bpf/bpftool/prog.c
parentbpf: Add BPF_PROG_BIND_MAP syscall (diff)
downloadkernel-5d23328dccd93c47e2719cb9d2ae303c235d277d.tar.gz
kernel-5d23328dccd93c47e2719cb9d2ae303c235d277d.zip
libbpf: Add BPF_PROG_BIND_MAP syscall and use it on .rodata section
The patch adds a simple wrapper bpf_prog_bind_map around the syscall. When the libbpf tries to load a program, it will probe the kernel for the support of this syscall and unconditionally bind .rodata section to the program. Signed-off-by: YiFei Zhu <[email protected]> Signed-off-by: Stanislav Fomichev <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Cc: YiFei Zhu <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions