]> 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)
commit4d8b73b4a97ed31057db05d1791bfef7867a8838
tree03c89c30dc6a6c409be6f0c73a4c0d6bcf019269
parent9bb51c0efe3208256533dd81c758922b857e999c
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