Re: [PATCH bpf-next 1/2] tools: bpftool: skip type probe if name is not found

2020-07-27 Thread Song Liu
On Fri, Jul 24, 2020 at 2:07 AM Quentin Monnet wrote: > > For probing program and map types, bpftool loops on type values and uses > the relevant type name in prog_type_name[] or map_type_name[]. To ensure > the name exists, we exit from the loop if we go over the size of the > array. > > However,

[PATCH bpf-next 1/2] tools: bpftool: skip type probe if name is not found

2020-07-24 Thread Quentin Monnet
For probing program and map types, bpftool loops on type values and uses the relevant type name in prog_type_name[] or map_type_name[]. To ensure the name exists, we exit from the loop if we go over the size of the array. However, this is not enough in the case where the arrays have "holes" in the