[PATCH 25/31] bpf tools: Extract and collect map names from BPF object file

2015-10-14 Thread Wang Nan
This patch collect name of map in BPF object files and saves them into 'maps' field in 'struct bpf_object'. 'bpf_object__get_map_by_name' is introduced to retrive map fd and definitions through its name. Signed-off-by: Wang Nan Signed-off-by: He Kuang Cc: Arnaldo Carvalho de Melo Cc: Alexei

[PATCH 25/31] bpf tools: Extract and collect map names from BPF object file

2015-10-14 Thread Wang Nan
This patch collect name of map in BPF object files and saves them into 'maps' field in 'struct bpf_object'. 'bpf_object__get_map_by_name' is introduced to retrive map fd and definitions through its name. Signed-off-by: Wang Nan Signed-off-by: He Kuang