Re: [PATCH 05/11] bpf: Remove btf_id helpers resolving

2020-06-19 Thread Jiri Olsa
On Thu, Jun 18, 2020 at 06:10:29PM -0700, Andrii Nakryiko wrote: > On Tue, Jun 16, 2020 at 3:06 AM Jiri Olsa wrote: > > > > Now when we moved the helpers btf_id into .BTF_ids section, > > we can remove the code that resolve those IDs in runtime. > > > > Signed-off-by: Jiri Olsa > > --- > > Nice!

Re: [PATCH 05/11] bpf: Remove btf_id helpers resolving

2020-06-18 Thread Andrii Nakryiko
On Tue, Jun 16, 2020 at 3:06 AM Jiri Olsa wrote: > > Now when we moved the helpers btf_id into .BTF_ids section, > we can remove the code that resolve those IDs in runtime. > > Signed-off-by: Jiri Olsa > --- Nice! :) BTW, have you looked at bpf_ctx_convert stuff? Would we be able to replace it

[PATCH 05/11] bpf: Remove btf_id helpers resolving

2020-06-16 Thread Jiri Olsa
Now when we moved the helpers btf_id into .BTF_ids section, we can remove the code that resolve those IDs in runtime. Signed-off-by: Jiri Olsa --- kernel/bpf/btf.c | 88 +++- 1 file changed, 4 insertions(+), 84 deletions(-) diff --git a/kernel/bpf/btf