projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2a6258
)
libbpf: Add enum64 support for bpf linking
author
Yonghong Song
<yhs@fb.com>
Tue, 7 Jun 2022 06:26:42 +0000
(23:26 -0700)
committer
Alexei Starovoitov
<ast@kernel.org>
Tue, 7 Jun 2022 17:20:43 +0000
(10:20 -0700)
Add BTF_KIND_ENUM64 support for bpf linking, which is
very similar to BTF_KIND_ENUM.
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Yonghong Song <yhs@fb.com>
Link:
https://lore.kernel.org/r/20220607062642.3721494-1-yhs@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/lib/bpf/linker.c
patch
|
blob
|
history
diff --git
a/tools/lib/bpf/linker.c
b/tools/lib/bpf/linker.c
index 85c0fddf55d12147437270f0ee49fcd3463df844..4ac02c28e152ad2cecbb59dba8bc14fd034e6102 100644
(file)
--- a/
tools/lib/bpf/linker.c
+++ b/
tools/lib/bpf/linker.c
@@
-1335,6
+1335,7
@@
recur:
case BTF_KIND_STRUCT:
case BTF_KIND_UNION:
case BTF_KIND_ENUM:
+ case BTF_KIND_ENUM64:
case BTF_KIND_FWD:
case BTF_KIND_FUNC:
case BTF_KIND_VAR:
@@
-1357,6
+1358,7
@@
recur:
case BTF_KIND_INT:
case BTF_KIND_FLOAT:
case BTF_KIND_ENUM:
+ case BTF_KIND_ENUM64:
/* ignore encoding for int and enum values for enum */
if (t1->size != t2->size) {
pr_warn("global '%s': incompatible %s '%s' size %u and %u\n",