[PATCH bpf-next 1/3] samples: bpf: refactor kprobe tracing user progs with libbpf

2020-05-12 Thread Daniel T. Lee
Currently, the kprobe BPF program attachment method for bpf_load is quite old. The implementation of bpf_load "directly" controls and manages(create, delete) the kprobe events of DEBUGFS. On the other hand, using using the libbpf automatically manages the kprobe event. (under bpf_link interface) B

Re: [PATCH bpf-next 1/3] samples: bpf: refactor kprobe tracing user progs with libbpf

2020-05-12 Thread Yonghong Song
On 5/12/20 7:43 AM, Daniel T. Lee wrote: Currently, the kprobe BPF program attachment method for bpf_load is quite old. The implementation of bpf_load "directly" controls and manages(create, delete) the kprobe events of DEBUGFS. On the other hand, using using the libbpf automatically manages t

Re: [PATCH bpf-next 1/3] samples: bpf: refactor kprobe tracing user progs with libbpf

2020-05-12 Thread Daniel T. Lee
On Wed, May 13, 2020 at 10:40 AM Yonghong Song wrote: > > > > On 5/12/20 7:43 AM, Daniel T. Lee wrote: > > Currently, the kprobe BPF program attachment method for bpf_load is > > quite old. The implementation of bpf_load "directly" controls and > > manages(create, delete) the kprobe events of DEBU

Re: [PATCH bpf-next 1/3] samples: bpf: refactor kprobe tracing user progs with libbpf

2020-05-13 Thread Yonghong Song
On 5/12/20 11:51 PM, Daniel T. Lee wrote: On Wed, May 13, 2020 at 10:40 AM Yonghong Song wrote: On 5/12/20 7:43 AM, Daniel T. Lee wrote: Currently, the kprobe BPF program attachment method for bpf_load is quite old. The implementation of bpf_load "directly" controls and manages(create, d

Re: [PATCH bpf-next 1/3] samples: bpf: refactor kprobe tracing user progs with libbpf

2020-05-15 Thread Daniel T. Lee
On Thu, May 14, 2020 at 12:29 AM Yonghong Song wrote: > > > > On 5/12/20 11:51 PM, Daniel T. Lee wrote: > > On Wed, May 13, 2020 at 10:40 AM Yonghong Song wrote: > >> > >> > >> > >> On 5/12/20 7:43 AM, Daniel T. Lee wrote: > >>> Currently, the kprobe BPF program attachment method for bpf_load is