Re: [PATCH bpf-next v3 05/13] tools: libbpf: expose the prog type guessing from section name logic

2018-07-10 Thread Andrey Ignatov
Jakub Kicinski [Tue, 2018-07-10 14:43 -0700]: > libbpf can guess program type based on ELF section names. As libbpf > becomes more popular its association between section name strings and > types becomes more of a standard. Allow libbpf users to use the same > logic for matching strings to

[PATCH bpf-next v3 05/13] tools: libbpf: expose the prog type guessing from section name logic

2018-07-10 Thread Jakub Kicinski
libbpf can guess program type based on ELF section names. As libbpf becomes more popular its association between section name strings and types becomes more of a standard. Allow libbpf users to use the same logic for matching strings to types, e.g. when the string originates from command line.