Searched refs:map1_fd (Results 1 – 3 of 3) sorted by relevance
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | inner_array_lookup.c | 9 int map1_fd, err; in test_inner_array_lookup() local 22 map1_fd = bpf_map__fd(skel->maps.inner_map1); in test_inner_array_lookup() 23 bpf_map_update_elem(map1_fd, &key, &val, 0); in test_inner_array_lookup() 26 bpf_map_lookup_elem(map1_fd, &key, &val); in test_inner_array_lookup()
|
H A D | btf_map_in_map.c | 25 int map1_fd, map2_fd, map3_fd, map4_fd, map5_fd, map1_id, map2_id; in test_lookup_update() local 38 map1_fd = bpf_map__fd(skel->maps.inner_map1); in test_lookup_update() 48 bpf_map_update_elem(outer_arr_fd, &key, &map1_fd, 0); in test_lookup_update() 53 bpf_map_lookup_elem(map1_fd, &key, &val); in test_lookup_update() 62 bpf_map_update_elem(outer_hash_fd, &key, &map1_fd, 0); in test_lookup_update() 66 bpf_map_lookup_elem(map1_fd, &key, &val); in test_lookup_update() 81 val = i % 2 ? map1_fd : map2_fd; in test_lookup_update()
|
H A D | bpf_iter.c | 721 int err, iter_fd, map1_fd, map2_fd, len; in test_overflow() local 737 map1_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, NULL, 4, 8, 1, NULL); in test_overflow() 738 if (!ASSERT_GE(map1_fd, 0, "bpf_map_create")) in test_overflow() 769 err = bpf_map_get_info_by_fd(map1_fd, &map_info, &map_info_len); in test_overflow() 837 close(map1_fd); in test_overflow()
|