Home
last modified time | relevance | path

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

/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dbtf_map_in_map.c25 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()
Dbpf_iter.c641 int err, iter_fd, map1_fd, map2_fd, len; in test_overflow() local
657 map1_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, NULL, 4, 8, 1, NULL); in test_overflow()
658 if (CHECK(map1_fd < 0, "bpf_map_create", in test_overflow()
691 err = bpf_obj_get_info_by_fd(map1_fd, &map_info, &map_info_len); in test_overflow()
764 close(map1_fd); in test_overflow()
/linux-6.1.9/tools/testing/selftests/bpf/
Dtest_progs.h381 int compare_map_keys(int map1_fd, int map2_fd);
Dtest_progs.c523 int compare_map_keys(int map1_fd, int map2_fd) in compare_map_keys() argument
530 err = bpf_map_get_next_key(map1_fd, NULL, &key); in compare_map_keys()
537 while (bpf_map_get_next_key(map1_fd, &key, &next_key) == 0) { in compare_map_keys()