Re: [RFC PATCH v11 bpf-next 08/14] bpf: Add btf_struct_ids_match function

2020-08-10 Thread Andrii Nakryiko
On Sun, Aug 9, 2020 at 8:05 AM Jiri Olsa wrote: > > Adding btf_struct_ids_match function to check if given address provided > by BTF object + offset is also address of another nested BTF object. > > This allows to pass an argument to helper, which is defined via parent > BTF object + offset, like

[RFC PATCH v11 bpf-next 08/14] bpf: Add btf_struct_ids_match function

2020-08-09 Thread Jiri Olsa
Adding btf_struct_ids_match function to check if given address provided by BTF object + offset is also address of another nested BTF object. This allows to pass an argument to helper, which is defined via parent BTF object + offset, like for bpf_d_path (added in following changes): SEC("fentry/