Re: [PATCH 4/9] bpf: Allow nested BTF object to be refferenced by BTF object + offset

2020-05-14 Thread Andrii Nakryiko
On Wed, May 6, 2020 at 6:31 AM Jiri Olsa wrote: > > Adding btf_struct_address function that takes 2 BTF objects > and offset as arguments and checks wether object A is nested > in object B on given offset. > > This function is be used when checking the helper function > PTR_TO_BTF_ID arguments. If

[PATCH 4/9] bpf: Allow nested BTF object to be refferenced by BTF object + offset

2020-05-06 Thread Jiri Olsa
Adding btf_struct_address function that takes 2 BTF objects and offset as arguments and checks wether object A is nested in object B on given offset. This function is be used when checking the helper function PTR_TO_BTF_ID arguments. If the argument has an offset value, the btf_struct_address will