aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/libbpf.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2020-12-03 20:46:23 +0000
committerAlexei Starovoitov <[email protected]>2020-12-04 01:38:20 +0000
commita19f93cfafdf85851c69bc9f677aa4f40c53610f (patch)
tree08c46ad0d0f0a2f5ec14b0257d475edc6f719d6c /tools/lib/bpf/libbpf.c
parentbpf: Keep module's btf_data_size intact after load (diff)
downloadkernel-a19f93cfafdf85851c69bc9f677aa4f40c53610f.tar.gz
kernel-a19f93cfafdf85851c69bc9f677aa4f40c53610f.zip
libbpf: Add internal helper to load BTF data by FD
Add a btf_get_from_fd() helper, which constructs struct btf from in-kernel BTF data by FD. This is used for loading module BTFs. Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
0 files changed, 0 insertions, 0 deletions