Re: [PATCH v5 bpf-next 0/9] libbpf: add bpf_link and tracing attach APIs

2019-07-01 Thread Yonghong Song
On 7/1/19 4:58 PM, Andrii Nakryiko wrote: > This patchset adds the following APIs to allow attaching BPF programs to > tracing entities: > - bpf_program__attach_perf_event for attaching to any opened perf event FD, >allowing users full control; > - bpf_program__attach_kprobe for attaching to

[PATCH v5 bpf-next 0/9] libbpf: add bpf_link and tracing attach APIs

2019-07-01 Thread Andrii Nakryiko
This patchset adds the following APIs to allow attaching BPF programs to tracing entities: - bpf_program__attach_perf_event for attaching to any opened perf event FD, allowing users full control; - bpf_program__attach_kprobe for attaching to kernel probes (both entry and return probes); - bpf_p