mbox series

[bpf,v2,0/2] libbpf: Fix BTF dump of pointer-to-array-of-struct

Message ID 20210319112554.794552-1-jean-philippe@linaro.org (mailing list archive)
Headers show
Series libbpf: Fix BTF dump of pointer-to-array-of-struct | expand

Message

Jean-Philippe Brucker March 19, 2021, 11:25 a.m. UTC
Fix an issue with the libbpf BTF dump, see patch 1 for details.

Since [v1] I added the selftest in patch 2, though I couldn't figure out
a way to make it independent from the order in which debug info is
issued by the compiler.

[v1]: https://lore.kernel.org/bpf/20210318122700.396574-1-jean-philippe@linaro.org/

Jean-Philippe Brucker (2):
  libbpf: Fix BTF dump of pointer-to-array-of-struct
  selftests/bpf: Add selftest for pointer-to-array-of-struct BTF dump

 tools/lib/bpf/btf_dump.c                                  | 2 +-
 .../selftests/bpf/progs/btf_dump_test_case_syntax.c       | 8 ++++++++
 2 files changed, 9 insertions(+), 1 deletion(-)