| /tools/testing/selftests/mm/ |
| A D | ksm_tests.c | 119 int prot = 0; in str_to_prot() local 173 static void *allocate_memory(void *ptr, int prot, int mapping, char data, size_t map_size) in allocate_memory() 320 static int check_ksm_merge(int merge_type, int mapping, int prot, in check_ksm_merge() 354 static int check_ksm_unmerge(int merge_type, int mapping, int prot, int timeout, size_t page_size) in check_ksm_unmerge() 394 static int check_ksm_zero_page_merge(int merge_type, int mapping, int prot, long page_count, in check_ksm_zero_page_merge() 459 static int check_ksm_numa_merge(int merge_type, int mapping, int prot, int timeout, in check_ksm_numa_merge() 523 static int ksm_merge_hugepages_time(int merge_type, int mapping, int prot, in ksm_merge_hugepages_time() 596 static int ksm_merge_time(int merge_type, int mapping, int prot, int timeout, size_t map_size) in ksm_merge_time() 637 static int ksm_unmerge_time(int merge_type, int mapping, int prot, int timeout, size_t map_size) in ksm_unmerge_time() 684 static int ksm_cow_time(int merge_type, int mapping, int prot, int timeout, size_t page_size) in ksm_cow_time() [all …]
|
| A D | protection_keys.c | 593 int prot; member 598 void record_pkey_malloc(void *ptr, long size, int prot) in record_pkey_malloc() 662 static void *malloc_pkey_with_mprotect(long size, int prot, u16 pkey) in malloc_pkey_with_mprotect() 682 static void *malloc_pkey_anon_huge(long size, int prot, u16 pkey) in malloc_pkey_anon_huge() 763 static void *malloc_pkey_hugetlb(long size, int prot, u16 pkey) in malloc_pkey_hugetlb() 792 static void *malloc_pkey(long size, int prot, u16 pkey) in malloc_pkey() 1284 int prot; in test_mprotect_with_pkey_0() local 1726 int prot = PROT_READ|PROT_WRITE; in run_tests_once() local
|
| A D | mseal_test.c | 22 static unsigned long get_vma_size(void *addr, int *prot) in get_vma_size() 65 static int sys_mprotect(void *ptr, size_t size, unsigned long prot) in sys_mprotect() 480 int prot; in test_seal_zero_address() local 775 int prot; in test_seal_mprotect_partial_mprotect_tail() local 1028 int prot; in test_seal_munmap_partial_across_vmas() local 1058 int prot; in test_munmap_start_freed() local 1128 int prot; in test_munmap_middle_freed() local 1546 int prot; in test_seal_merge_and_split() local
|
| A D | uffd-wp-mremap.c | 52 static void *mmap_aligned(size_t size, int prot, int flags) in mmap_aligned() 72 int prot = PROT_READ | PROT_WRITE; in alloc_one_folio() local
|
| A D | ksm_functional_tests.c | 158 static char *__mmap_and_merge_range(char val, unsigned long size, int prot, in __mmap_and_merge_range() 241 static char *mmap_and_merge_range(char val, unsigned long size, int prot, in mmap_and_merge_range()
|
| A D | virtual_address_range.c | 125 char prot[6]; in validate_complete_va_space() local
|
| A D | mkdirty.c | 62 static char *mmap_thp_range(int prot, char **_mmap_mem, size_t *_mmap_size) in mmap_thp_range()
|
| A D | pkey-arm64.h | 88 static inline void *malloc_pkey_with_mprotect_subpage(long size, int prot, u16 pkey) in malloc_pkey_with_mprotect_subpage()
|
| A D | pkey-powerpc.h | 120 static inline void *malloc_pkey_with_mprotect_subpage(long size, int prot, u16 pkey) in malloc_pkey_with_mprotect_subpage()
|
| A D | pkey-x86.h | 160 static inline void *malloc_pkey_with_mprotect_subpage(long size, int prot, u16 pkey) in malloc_pkey_with_mprotect_subpage()
|
| A D | memfd_secret.c | 35 static const int prot = PROT_READ | PROT_WRITE; variable
|
| /tools/include/nolibc/sys/ |
| A D | mman.h | 18 void *sys_mmap(void *addr, size_t length, int prot, int flags, int fd, in sys_mmap() 40 void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset) in mmap()
|
| /tools/perf/trace/beauty/ |
| A D | mmap.c | 7 static size_t mmap__scnprintf_prot(unsigned long prot, char *bf, size_t size, bool show_prefix) in mmap__scnprintf_prot() 14 unsigned long prot = arg->val; in syscall_arg__scnprintf_mmap_prot() local
|
| /tools/include/nolibc/ |
| A D | arch-s390.h | 162 unsigned long prot; member 169 void *sys_mmap(void *addr, size_t length, int prot, int flags, int fd, in sys_mmap()
|
| /tools/testing/selftests/landlock/ |
| A D | net_test.c | 41 const struct protocol_variant prot, in set_service() 89 static bool prot_is_tcp(const struct protocol_variant *const prot) in prot_is_tcp() 96 static bool is_restricted(const struct protocol_variant *const prot, in is_restricted() 161 const struct protocol_variant *const prot) in get_binded_port() 265 const struct protocol_variant prot; in FIXTURE_VARIANT() local 968 const struct protocol_variant prot = { in FIXTURE_SETUP() local 1054 const struct protocol_variant prot = { in FIXTURE_SETUP() local 1660 const struct protocol_variant prot; in FIXTURE_VARIANT() local 1906 const struct protocol_variant prot; in FIXTURE_VARIANT() local
|
| /tools/testing/selftests/bpf/progs/ |
| A D | iters_css_task.c | 23 unsigned long reqprot, unsigned long prot, int ret) in BPF_PROG()
|
| A D | lsm.c | 90 unsigned long reqprot, unsigned long prot, int ret) in BPF_PROG()
|
| A D | test_bpf_cookie.c | 129 unsigned long reqprot, unsigned long prot, int ret) in BPF_PROG()
|
| /tools/lib/perf/include/internal/ |
| A D | mmap.h | 42 int prot; member
|
| /tools/testing/selftests/sgx/ |
| A D | main.h | 15 unsigned int prot; member
|
| /tools/testing/selftests/powerpc/include/ |
| A D | pkeys.h | 74 int sys_pkey_mprotect(void *addr, size_t len, int prot, int pkey) in sys_pkey_mprotect()
|
| /tools/testing/selftests/net/ |
| A D | ipv6_flowlabel.c | 217 int prot = 0; in main() local
|
| /tools/perf/util/ |
| A D | map.c | 106 struct dso *dso, u32 prot, u32 flags) in map__init() 124 u32 prot, u32 flags, in map__new()
|
| A D | map.h | 33 u32 prot; in DECLARE_RC_STRUCT() local
|
| /tools/testing/selftests/proc/ |
| A D | proc-maps-race.c | 94 int prot; member 435 int prot = PROT_READ | PROT_WRITE; in FIXTURE_SETUP() local
|