Re: [PATCHv6 bpf] bpf: Move iterator functions into special init section

2020-11-11 Thread Alexei Starovoitov
On Wed, Nov 11, 2020 at 4:38 AM Arnaldo Carvalho de Melo wrote: > > Em Wed, Nov 11, 2020 at 09:37:38AM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Wed, Nov 11, 2020 at 12:26:29PM +0100, Daniel Borkmann escreveu: > > > On 11/10/20 4:40 PM, Jiri Olsa wrote: > > > > With upcoming changes to paho

Re: [PATCHv6 bpf] bpf: Move iterator functions into special init section

2020-11-11 Thread Arnaldo Carvalho de Melo
Em Wed, Nov 11, 2020 at 09:37:38AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Nov 11, 2020 at 12:26:29PM +0100, Daniel Borkmann escreveu: > > On 11/10/20 4:40 PM, Jiri Olsa wrote: > > > With upcoming changes to pahole, that change the way how and > > > which kernel functions are stored in

Re: [PATCHv6 bpf] bpf: Move iterator functions into special init section

2020-11-11 Thread Arnaldo Carvalho de Melo
Em Wed, Nov 11, 2020 at 12:26:29PM +0100, Daniel Borkmann escreveu: > On 11/10/20 4:40 PM, Jiri Olsa wrote: > > With upcoming changes to pahole, that change the way how and > > which kernel functions are stored in BTF data, we need a way > > to recognize iterator functions. > > > > Iterator functi

Re: [PATCHv6 bpf] bpf: Move iterator functions into special init section

2020-11-11 Thread Jiri Olsa
On Wed, Nov 11, 2020 at 12:26:29PM +0100, Daniel Borkmann wrote: > On 11/10/20 4:40 PM, Jiri Olsa wrote: > > With upcoming changes to pahole, that change the way how and > > which kernel functions are stored in BTF data, we need a way > > to recognize iterator functions. > > > > Iterator functions

Re: [PATCHv6 bpf] bpf: Move iterator functions into special init section

2020-11-11 Thread Daniel Borkmann
On 11/10/20 4:40 PM, Jiri Olsa wrote: With upcoming changes to pahole, that change the way how and which kernel functions are stored in BTF data, we need a way to recognize iterator functions. Iterator functions need to be in BTF data, but have no real body and are currently placed in .init.text

[PATCHv6 bpf] bpf: Move iterator functions into special init section

2020-11-10 Thread Jiri Olsa
With upcoming changes to pahole, that change the way how and which kernel functions are stored in BTF data, we need a way to recognize iterator functions. Iterator functions need to be in BTF data, but have no real body and are currently placed in .init.text section, so they are freed after kernel