diff options
| author | Andrey Ignatov <[email protected]> | 2020-06-19 21:11:41 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2020-06-22 20:22:58 +0000 |
| commit | a2d0d62f4d9e3546134ba08e102ca7decd4ed836 (patch) | |
| tree | 34cdbe92593917aefc88968ca043c88bfd29d53e /tools/testing/selftests/bpf/progs/test_autoload.c | |
| parent | tools/bpftool: Relicense bpftool's BPF profiler prog as dual-license GPL/BSD (diff) | |
| download | kernel-a2d0d62f4d9e3546134ba08e102ca7decd4ed836.tar.gz kernel-a2d0d62f4d9e3546134ba08e102ca7decd4ed836.zip | |
bpf: Switch btf_parse_vmlinux to btf_find_by_name_kind
btf_parse_vmlinux() implements manual search for struct bpf_ctx_convert
since at the time of implementing btf_find_by_name_kind() was not
available.
Later btf_find_by_name_kind() was introduced in 27ae7997a661 ("bpf:
Introduce BPF_PROG_TYPE_STRUCT_OPS"). It provides similar search
functionality and can be leveraged in btf_parse_vmlinux(). Do it.
Signed-off-by: Andrey Ignatov <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Acked-by: John Fastabend <[email protected]>
Acked-by: Martin KaFai Lau <[email protected]>
Link: https://lore.kernel.org/bpf/6e12d5c3e8a3d552925913ef73a695dd1bb27800.1592600985.git.rdna@fb.com
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions
