Home | History | Annotate | Download | only in bpf

Lines Matching refs:map_type

29 static int create_map(int map_type, int map_flags, unsigned int size)
33 map_fd = bpf_create_map(map_type, sizeof(unsigned long long),
97 static void test_lru_sanity0(int map_type, int map_flags)
103 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type,
109 lru_map_fd = create_map(map_type, map_flags, 2 * nr_cpus);
111 lru_map_fd = create_map(map_type, map_flags, 2);
185 static void test_lru_sanity1(int map_type, int map_flags, unsigned int tgt_free)
197 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type,
206 lru_map_fd = create_map(map_type, map_flags, map_size);
261 static void test_lru_sanity2(int map_type, int map_flags, unsigned int tgt_free)
274 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type,
283 lru_map_fd = create_map(map_type, map_flags, map_size);
309 if (map_type == BPF_MAP_TYPE_LRU_PERCPU_HASH) {
368 static void test_lru_sanity3(int map_type, int map_flags, unsigned int tgt_free)
380 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type,
389 lru_map_fd = create_map(map_type, map_flags, map_size);
432 static void test_lru_sanity4(int map_type, int map_flags, unsigned int tgt_free)
439 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type,
445 lru_map_fd = create_map(map_type, map_flags,
448 lru_map_fd = create_map(map_type, map_flags, 3 * tgt_free);
509 static void test_lru_sanity5(int map_type, int map_flags)
518 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type,
521 map_fd = create_map(map_type, map_flags, 1);
556 static void test_lru_sanity6(int map_type, int map_flags, int tgt_free)
566 printf("%s (map_type:%d map_flags:0x%X): ", __func__, map_type,
574 lru_map_fd = create_map(map_type, map_flags, map_size * nr_cpus);