Home
last modified time | relevance | path

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

/Linux-v6.6/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 serial_test_bpf_obj_id()
135 prog_infos[i].nr_map_ids != 1 || in serial_test_bpf_obj_id()
154 prog_infos[i].nr_map_ids, 1, in serial_test_bpf_obj_id()
219 prog_info.nr_map_ids = 1; in serial_test_bpf_obj_id()
230 prog_info.nr_map_ids = 2; in serial_test_bpf_obj_id()
Dtp_attach_query.c51 prog_info.nr_map_ids = 0; in serial_test_tp_attach_query()
/Linux-v6.6/tools/testing/selftests/bpf/
Dxdp_synproxy.c291 .nr_map_ids = 8, in syncookie_open_bpf_maps()
303 if (prog_info.nr_map_ids < 2) { in syncookie_open_bpf_maps()
305 prog_info.nr_map_ids); in syncookie_open_bpf_maps()
310 for (i = 0; i < prog_info.nr_map_ids; i++) { in syncookie_open_bpf_maps()
Dtest_skb_cgroup_id_user.c93 info.nr_map_ids = 1; in get_map_fd_by_prog_id()
101 if (!info.nr_map_ids) { in get_map_fd_by_prog_id()
Dtest_tcp_check_syncookie_user.c96 info.nr_map_ids = 1; in get_map_fd_by_prog_id()
104 if (!info.nr_map_ids) { in get_map_fd_by_prog_id()
/Linux-v6.6/tools/bpf/bpftool/
Dprog.c198 info.nr_map_ids = num_maps; in show_prog_maps()
202 if (err || !info.nr_map_ids) in show_prog_maps()
208 for (i = 0; i < info.nr_map_ids; i++) in show_prog_maps()
213 for (i = 0; i < info.nr_map_ids; i++) in show_prog_maps()
215 i == info.nr_map_ids - 1 ? "" : ","); in show_prog_maps()
238 if (!prog_info.nr_map_ids) in find_metadata()
241 map_ids = calloc(prog_info.nr_map_ids, sizeof(__u32)); in find_metadata()
245 nr_maps = prog_info.nr_map_ids; in find_metadata()
247 prog_info.nr_map_ids = nr_maps; in find_metadata()
255 for (i = 0; i < prog_info.nr_map_ids; i++) { in find_metadata()
[all …]
/Linux-v6.6/tools/perf/util/
Dbpf-utils.c36 offsetof(struct bpf_prog_info, nr_map_ids),
/Linux-v6.6/tools/include/uapi/linux/
Dbpf.h6406 __u32 nr_map_ids; member
/Linux-v6.6/include/uapi/linux/
Dbpf.h6406 __u32 nr_map_ids; member
/Linux-v6.6/kernel/bpf/
Dsyscall.c4302 ulen = info.nr_map_ids; in bpf_prog_get_info_by_fd()
4303 info.nr_map_ids = prog->aux->used_map_cnt; in bpf_prog_get_info_by_fd()
4304 ulen = min_t(u32, info.nr_map_ids, ulen); in bpf_prog_get_info_by_fd()