Re: [PATCH bpf-next 04/10] libbpf: auto-detect btf_id of raw_tracepoint

2019-10-08 Thread Alexei Starovoitov
On 10/7/19 4:41 PM, Andrii Nakryiko wrote: > On Fri, Oct 4, 2019 at 10:04 PM Alexei Starovoitov wrote: >> >> For raw tracepoint program types libbpf will try to find >> btf_id of raw tracepoint in vmlinux's BTF. >> It's a responsiblity of bpf program author to annotate the program >> with SEC("raw

Re: [PATCH bpf-next 04/10] libbpf: auto-detect btf_id of raw_tracepoint

2019-10-07 Thread Andrii Nakryiko
On Fri, Oct 4, 2019 at 10:04 PM Alexei Starovoitov wrote: > > For raw tracepoint program types libbpf will try to find > btf_id of raw tracepoint in vmlinux's BTF. > It's a responsiblity of bpf program author to annotate the program > with SEC("raw_tracepoint/name") where "name" is a valid raw tra

[PATCH bpf-next 04/10] libbpf: auto-detect btf_id of raw_tracepoint

2019-10-04 Thread Alexei Starovoitov
For raw tracepoint program types libbpf will try to find btf_id of raw tracepoint in vmlinux's BTF. It's a responsiblity of bpf program author to annotate the program with SEC("raw_tracepoint/name") where "name" is a valid raw tracepoint. If "name" is indeed a valid raw tracepoint then in-kernel BT