Re: [PATCH bpf-next v2 15/20] bpf: support variable length array in tracing programs

2020-05-06 Thread Andrii Nakryiko
On Sun, May 3, 2020 at 11:27 PM Yonghong Song wrote: > > In /proc/net/ipv6_route, we have > struct fib6_info { > struct fib6_table *fib6_table; > ... > struct fib6_nh fib6_nh[0]; > } > struct fib6_nh { > struct fib_nh_common nh_common; > struct rt6_info **rt6i_pcpu; >

[PATCH bpf-next v2 15/20] bpf: support variable length array in tracing programs

2020-05-03 Thread Yonghong Song
In /proc/net/ipv6_route, we have struct fib6_info { struct fib6_table *fib6_table; ... struct fib6_nh fib6_nh[0]; } struct fib6_nh { struct fib_nh_common nh_common; struct rt6_info **rt6i_pcpu; struct rt6_exception_bucket *rt6i_exception_bucket; }; struct fib_nh_co