Re: [PATCH v3 bpf-next 05/11] libbpf: auto-detect btf_id of BTF-based raw_tracepoints

2019-10-16 Thread Andrii Nakryiko
On Wed, Oct 16, 2019 at 4:14 AM Alexei Starovoitov wrote: > > It's a responsiblity of bpf program author to annotate the program > with SEC("tp_btf/name") where "name" is a valid raw tracepoint. > The libbpf will try to find "name" in vmlinux BTF and error out > in case vmlinux BTF is not availabl

[PATCH v3 bpf-next 05/11] libbpf: auto-detect btf_id of BTF-based raw_tracepoints

2019-10-15 Thread Alexei Starovoitov
It's a responsiblity of bpf program author to annotate the program with SEC("tp_btf/name") where "name" is a valid raw tracepoint. The libbpf will try to find "name" in vmlinux BTF and error out in case vmlinux BTF is not available or "name" is not found. If "name" is indeed a valid raw tracepoint