Searched refs:map_ids (Results 1 – 12 of 12) sorted by relevance
/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/ |
D | metadata.c | 22 __u32 *map_ids; in prog_holds_map() local 37 map_ids = calloc(prog_info.nr_map_ids, sizeof(__u32)); in prog_holds_map() 38 if (!map_ids) in prog_holds_map() 44 prog_info.map_ids = ptr_to_u64(map_ids); in prog_holds_map() 55 if (map_ids[i] == map_info.id) { in prog_holds_map() 62 free(map_ids); in prog_holds_map()
|
D | bpf_obj_id.c | 26 __u32 map_ids[nr_iters + 1]; in test_bpf_obj_id() local 113 prog_infos[i].map_ids = ptr_to_u64(map_ids + i); in test_bpf_obj_id() 136 *(int *)(long)prog_infos[i].map_ids != map_infos[i].id || in test_bpf_obj_id() 155 *(int *)(long)prog_infos[i].map_ids, map_infos[i].id, in test_bpf_obj_id() 228 saved_map_id = *(int *)((long)prog_infos[i].map_ids); in test_bpf_obj_id() 229 prog_info.map_ids = prog_infos[i].map_ids; in test_bpf_obj_id() 236 *(int *)(long)prog_info.map_ids != saved_map_id, in test_bpf_obj_id() 241 *(int *)(long)prog_info.map_ids, saved_map_id); in test_bpf_obj_id()
|
/Linux-v5.10/tools/testing/selftests/bpf/ |
D | test_skb_cgroup_id_user.c | 84 __u32 map_ids[1]; in get_map_fd_by_prog_id() local 95 info.map_ids = (__u64) (unsigned long) map_ids; in get_map_fd_by_prog_id() 107 map_fd = bpf_map_get_fd_by_id(map_ids[0]); in get_map_fd_by_prog_id() 109 log_err("Failed to get fd by map id %d", map_ids[0]); in get_map_fd_by_prog_id()
|
D | test_tcp_check_syncookie_user.c | 85 __u32 map_ids[1]; in get_map_fd_by_prog_id() local 96 info.map_ids = (__u64)(unsigned long)map_ids; in get_map_fd_by_prog_id() 110 map_fd = bpf_map_get_fd_by_id(map_ids[0]); in get_map_fd_by_prog_id() 112 log_err("Failed to get fd by map id %d", map_ids[0]); in get_map_fd_by_prog_id()
|
/Linux-v5.10/tools/lib/bpf/ |
D | xsk.c | 506 __u32 i, *map_ids, num_maps, prog_len = sizeof(struct bpf_prog_info); in xsk_lookup_bpf_maps() local 519 map_ids = calloc(prog_info.nr_map_ids, sizeof(*map_ids)); in xsk_lookup_bpf_maps() 520 if (!map_ids) in xsk_lookup_bpf_maps() 525 prog_info.map_ids = (__u64)(unsigned long)map_ids; in xsk_lookup_bpf_maps() 534 fd = bpf_map_get_fd_by_id(map_ids[i]); in xsk_lookup_bpf_maps() 557 free(map_ids); in xsk_lookup_bpf_maps()
|
D | libbpf.c | 10349 offsetof(struct bpf_prog_info, map_ids),
|
/Linux-v5.10/tools/bpf/bpftool/ |
D | prog.c | 132 __u32 map_ids[num_maps]; in show_prog_maps() local 137 info.map_ids = ptr_to_u64(map_ids); in show_prog_maps() 147 jsonw_uint(json_wtr, map_ids[i]); in show_prog_maps() 152 printf("%u%s", map_ids[i], in show_prog_maps() 163 __u32 *map_ids; in find_metadata() local 179 map_ids = calloc(prog_info.nr_map_ids, sizeof(__u32)); in find_metadata() 180 if (!map_ids) in find_metadata() 186 prog_info.map_ids = ptr_to_u64(map_ids); in find_metadata() 194 map_fd = bpf_map_get_fd_by_id(map_ids[i]); in find_metadata() 233 free(map_ids); in find_metadata()
|
/Linux-v5.10/tools/bpf/bpftool/Documentation/ |
D | bpftool-prog.rst | 234 xlated 528B jited 370B memlock 4096B map_ids 10 254 "map_ids": [10 316 xlated 488B jited 336B memlock 4096B map_ids 7
|
D | bpftool-map.rst | 238 xlated 240B jited 257B memlock 4096B map_ids 294
|
/Linux-v5.10/include/uapi/linux/ |
D | bpf.h | 4373 __aligned_u64 map_ids; member
|
/Linux-v5.10/tools/include/uapi/linux/ |
D | bpf.h | 4373 __aligned_u64 map_ids; member
|
/Linux-v5.10/kernel/bpf/ |
D | syscall.c | 3425 u32 __user *user_map_ids = u64_to_user_ptr(info.map_ids); in bpf_prog_get_info_by_fd()
|