netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Question] bpf: about a new 'tools/bpf/bpf_dwarf2btf'
@ 2018-07-25 17:23 Taeung Song
       [not found] ` <20180725175231.GA2121@redhat.com>
  0 siblings, 1 reply; 7+ messages in thread
From: Taeung Song @ 2018-07-25 17:23 UTC (permalink / raw)
  To: Daniel Borkmann, Alexei Starovoitov, Martin KaFai Lau
  Cc: Arnaldo Carvalho de Melo, netdev, linux-kernel

Hi,

Building bpf programs with .BTF section,
I thought it'd be better to convert dwarf info to .BTF by
a new tool such as 'tools/bpf/bpf_dwarf2btf' instead of pahole
in the future.

Currently for bpf binary that have .BTF section,
we need to use pahole from https://github.com/iamkafai/pahole/tree/btf
with the command line such as "pahole -J bpf_prog.o".

I think it is great but if implementing new 'bpf_dwarf2btf'
(dwarf parsing + btf encoder code written by Martin KaFai Lau on
the pahole project i.e. btf.h, btf_encoder.c, btf_encoder.h, libbtf.c, 
libbtf.h),
BPF developers would more easily use functionalities based on BTF.

What do you think about this ? Do you think this is needed ?
Or, already implementing something like this ?

If it is needed, I want to try to make 'tools/bpf/bpf_dwarf2btf'
based on the pahole code. I'd appreciate it, if you reply to this

Thanks,
Taeung

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

end of thread, other threads:[~2018-07-26  6:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-25 17:23 [Question] bpf: about a new 'tools/bpf/bpf_dwarf2btf' Taeung Song
     [not found] ` <20180725175231.GA2121@redhat.com>
2018-07-25 18:27   ` pahole + BTF was: " Taeung Song
2018-07-25 19:06     ` Daniel Borkmann
2018-07-25 19:21     ` Taeung Song
2018-07-25 20:11       ` Martin KaFai Lau
2018-07-26  0:26         ` Daniel Borkmann
2018-07-26  6:04           ` Taeung Song

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