Home
last modified time | relevance | path

Searched refs:nr_map_ids (Results 1 – 9 of 9) sorted by relevance

/tools/testing/selftests/bpf/prog_tests/
Dmetadata.c37 map_ids = calloc(prog_info.nr_map_ids, sizeof(__u32)); in prog_holds_map()
41 nr_maps = prog_info.nr_map_ids; in prog_holds_map()
43 prog_info.nr_map_ids = nr_maps; in prog_holds_map()
54 for (i = 0; i < prog_info.nr_map_ids; i++) { in prog_holds_map()
Dbpf_obj_id.c114 prog_infos[i].nr_map_ids = 2; in test_bpf_obj_id()
135 prog_infos[i].nr_map_ids != 1 || in test_bpf_obj_id()
154 prog_infos[i].nr_map_ids, 1, in test_bpf_obj_id()
219 prog_info.nr_map_ids = 1; in test_bpf_obj_id()
230 prog_info.nr_map_ids = 2; in test_bpf_obj_id()
Dtp_attach_query.c46 prog_info.nr_map_ids = 0; in test_tp_attach_query()
/tools/testing/selftests/bpf/
Dtest_skb_cgroup_id_user.c94 info.nr_map_ids = 1; in get_map_fd_by_prog_id()
102 if (!info.nr_map_ids) { in get_map_fd_by_prog_id()
Dtest_tcp_check_syncookie_user.c95 info.nr_map_ids = 1; in get_map_fd_by_prog_id()
103 if (!info.nr_map_ids) { in get_map_fd_by_prog_id()
/tools/bpf/bpftool/
Dprog.c140 info.nr_map_ids = num_maps; in show_prog_maps()
144 if (err || !info.nr_map_ids) in show_prog_maps()
150 for (i = 0; i < info.nr_map_ids; i++) in show_prog_maps()
155 for (i = 0; i < info.nr_map_ids; i++) in show_prog_maps()
157 i == info.nr_map_ids - 1 ? "" : ","); in show_prog_maps()
180 if (!prog_info.nr_map_ids) in find_metadata()
183 map_ids = calloc(prog_info.nr_map_ids, sizeof(__u32)); in find_metadata()
187 nr_maps = prog_info.nr_map_ids; in find_metadata()
189 prog_info.nr_map_ids = nr_maps; in find_metadata()
197 for (i = 0; i < prog_info.nr_map_ids; i++) { in find_metadata()
[all …]
/tools/lib/bpf/
Dxsk.c624 num_maps = prog_info.nr_map_ids; in xsk_lookup_bpf_maps()
626 map_ids = calloc(prog_info.nr_map_ids, sizeof(*map_ids)); in xsk_lookup_bpf_maps()
631 prog_info.nr_map_ids = num_maps; in xsk_lookup_bpf_maps()
640 for (i = 0; i < prog_info.nr_map_ids; i++) { in xsk_lookup_bpf_maps()
Dlibbpf.c10309 offsetof(struct bpf_prog_info, nr_map_ids),
/tools/include/uapi/linux/
Dbpf.h5559 __u32 nr_map_ids; member