]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Tighten BTF type ID rewriting with error checking
authorAndrii Nakryiko <andrii@kernel.org>
Fri, 23 Apr 2021 18:13:40 +0000 (11:13 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 23 Apr 2021 21:05:27 +0000 (14:05 -0700)
commitd7dd9d6cabb4089477b575e598f4ef91568aa17e
tree03c89c30dc6a6c409be6f0c73a4c0d6bcf019269
parent1e00a7597311ce45ba9876560c9cbf59a949b5c4
libbpf: Tighten BTF type ID rewriting with error checking

It should never fail, but if it does, it's better to know about this rather
than end up with nonsensical type IDs.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210423181348.1801389-11-andrii@kernel.org
tools/lib/bpf/linker.c