Home
last modified time | relevance | path

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

/tools/testing/selftests/arm64/mte/
Dcheck_mmap_options.c63 int run, result, map_size; in check_anonymous_memory_mapping() local
69 map_size = sizes[run] + OVERFLOW + UNDERFLOW; in check_anonymous_memory_mapping()
70 map_ptr = (char *)mte_allocate_memory(map_size, mem_type, mapping, false); in check_anonymous_memory_mapping()
71 if (check_allocated_memory(map_ptr, map_size, mem_type, false) != KSFT_PASS) in check_anonymous_memory_mapping()
80 munmap((void *)map_ptr, map_size); in check_anonymous_memory_mapping()
85 mte_free_memory((void *)map_ptr, map_size, mem_type, false); in check_anonymous_memory_mapping()
95 int run, fd, map_size; in check_file_memory_mapping() local
105 map_size = sizes[run] + UNDERFLOW + OVERFLOW; in check_file_memory_mapping()
106 map_ptr = (char *)mte_allocate_file_memory(map_size, mem_type, mapping, false, fd); in check_file_memory_mapping()
107 if (check_allocated_memory(map_ptr, map_size, mem_type, false) != KSFT_PASS) { in check_file_memory_mapping()
[all …]
Dcheck_child_memory.c109 int run, fd, map_size, result = KSFT_PASS; in check_child_file_mapping() local
118 map_size = sizes[run] + OVERFLOW + UNDERFLOW; in check_child_file_mapping()
119 map_ptr = (char *)mte_allocate_file_memory(map_size, mem_type, mapping, false, fd); in check_child_file_mapping()
120 if (check_allocated_memory(map_ptr, map_size, mem_type, false) != KSFT_PASS) { in check_child_file_mapping()
130 munmap((void *)map_ptr, map_size); in check_child_file_mapping()
136 munmap((void *)map_ptr, map_size); in check_child_file_mapping()
Dmte_common_util.c196 int map_size = size + range_before + range_after; in mte_allocate_file_memory_tag_range() local
204 for (index = INIT_BUFFER_SIZE; index < map_size; index += INIT_BUFFER_SIZE) in mte_allocate_file_memory_tag_range()
207 write(fd, buffer, map_size - index); in mte_allocate_file_memory_tag_range()
/tools/testing/selftests/bpf/
Dtest_lru_map.c253 unsigned int map_size; in test_lru_sanity1() local
268 map_size = tgt_free + batch_size; in test_lru_sanity1()
269 lru_map_fd = create_map(map_type, map_flags, map_size); in test_lru_sanity1()
272 expected_map_fd = create_map(BPF_MAP_TYPE_HASH, 0, map_size); in test_lru_sanity1()
330 unsigned int map_size; in test_lru_sanity2() local
345 map_size = tgt_free + batch_size; in test_lru_sanity2()
346 lru_map_fd = create_map(map_type, map_flags, map_size); in test_lru_sanity2()
349 expected_map_fd = create_map(BPF_MAP_TYPE_HASH, 0, map_size); in test_lru_sanity2()
437 unsigned int map_size; in test_lru_sanity3() local
452 map_size = tgt_free * 2; in test_lru_sanity3()
[all …]