Netdev List
 help / color / mirror / Atom feed
* [PATCH bpf 0/2] bpf: btf: allow typedef func_proto
@ 2019-01-30  0:38 Yonghong Song
  2019-01-30  0:38 ` [PATCH bpf 1/2] " Yonghong Song
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Yonghong Song @ 2019-01-30  0:38 UTC (permalink / raw)
  To: netdev; +Cc: Alexei Starovoitov, Daniel Borkmann, kernel-team, Yonghong Song

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-01-30  3:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-30  0:38 [PATCH bpf 0/2] bpf: btf: allow typedef func_proto Yonghong Song
2019-01-30  0:38 ` [PATCH bpf 1/2] " Yonghong Song
2019-01-30  0:38 ` [PATCH bpf 2/2] tools/bpf: fix test_btf for typedef func_proto case Yonghong Song
2019-01-30  3:18 ` [PATCH bpf 0/2] bpf: btf: allow typedef func_proto Alexei Starovoitov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox