Lines Matching refs:map_type

28 static int create_map(int map_type, int map_flags, unsigned int size)  in create_map()  argument
33 map_fd = bpf_map_create(map_type, NULL, sizeof(unsigned long long), in create_map()
148 static void test_lru_sanity0(int map_type, int map_flags) in test_lru_sanity0() argument
154 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type, in test_lru_sanity0()
160 lru_map_fd = create_map(map_type, map_flags, 2 * nr_cpus); in test_lru_sanity0()
162 lru_map_fd = create_map(map_type, map_flags, 2); in test_lru_sanity0()
239 static void test_lru_sanity1(int map_type, int map_flags, unsigned int tgt_free) in test_lru_sanity1() argument
251 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type, in test_lru_sanity1()
260 lru_map_fd = create_map(map_type, map_flags, map_size); in test_lru_sanity1()
315 static void test_lru_sanity2(int map_type, int map_flags, unsigned int tgt_free) in test_lru_sanity2() argument
328 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type, in test_lru_sanity2()
337 lru_map_fd = create_map(map_type, map_flags, map_size); in test_lru_sanity2()
363 if (map_type == BPF_MAP_TYPE_LRU_PERCPU_HASH) { in test_lru_sanity2()
422 static void test_lru_sanity3(int map_type, int map_flags, unsigned int tgt_free) in test_lru_sanity3() argument
434 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type, in test_lru_sanity3()
443 lru_map_fd = create_map(map_type, map_flags, map_size); in test_lru_sanity3()
486 static void test_lru_sanity4(int map_type, int map_flags, unsigned int tgt_free) in test_lru_sanity4() argument
493 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type, in test_lru_sanity4()
499 lru_map_fd = create_map(map_type, map_flags, in test_lru_sanity4()
502 lru_map_fd = create_map(map_type, map_flags, 3 * tgt_free); in test_lru_sanity4()
562 static void test_lru_sanity5(int map_type, int map_flags) in test_lru_sanity5() argument
571 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type, in test_lru_sanity5()
574 map_fd = create_map(map_type, map_flags, 1); in test_lru_sanity5()
609 static void test_lru_sanity6(int map_type, int map_flags, int tgt_free) in test_lru_sanity6() argument
619 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type, in test_lru_sanity6()
627 lru_map_fd = create_map(map_type, map_flags, map_size * nr_cpus); in test_lru_sanity6()
676 static void test_lru_sanity7(int map_type, int map_flags) in test_lru_sanity7() argument
682 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type, in test_lru_sanity7()
688 lru_map_fd = create_map(map_type, map_flags, 2 * nr_cpus); in test_lru_sanity7()
690 lru_map_fd = create_map(map_type, map_flags, 2); in test_lru_sanity7()
767 static void test_lru_sanity8(int map_type, int map_flags) in test_lru_sanity8() argument
773 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type, in test_lru_sanity8()
779 lru_map_fd = create_map(map_type, map_flags, 2 * nr_cpus); in test_lru_sanity8()
781 lru_map_fd = create_map(map_type, map_flags, 2); in test_lru_sanity8()