]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Fix anonymous type check in CO-RE logic
authorAndrii Nakryiko <andrii@kernel.org>
Tue, 26 Apr 2022 00:45:02 +0000 (17:45 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 26 Apr 2022 22:41:45 +0000 (15:41 -0700)
commitd80de6dc2d95bc7b3bf70ceab7242c599855c57a
tree6dc9bd603c19a8ff39165f0d6a57ef59ad15cf67
parentbe7318637fb9621553d1135c43e93d65e7ac79a0
libbpf: Fix anonymous type check in CO-RE logic

Use type name for checking whether CO-RE relocation is referring to
anonymous type. Using spec string makes no sense.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20220426004511.2691730-2-andrii@kernel.org
tools/lib/bpf/relo_core.c