]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Add enum64 relocation support
authorYonghong Song <yhs@fb.com>
Tue, 7 Jun 2022 06:26:47 +0000 (23:26 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 7 Jun 2022 17:20:43 +0000 (10:20 -0700)
commit9419695740bba9fb4d4d02fcebd1e6f6ea3455a1
tree2691859e6ba32633eb0db214065a8180e73a6333
parentaa68d836808e4e1fc06c60107c0cf56937e8532d
libbpf: Add enum64 relocation support

The enum64 relocation support is added. The bpf local type
could be either enum or enum64 and the remote type could be
either enum or enum64 too. The all combinations of local enum/enum64
and remote enum/enum64 are supported.

Acked-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/r/20220607062647.3721719-1-yhs@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/lib/bpf/btf.h
tools/lib/bpf/libbpf.c
tools/lib/bpf/relo_core.c