Re: [PATCH bpf-next] bpf: libbpf: Fix bpf_program__next() API

2018-11-16 Thread Alexei Starovoitov
On Mon, Nov 12, 2018 at 03:44:53PM -0800, Martin KaFai Lau wrote: > This patch restores the behavior in > commit eac7d84519a3 ("tools: libbpf: don't return '.text' as a program for > multi-function programs") > such that bpf_program__next() does not return pseudo programs in ".text". > > Fixes:

[PATCH bpf-next] bpf: libbpf: Fix bpf_program__next() API

2018-11-12 Thread Martin KaFai Lau
This patch restores the behavior in commit eac7d84519a3 ("tools: libbpf: don't return '.text' as a program for multi-function programs") such that bpf_program__next() does not return pseudo programs in ".text". Fixes: 0c19a9fbc9cd ("libbpf: cleanup after partial failure in bpf_object__pin")