Home
last modified time | relevance | path

Searched refs:prot_flag (Results 1 – 2 of 2) sorted by relevance

/tools/testing/selftests/arm64/mte/
Dmte_common_util.c124 int prot_flag, map_flag; in __mte_allocate_memory_range() local
135 prot_flag = PROT_READ | PROT_WRITE; in __mte_allocate_memory_range()
137 prot_flag |= PROT_MTE; in __mte_allocate_memory_range()
144 ptr = mmap(NULL, entire_size, prot_flag, map_flag, fd, 0); in __mte_allocate_memory_range()
150 if (mprotect(ptr, entire_size, prot_flag | PROT_MTE)) { in __mte_allocate_memory_range()
Dcheck_mmap_options.c134 int run, prot_flag, result, fd, map_size; in check_clear_prot_mte_flag() local
137 prot_flag = PROT_READ | PROT_WRITE; in check_clear_prot_mte_flag()
148 if (mprotect(map_ptr, map_size, prot_flag)) { in check_clear_prot_mte_flag()
171 if (mprotect(map_ptr, map_size, prot_flag)) { in check_clear_prot_mte_flag()