Re: [RESEND][PATCH v3 bpf-next] btf: expose BTF info through sysfs

2019-08-19 Thread Ilya Leoshkevich
> Am 12.08.2019 um 20:39 schrieb Andrii Nakryiko : > > @@ -92,23 +92,34 @@ vmlinux_link() > } > > # generate .BTF typeinfo from DWARF debuginfo > +# ${1} - vmlinux image > +# ${2} - file to dump raw BTF data into > gen_btf() > { > - local pahole_ver; > + local pahole_ver > + local bin

Re: [RESEND][PATCH v3 bpf-next] btf: expose BTF info through sysfs

2019-08-13 Thread Arnaldo Carvalho de Melo
Em Tue, Aug 13, 2019 at 11:08:14AM -0700, Andrii Nakryiko escreveu: > On Tue, Aug 13, 2019 at 7:20 AM Daniel Borkmann wrote: > > On 8/12/19 8:39 PM, Andrii Nakryiko wrote: > > > 3. final vmlinux image is generated by linking this object file (and > > > kallsyms, if necessary). sysfs_btf.c then

Re: [RESEND][PATCH v3 bpf-next] btf: expose BTF info through sysfs

2019-08-13 Thread Andrii Nakryiko
On Tue, Aug 13, 2019 at 7:20 AM Daniel Borkmann wrote: > > On 8/12/19 8:39 PM, Andrii Nakryiko wrote: > > Make .BTF section allocated and expose its contents through sysfs. > > > > /sys/kernel/btf directory is created to contain all the BTFs present > > inside kernel. Currently there is only kerne

Re: [RESEND][PATCH v3 bpf-next] btf: expose BTF info through sysfs

2019-08-13 Thread Daniel Borkmann
On 8/12/19 8:39 PM, Andrii Nakryiko wrote: Make .BTF section allocated and expose its contents through sysfs. /sys/kernel/btf directory is created to contain all the BTFs present inside kernel. Currently there is only kernel's main BTF, represented as /sys/kernel/btf/kernel file. Once kernel mod

[RESEND][PATCH v3 bpf-next] btf: expose BTF info through sysfs

2019-08-12 Thread Andrii Nakryiko
Make .BTF section allocated and expose its contents through sysfs. /sys/kernel/btf directory is created to contain all the BTFs present inside kernel. Currently there is only kernel's main BTF, represented as /sys/kernel/btf/kernel file. Once kernel modules' BTFs are supported, each module will ex