/Linux-v6.1/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 serial_test_bpf_obj_id() local 113 prog_infos[i].map_ids = ptr_to_u64(map_ids + i); in serial_test_bpf_obj_id() 136 *(int *)(long)prog_infos[i].map_ids != map_infos[i].id || in serial_test_bpf_obj_id() 155 *(int *)(long)prog_infos[i].map_ids, map_infos[i].id, in serial_test_bpf_obj_id() 228 saved_map_id = *(int *)((long)prog_infos[i].map_ids); in serial_test_bpf_obj_id() 229 prog_info.map_ids = prog_infos[i].map_ids; in serial_test_bpf_obj_id() 236 *(int *)(long)prog_info.map_ids != saved_map_id, in serial_test_bpf_obj_id() 241 *(int *)(long)prog_info.map_ids, saved_map_id); in serial_test_bpf_obj_id()
|
/Linux-v6.1/tools/testing/selftests/bpf/ |
D | test_skb_cgroup_id_user.c | 83 __u32 map_ids[1]; in get_map_fd_by_prog_id() local 94 info.map_ids = (__u64) (unsigned long) map_ids; in get_map_fd_by_prog_id() 106 map_fd = bpf_map_get_fd_by_id(map_ids[0]); in get_map_fd_by_prog_id() 108 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 | 86 __u32 map_ids[1]; in get_map_fd_by_prog_id() local 97 info.map_ids = (__u64)(unsigned long)map_ids; in get_map_fd_by_prog_id() 111 map_fd = bpf_map_get_fd_by_id(map_ids[0]); in get_map_fd_by_prog_id() 113 log_err("Failed to get fd by map id %d", map_ids[0]); in get_map_fd_by_prog_id()
|
D | xdp_synproxy.c | 272 __u32 map_ids[8]; in syncookie_open_bpf_maps() local 289 .map_ids = (__u64)map_ids, in syncookie_open_bpf_maps() 310 err = bpf_map_get_fd_by_id(map_ids[i]); in syncookie_open_bpf_maps()
|
D | xsk.c | 610 __u32 i, *map_ids, num_maps, prog_len = sizeof(struct bpf_prog_info); in xsk_lookup_bpf_maps() local 623 map_ids = calloc(prog_info.nr_map_ids, sizeof(*map_ids)); in xsk_lookup_bpf_maps() 624 if (!map_ids) in xsk_lookup_bpf_maps() 629 prog_info.map_ids = (__u64)(unsigned long)map_ids; in xsk_lookup_bpf_maps() 638 fd = bpf_map_get_fd_by_id(map_ids[i]); in xsk_lookup_bpf_maps() 661 free(map_ids); in xsk_lookup_bpf_maps()
|
/Linux-v6.1/tools/bpf/bpftool/ |
D | prog.c | 192 __u32 map_ids[num_maps]; in show_prog_maps() local 197 info.map_ids = ptr_to_u64(map_ids); in show_prog_maps() 207 jsonw_uint(json_wtr, map_ids[i]); in show_prog_maps() 212 printf("%u%s", map_ids[i], in show_prog_maps() 223 __u32 *map_ids; in find_metadata() local 239 map_ids = calloc(prog_info.nr_map_ids, sizeof(__u32)); in find_metadata() 240 if (!map_ids) in find_metadata() 246 prog_info.map_ids = ptr_to_u64(map_ids); in find_metadata() 254 map_fd = bpf_map_get_fd_by_id(map_ids[i]); in find_metadata() 293 free(map_ids); in find_metadata()
|
/Linux-v6.1/tools/perf/util/ |
D | bpf-utils.c | 35 offsetof(struct bpf_prog_info, map_ids),
|
/Linux-v6.1/tools/bpf/bpftool/Documentation/ |
D | bpftool-prog.rst | 256 xlated 528B jited 370B memlock 4096B map_ids 10 276 "map_ids": [10 338 xlated 488B jited 336B memlock 4096B map_ids 7
|
D | bpftool-map.rst | 243 xlated 240B jited 257B memlock 4096B map_ids 294
|
/Linux-v6.1/tools/testing/selftests/mount_setattr/ |
D | mount_setattr_test.c | 1158 static int map_ids(pid_t pid, unsigned long nsid, unsigned long hostid, in map_ids() function 1227 ret = map_ids(pid, nsid, hostid, range); in get_userns_fd()
|
/Linux-v6.1/drivers/net/ethernet/ibm/ |
D | ibmvnic.h | 1022 DECLARE_BITMAP(map_ids, MAX_MAP_ID);
|
D | ibmvnic.c | 284 ltb->map_id = find_first_zero_bit(adapter->map_ids, in alloc_long_term_buff() 286 bitmap_set(adapter->map_ids, ltb->map_id, 1); in alloc_long_term_buff() 347 bitmap_clear(adapter->map_ids, ltb->map_id, 1); in free_long_term_buff() 6048 memset(&adapter->map_ids, 0, sizeof(adapter->map_ids)); in ibmvnic_probe() 6050 bitmap_set(adapter->map_ids, 0, 1); in ibmvnic_probe()
|
/Linux-v6.1/tools/include/uapi/linux/ |
D | bpf.h | 6176 __aligned_u64 map_ids; member
|
/Linux-v6.1/include/uapi/linux/ |
D | bpf.h | 6176 __aligned_u64 map_ids; member
|
/Linux-v6.1/kernel/bpf/ |
D | syscall.c | 3931 u32 __user *user_map_ids = u64_to_user_ptr(info.map_ids); in bpf_prog_get_info_by_fd()
|