diff options
| author | Andrii Nakryiko <andrii@kernel.org> | 2020-12-03 23:46:23 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2020-12-04 04:38:20 +0300 |
| commit | a19f93cfafdf85851c69bc9f677aa4f40c53610f (patch) | |
| tree | 08c46ad0d0f0a2f5ec14b0257d475edc6f719d6c /tools/testing/selftests/bpf/prog_tests/autoload.c | |
| parent | 2fe8890848c799515a881502339a0a7b2b555988 (diff) | |
| download | linux-a19f93cfafdf85851c69bc9f677aa4f40c53610f.tar.xz | |
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 <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20201203204634.1325171-4-andrii@kernel.org
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions
