Re: [PATCH 2/3] samples: bpf: cleanup pointer error check with libbpf

2020-06-26 Thread Daniel T. Lee
2020년 6월 27일 (토) 05:25, Andrii Nakryiko 님이 작성: > > On Fri, Jun 26, 2020 at 1:18 AM Daniel T. Lee wrote: > > > > Libbpf has its own helper function to check for errors in the bpf > > data structure (pointer). And Some codes do not use this libbbpf > > helper function and check the pointer's error d

Re: [PATCH 2/3] samples: bpf: cleanup pointer error check with libbpf

2020-06-26 Thread Andrii Nakryiko
On Fri, Jun 26, 2020 at 1:18 AM Daniel T. Lee wrote: > > Libbpf has its own helper function to check for errors in the bpf > data structure (pointer). And Some codes do not use this libbbpf > helper function and check the pointer's error directly. > > This commit clean up the existing pointer erro

[PATCH 2/3] samples: bpf: cleanup pointer error check with libbpf

2020-06-26 Thread Daniel T. Lee
Libbpf has its own helper function to check for errors in the bpf data structure (pointer). And Some codes do not use this libbbpf helper function and check the pointer's error directly. This commit clean up the existing pointer error check logic with libbpf. Signed-off-by: Daniel T. Lee --- sa