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

2019-08-08 Thread Yonghong Song
On 8/8/19 10:47 AM, Andrii Nakryiko wrote: > On Wed, Aug 7, 2019 at 9:24 PM Yonghong Song wrote: >> >> >> >> On 8/7/19 5:32 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 prese

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

2019-08-08 Thread Greg KH
On Thu, Aug 08, 2019 at 10:53:44AM -0700, Andrii Nakryiko wrote: > On Wed, Aug 7, 2019 at 11:08 PM Greg KH wrote: > > > > On Thu, Aug 08, 2019 at 04:24:25AM +, Yonghong Song wrote: > > > > > > > > > On 8/7/19 5:32 PM, Andrii Nakryiko wrote: > > > > Make .BTF section allocated and expose its co

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

2019-08-08 Thread Andrii Nakryiko
On Wed, Aug 7, 2019 at 11:08 PM Greg KH wrote: > > On Thu, Aug 08, 2019 at 04:24:25AM +, Yonghong Song wrote: > > > > > > On 8/7/19 5:32 PM, Andrii Nakryiko wrote: > > > Make .BTF section allocated and expose its contents through sysfs. > > Was this original patch not on bpf@vger? I can't fin

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

2019-08-08 Thread Andrii Nakryiko
On Wed, Aug 7, 2019 at 9:24 PM Yonghong Song wrote: > > > > On 8/7/19 5:32 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: [PATCH v2 bpf-next] btf: expose BTF info through sysfs

2019-08-07 Thread Greg KH
On Thu, Aug 08, 2019 at 04:24:25AM +, Yonghong Song wrote: > > > On 8/7/19 5:32 PM, Andrii Nakryiko wrote: > > Make .BTF section allocated and expose its contents through sysfs. Was this original patch not on bpf@vger? I can't find it in my archive. Anyway... > > /sys/kernel/btf directory

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

2019-08-07 Thread Yonghong Song
On 8/7/19 5:32 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 k