Home
last modified time | relevance | path

Searched refs:map2_fd (Results 1 – 4 of 4) sorted by relevance

/tools/testing/selftests/bpf/prog_tests/
Dbtf_map_in_map.c58 int map1_fd, map2_fd, map3_fd, map4_fd, map5_fd, map1_id, map2_id; in test_lookup_update() local
72 map2_fd = bpf_map__fd(skel->maps.inner_map2); in test_lookup_update()
82 bpf_map_update_elem(outer_hash_fd, &key, &map2_fd, 0); in test_lookup_update()
88 bpf_map_lookup_elem(map2_fd, &key, &val); in test_lookup_update()
94 bpf_map_update_elem(outer_arr_fd, &key, &map2_fd, 0); in test_lookup_update()
101 bpf_map_lookup_elem(map2_fd, &key, &val); in test_lookup_update()
114 val = i % 2 ? map1_fd : map2_fd; in test_lookup_update()
Dbpf_iter.c429 int err, iter_fd, map1_fd, map2_fd, len; in test_overflow() local
450 map2_fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, 4, 8, 1, 0); in test_overflow()
451 if (CHECK(map2_fd < 0, "bpf_create_map", in test_overflow()
486 err = bpf_obj_get_info_by_fd(map2_fd, &map_info, &map_info_len); in test_overflow()
557 close(map2_fd); in test_overflow()
/tools/testing/selftests/bpf/
Dtest_progs.c275 int compare_map_keys(int map1_fd, int map2_fd) in compare_map_keys() argument
285 err = bpf_map_lookup_elem(map2_fd, &key, val_buf); in compare_map_keys()
290 err = bpf_map_lookup_elem(map2_fd, &next_key, val_buf); in compare_map_keys()
Dtest_progs.h207 int compare_map_keys(int map1_fd, int map2_fd);