diff options
author | Andrey Ignatov <[email protected]> | 2020-06-19 14:11:41 -0700 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2020-06-22 22:22:58 +0200 |
commit | a2d0d62f4d9e3546134ba08e102ca7decd4ed836 (patch) | |
tree | 34cdbe92593917aefc88968ca043c88bfd29d53e /kernel/bpf/stackmap.c | |
parent | bb8dc2695a7db4f35c1de94d212f86229bb4a5d2 (diff) |
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 'kernel/bpf/stackmap.c')
0 files changed, 0 insertions, 0 deletions