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(-) -- 2.17.1