Re: [PATCH] tools/bpf: Remove unnecessary parameter in bpf_object__probe_loading

2021-01-08 Thread Andrii Nakryiko
On Thu, Jan 7, 2021 at 6:08 PM 彭浩(Richard) wrote: > > struct bpf_object *obj is not used in bpf_object__probe_loading, so we > can remove it. > > Signed-off-by: Peng Hao > --- It causes no harm, no performance cost, and no maintenance issues. I consider eventually allowing to have a per-bpf_obje

Re: [PATCH] tools/bpf: Remove unnecessary parameter in bpf_object__probe_loading

2021-01-08 Thread Yonghong Song
On 1/7/21 6:08 PM, 彭浩(Richard) wrote: struct bpf_object *obj is not used in bpf_object__probe_loading, so we can remove it. Signed-off-by: Peng Hao Acked-by: Yonghong Song

[PATCH] tools/bpf: Remove unnecessary parameter in bpf_object__probe_loading

2021-01-07 Thread Richard
struct bpf_object *obj is not used in bpf_object__probe_loading, so we can remove it. Signed-off-by: Peng Hao --- tools/lib/bpf/libbpf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c index 313034117070..17d90779f09a 100644