Re: [PATCH bpf-next 1/3] samples: bpf: Refactor xdp_monitor with libbpf

2020-10-10 Thread Daniel T. Lee
On Sat, Oct 10, 2020 at 3:17 AM Andrii Nakryiko wrote: > > On Fri, Oct 9, 2020 at 9:04 AM Daniel T. Lee wrote: > > > > To avoid confusion caused by the increasing fragmentation of the BPF > > Loader program, this commit would like to change to the libbpf loader > > instead of using the bpf_load.

Re: [PATCH bpf-next 1/3] samples: bpf: Refactor xdp_monitor with libbpf

2020-10-09 Thread Andrii Nakryiko
On Fri, Oct 9, 2020 at 9:04 AM Daniel T. Lee wrote: > > To avoid confusion caused by the increasing fragmentation of the BPF > Loader program, this commit would like to change to the libbpf loader > instead of using the bpf_load. > > Thanks to libbpf's bpf_link interface, managing the tracepoint B

[PATCH bpf-next 1/3] samples: bpf: Refactor xdp_monitor with libbpf

2020-10-09 Thread Daniel T. Lee
To avoid confusion caused by the increasing fragmentation of the BPF Loader program, this commit would like to change to the libbpf loader instead of using the bpf_load. Thanks to libbpf's bpf_link interface, managing the tracepoint BPF program is much easier. bpf_program__attach_tracepoint manage