Re: [PATCH v9 bpf-next 07/14] bpf: Factor btf_struct_access function

2020-08-04 Thread Andrii Nakryiko
On Sat, Aug 1, 2020 at 10:04 AM Jiri Olsa wrote: > > Adding btf_struct_walk function that walks through the > struct type + given offset and returns following values: > > enum bpf_struct_walk_result { >/* < 0 error */ >WALK_SCALAR = 0, >WALK_PTR, >WALK_STRUCT, >

[PATCH v9 bpf-next 07/14] bpf: Factor btf_struct_access function

2020-08-01 Thread Jiri Olsa
Adding btf_struct_walk function that walks through the struct type + given offset and returns following values: enum bpf_struct_walk_result { /* < 0 error */ WALK_SCALAR = 0, WALK_PTR, WALK_STRUCT, }; WALK_SCALAR - when SCALAR_VALUE is found WALK_PTR- when poin