Re: [PATCH v4 bpf-next 3/5] kbuild: build kernel module BTFs if BTF is enabled and pahole supports it

2020-11-16 Thread David Ahern
On 11/9/20 6:19 PM, Andrii Nakryiko wrote: > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > index d7a7bc3b6098..1e78faaf20a5 100644 > --- a/lib/Kconfig.debug > +++ b/lib/Kconfig.debug > @@ -274,6 +274,15 @@ config DEBUG_INFO_BTF > Turning this on expects presence of pahole tool,

Re: [PATCH v4 bpf-next 3/5] kbuild: build kernel module BTFs if BTF is enabled and pahole supports it

2020-11-16 Thread Andrii Nakryiko
On Mon, Nov 16, 2020 at 1:24 PM Jakub Kicinski wrote: > > On Mon, 16 Nov 2020 12:34:17 -0800 Andrii Nakryiko wrote: > > > This change, commit 5f9ae91f7c0d ("kbuild: Build kernel module BTFs if > > > BTF is enabled and pahole > > > supports it") currently in net-next, linux-next, etc. breaks the

Re: [PATCH v4 bpf-next 3/5] kbuild: build kernel module BTFs if BTF is enabled and pahole supports it

2020-11-16 Thread Jakub Kicinski
On Mon, 16 Nov 2020 12:34:17 -0800 Andrii Nakryiko wrote: > > This change, commit 5f9ae91f7c0d ("kbuild: Build kernel module BTFs if BTF > > is enabled and pahole > > supports it") currently in net-next, linux-next, etc. breaks the use-case > > of compiling only a specific > > kernel module

Re: [PATCH v4 bpf-next 3/5] kbuild: build kernel module BTFs if BTF is enabled and pahole supports it

2020-11-16 Thread Andrii Nakryiko
On Mon, Nov 16, 2020 at 11:55 AM Allan, Bruce W wrote: > > > -Original Message- > > From: Song Liu > > Sent: Tuesday, November 10, 2020 5:05 PM > > To: Andrii Nakryiko > > Cc: bpf ; Networking ; > > Starovoitov, Alexei ; Daniel Borkmann ; > > Kernel Team ; open list >

RE: [PATCH v4 bpf-next 3/5] kbuild: build kernel module BTFs if BTF is enabled and pahole supports it

2020-11-16 Thread Allan, Bruce W
> -Original Message- > From: Song Liu > Sent: Tuesday, November 10, 2020 5:05 PM > To: Andrii Nakryiko > Cc: bpf ; Networking ; > Starovoitov, Alexei ; Daniel Borkmann ; > Kernel Team ; open list ker...@vger.kernel.org>; raf...@kernel.org; j...@kernel.org; Arnaldo > Carvalho de Melo ;

Re: [PATCH v4 bpf-next 3/5] kbuild: build kernel module BTFs if BTF is enabled and pahole supports it

2020-11-10 Thread Song Liu
> On Nov 9, 2020, at 5:19 PM, Andrii Nakryiko wrote: [...] > SPLIT BTF > = > > $ for f in $(find . -name '*.ko'); do size -A -d $f | grep BTF | awk '{print > $2}'; done | awk '{ s += $1 } END { print s }' > 5194047 > > $ for f in $(find . -name '*.ko'); do printf "%s %d\n" $f