Re: [PATCH v3 03/30] tools lib bpf: Retrive bpf_map through offset of bpf_map_def

2016-11-26 Thread Alexei Starovoitov
On Sat, Nov 26, 2016 at 07:03:27AM +, Wang Nan wrote: > Add a new API to libbpf, caller is able to get bpf_map through the > offset of bpf_map_def to 'maps' section. > > The API will be used to help jitted perf hook code find fd of a map. > > Signed-off-by: Wang Nan ... > +struct bpf_map * >

[PATCH v3 03/30] tools lib bpf: Retrive bpf_map through offset of bpf_map_def

2016-11-25 Thread Wang Nan
Add a new API to libbpf, caller is able to get bpf_map through the offset of bpf_map_def to 'maps' section. The API will be used to help jitted perf hook code find fd of a map. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: Jiri Olsa Cc: Zefan Li Cc: pi3or...