Re: [PATCH 7/9] bpf: Compile the BTF id whitelist data in vmlinux

2020-06-02 Thread Jiri Olsa
On Mon, Jun 01, 2020 at 12:06:34PM -0700, Andrii Nakryiko wrote: > On Sun, May 31, 2020 at 8:10 AM Jiri Olsa wrote: > > > > On Fri, May 29, 2020 at 01:48:58PM -0700, Andrii Nakryiko wrote: > > > On Thu, May 28, 2020 at 10:24 AM Jiri Olsa wrote: > > > > > > > > On Thu, May 14, 2020 at 03:46:26PM -

Re: [PATCH 7/9] bpf: Compile the BTF id whitelist data in vmlinux

2020-06-01 Thread Andrii Nakryiko
On Sun, May 31, 2020 at 8:10 AM Jiri Olsa wrote: > > On Fri, May 29, 2020 at 01:48:58PM -0700, Andrii Nakryiko wrote: > > On Thu, May 28, 2020 at 10:24 AM Jiri Olsa wrote: > > > > > > On Thu, May 14, 2020 at 03:46:26PM -0700, Andrii Nakryiko wrote: > > > > > > SNIP > > > > > > > > I was thinking

Re: [PATCH 7/9] bpf: Compile the BTF id whitelist data in vmlinux

2020-05-31 Thread Jiri Olsa
On Fri, May 29, 2020 at 01:48:58PM -0700, Andrii Nakryiko wrote: > On Thu, May 28, 2020 at 10:24 AM Jiri Olsa wrote: > > > > On Thu, May 14, 2020 at 03:46:26PM -0700, Andrii Nakryiko wrote: > > > > SNIP > > > > > > I was thinking of putting the names in __init section and generate the > > > > BTF

Re: [PATCH 7/9] bpf: Compile the BTF id whitelist data in vmlinux

2020-05-29 Thread Andrii Nakryiko
On Thu, May 28, 2020 at 10:24 AM Jiri Olsa wrote: > > On Thu, May 14, 2020 at 03:46:26PM -0700, Andrii Nakryiko wrote: > > SNIP > > > > I was thinking of putting the names in __init section and generate the BTF > > > ids on kernel start, but the build time generation seemed more > > > convenient.

Re: [PATCH 7/9] bpf: Compile the BTF id whitelist data in vmlinux

2020-05-28 Thread Jiri Olsa
On Thu, May 14, 2020 at 03:46:26PM -0700, Andrii Nakryiko wrote: SNIP > > I was thinking of putting the names in __init section and generate the BTF > > ids on kernel start, but the build time generation seemed more convenient.. > > let's see the linking times with 'real size' whitelist and we ca

Re: [PATCH 7/9] bpf: Compile the BTF id whitelist data in vmlinux

2020-05-15 Thread Jiri Olsa
On Thu, May 14, 2020 at 03:46:26PM -0700, Andrii Nakryiko wrote: > On Thu, May 14, 2020 at 1:05 AM Jiri Olsa wrote: > > > > On Wed, May 13, 2020 at 11:29:40AM -0700, Alexei Starovoitov wrote: > > > > SNIP > > > > > > diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh > > > > index d09a

Re: [PATCH 7/9] bpf: Compile the BTF id whitelist data in vmlinux

2020-05-14 Thread Andrii Nakryiko
On Thu, May 14, 2020 at 1:05 AM Jiri Olsa wrote: > > On Wed, May 13, 2020 at 11:29:40AM -0700, Alexei Starovoitov wrote: > > SNIP > > > > diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh > > > index d09ab4afbda4..dee91c6bf450 100755 > > > --- a/scripts/link-vmlinux.sh > > > +++ b/scr

Re: [PATCH 7/9] bpf: Compile the BTF id whitelist data in vmlinux

2020-05-14 Thread Jiri Olsa
On Wed, May 13, 2020 at 11:29:40AM -0700, Alexei Starovoitov wrote: SNIP > > diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh > > index d09ab4afbda4..dee91c6bf450 100755 > > --- a/scripts/link-vmlinux.sh > > +++ b/scripts/link-vmlinux.sh > > @@ -130,16 +130,26 @@ gen_btf() > > i

Re: [PATCH 7/9] bpf: Compile the BTF id whitelist data in vmlinux

2020-05-13 Thread Alexei Starovoitov
On Wed, May 06, 2020 at 03:29:44PM +0200, Jiri Olsa wrote: > Squeezing in the BTF id whitelist data into vmlinux object > with BTF section compiled in, with following steps: > > - generate whitelist data with bpfwl > $ bpfwl .tmp_vmlinux.btf kernel/bpf/helpers-whitelist > ${whitelist}.c > >

[PATCH 7/9] bpf: Compile the BTF id whitelist data in vmlinux

2020-05-06 Thread Jiri Olsa
Squeezing in the BTF id whitelist data into vmlinux object with BTF section compiled in, with following steps: - generate whitelist data with bpfwl $ bpfwl .tmp_vmlinux.btf kernel/bpf/helpers-whitelist > ${whitelist}.c - compile whitelist.c $ gcc -c -o ${whitelist}.o ${whitelist}.c