Skip to content

bpf: btf: allow typedef func_proto

Yonghong Song netdev 1 version Applied

Status from this message: Applied, Thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2bpf: btf: allow typedef func_protokernel/bpf/btf.c+2 -10 replies
2/2tools/bpf: fix test_btf for typedef func_proto casetools/testing/selftests/bpf/test_btf.c+3 -60 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchMartin KaFai Lau
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH bpf 0/2] bpf: btf: allow typedef func_proto

The current btf implementation disallows the typedef of a func_proto type. This actually is allowed per C standard. This patch fixed btf verification to permit such types. Patch #1 fixed the kernel side and Patch #2 fixed the tools test_btf test.

Yonghong Song (2):
bpf: btf: allow typedef func_proto tools/bpf: fix test_btf for typedef func_proto case

 kernel/bpf/btf.c                       | 3 ++-
 tools/testing/selftests/bpf/test_btf.c | 9 +++------
 2 files changed, 5 insertions(+), 7 deletions(-)
Signature · 1 line
2.17.1