Re: [RFC PATCH v3 11/37] bpf tools: Iterate over ELF sections to collect information

Alexei Starovoitov
2015-05-18T18:21:27Z

On 5/17/15 3:56 AM, Wang Nan wrote:
> bpf_obj_elf_collect() is introduced to iterate over each elf sections
> to collection informations in eBPF object files. This function will
> futher enhanced to collect license, kernel version, programs, configs
> and map information.
>
> Signed-off-by: Wang Nan <wangnan0@huawei.com>
...
> + if (gelf_getshdr(scn, &sh) != &sh) {
> + pr_warning("failed to get section header"
> + " from %s\n", obj->path);

please don't wrap strings.
Here and in all other patches.