Lines Matching refs:prot

593 	int prot;  member
598 void record_pkey_malloc(void *ptr, long size, int prot) in record_pkey_malloc() argument
630 rec->prot = prot; in record_pkey_malloc()
662 static void *malloc_pkey_with_mprotect(long size, int prot, u16 pkey) in malloc_pkey_with_mprotect() argument
669 size, prot, pkey); in malloc_pkey_with_mprotect()
671 ptr = mmap(NULL, size, prot, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0); in malloc_pkey_with_mprotect()
673 ret = mprotect_pkey((void *)ptr, PAGE_SIZE, prot, pkey); in malloc_pkey_with_mprotect()
675 record_pkey_malloc(ptr, size, prot); in malloc_pkey_with_mprotect()
682 static void *malloc_pkey_anon_huge(long size, int prot, u16 pkey) in malloc_pkey_anon_huge() argument
688 size, prot, pkey); in malloc_pkey_anon_huge()
696 record_pkey_malloc(ptr, size, prot); in malloc_pkey_anon_huge()
697 mprotect_pkey(ptr, size, prot, pkey); in malloc_pkey_anon_huge()
763 static void *malloc_pkey_hugetlb(long size, int prot, u16 pkey) in malloc_pkey_hugetlb() argument
771 dprintf1("doing %s(%ld, %x, %x)\n", __func__, size, prot, pkey); in malloc_pkey_hugetlb()
776 mprotect_pkey(ptr, size, prot, pkey); in malloc_pkey_hugetlb()
778 record_pkey_malloc(ptr, size, prot); in malloc_pkey_hugetlb()
784 static void *(*pkey_malloc[])(long size, int prot, u16 pkey) = {
792 static void *malloc_pkey(long size, int prot, u16 pkey) in malloc_pkey() argument
803 ret = pkey_malloc[malloc_type](size, prot, pkey); in malloc_pkey()
818 size, prot, pkey, ret); in malloc_pkey()
1284 int prot; in test_mprotect_with_pkey_0() local
1296 prot = pkey_last_malloc_record->prot; in test_mprotect_with_pkey_0()
1299 mprotect_pkey(ptr, size, prot, 0); in test_mprotect_with_pkey_0()
1302 mprotect_pkey(ptr, size, prot, pkey); in test_mprotect_with_pkey_0()
1726 int prot = PROT_READ|PROT_WRITE; in run_tests_once() local
1738 ptr = malloc_pkey(PAGE_SIZE, prot, pkey); in run_tests_once()