bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf v2 0/2] libbpf: Fix BTF dump of pointer-to-array-of-struct
@ 2021-03-19 11:25 Jean-Philippe Brucker
  2021-03-19 11:25 ` [PATCH bpf v2 1/2] " Jean-Philippe Brucker
  2021-03-19 11:25 ` [PATCH bpf v2 2/2] selftests/bpf: Add selftest for pointer-to-array-of-struct BTF dump Jean-Philippe Brucker
  0 siblings, 2 replies; 3+ messages in thread
From: Jean-Philippe Brucker @ 2021-03-19 11:25 UTC (permalink / raw)
  To: ast, daniel, andrii
  Cc: kafai, songliubraving, yhs, john.fastabend, kpsingh, bpf,
	Jean-Philippe Brucker

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

-- 
2.30.2


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

end of thread, other threads:[~2021-03-19 11:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-19 11:25 [PATCH bpf v2 0/2] libbpf: Fix BTF dump of pointer-to-array-of-struct Jean-Philippe Brucker
2021-03-19 11:25 ` [PATCH bpf v2 1/2] " Jean-Philippe Brucker
2021-03-19 11:25 ` [PATCH bpf v2 2/2] selftests/bpf: Add selftest for pointer-to-array-of-struct BTF dump Jean-Philippe Brucker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).