Lines Matching refs:map_flags
208 static int create_map(int map_type, int map_flags, unsigned int size) in create_map() argument
213 sizeof(unsigned long long), size, map_flags); in create_map()
310 static void test_parallel_lru_dist(int map_type, int map_flags, in test_parallel_lru_dist() argument
317 map_flags); in test_parallel_lru_dist()
319 if (map_flags & BPF_F_NO_COMMON_LRU) in test_parallel_lru_dist()
320 lru_map_fd = create_map(map_type, map_flags, in test_parallel_lru_dist()
323 lru_map_fd = create_map(map_type, map_flags, in test_parallel_lru_dist()
335 static void test_lru_loss0(int map_type, int map_flags) in test_lru_loss0() argument
344 map_flags); in test_lru_loss0()
348 if (map_flags & BPF_F_NO_COMMON_LRU) in test_lru_loss0()
349 map_fd = create_map(map_type, map_flags, 900 * nr_cpus); in test_lru_loss0()
351 map_fd = create_map(map_type, map_flags, 900); in test_lru_loss0()
389 static void test_lru_loss1(int map_type, int map_flags) in test_lru_loss1() argument
396 map_flags); in test_lru_loss1()
400 if (map_flags & BPF_F_NO_COMMON_LRU) in test_lru_loss1()
401 map_fd = create_map(map_type, map_flags, 1000 * nr_cpus); in test_lru_loss1()
403 map_fd = create_map(map_type, map_flags, 1000); in test_lru_loss1()
468 static void test_parallel_lru_loss(int map_type, int map_flags, int nr_tasks) in test_parallel_lru_loss() argument
473 map_flags); in test_parallel_lru_loss()
476 if (map_flags & BPF_F_NO_COMMON_LRU) in test_parallel_lru_loss()
477 map_fd = create_map(map_type, map_flags, in test_parallel_lru_loss()
480 map_fd = create_map(map_type, map_flags, in test_parallel_lru_loss()
492 int map_flags[] = {0, BPF_F_NO_COMMON_LRU}; in main() local
524 for (f = 0; f < sizeof(map_flags) / sizeof(*map_flags); f++) { in main()
525 test_lru_loss0(BPF_MAP_TYPE_LRU_HASH, map_flags[f]); in main()
526 test_lru_loss1(BPF_MAP_TYPE_LRU_HASH, map_flags[f]); in main()
527 test_parallel_lru_loss(BPF_MAP_TYPE_LRU_HASH, map_flags[f], in main()
529 test_parallel_lru_dist(BPF_MAP_TYPE_LRU_HASH, map_flags[f], in main()