public inbox for bpf@vger.kernel.org
 help / color / mirror / Atom feed
* pahole: soliciting naming suggestion for struct btf rename
@ 2019-02-14  5:43 Andrii Nakryiko
  2019-02-14 12:47 ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 14+ messages in thread
From: Andrii Nakryiko @ 2019-02-14  5:43 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo, Alexei Starovoitov, Yonghong Song,
	Martin Lau, bpf, dwarves

Hi folks,

I'm working on adding btf__dedup() support to pahole when doing DWARF
to BTF conversion, which requires usage of libbpf from pahole. I've
already added libbpf as a submodule and pahole now reuses btf.h header
with all the btf struct definitions. Next step is actually using
btf__dedup().

The problem with that is that both libbpf and pahole define their own
incompatible versions of struct btf, which causes a lot of naming
conflicts when I'm trying to use libbpf along those structs. Pahole
has it's own internal library centered around struct btf with lots of
useful methods to manipulate BTF data. My intent is to migrate most of
that functionality (e.g., pretty-printing and BTF types construction)
into libbpf, so maybe in the future pahole won't need it's own struct
btf, but for now I'd like to avoid blocking on that.

So to make progress I'll need to rename pahole's struct btf into
something else. And I've been struggling to come up with good succinct
name. The best I've got so far is btf_info, but I can't say I'm too
happy with it. So consider this email a solicitation for naming
suggestion. Keep in mind, that all the pahole's functions of the form
btf__xxx will be renamed as well for consistency. If you like
btf_info, let me know as well, I'll just stick with it.


-- Andrii

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

end of thread, other threads:[~2019-02-18 12:44 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-14  5:43 pahole: soliciting naming suggestion for struct btf rename Andrii Nakryiko
2019-02-14 12:47 ` Arnaldo Carvalho de Melo
2019-02-14 13:11   ` Arnaldo Carvalho de Melo
2019-02-14 13:20     ` Arnaldo Carvalho de Melo
2019-02-14 14:01       ` Arnaldo Carvalho de Melo
2019-02-15  4:37         ` Andrii Nakryiko
2019-02-15 17:15           ` Arnaldo Carvalho de Melo
2019-02-15 17:25             ` Andrii Nakryiko
2019-02-15 17:43               ` Arnaldo Carvalho de Melo
2019-02-15 17:17   ` Alexei Starovoitov
2019-02-15 17:25     ` Arnaldo Carvalho de Melo
2019-02-15 18:47       ` Alexei Starovoitov
2019-02-15 20:21         ` Daniel Borkmann
2019-02-18 12:44           ` Arnaldo Carvalho de Melo

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