Re: [PATCH v2 net-next 3/6] tools/lib/bpf: expose bpf_program__set_type()
From: Alexei Starovoitov <hidden>
Date: 2017-04-01 05:47:12
From: Alexei Starovoitov <hidden>
Date: 2017-04-01 05:47:12
On 3/31/17 10:32 PM, Wangnan (F) wrote:
OK. Then let your patch be merged first then let me do the code cleanup.
Thanks! Once these two lib/bpf patches applied to net-next we can apply the same to tip and there will be no conflicts during the merge window. I'm also planning to fix few things later: - there is an obscure error libbpf: relocation failed: no 11 section It's printed when llvm generates access to global variables. I think we need to improve the error message to point out the actual reason of the failure, so the user can fix the program. - there is another equally obscure error libbpf: Program 'foo' contains non-map related relo data pointing to section 8 It's happening when program is compiled with -g. It's just a bug in libbpf and the fix is straightforward. so I suspect these fixes will also go into both net-next and tip.