| /tools/testing/selftests/mm/ |
| D | ksm_tests.c | 146 int prot = 0; in str_to_prot() local 200 static void *allocate_memory(void *ptr, int prot, int mapping, char data, size_t map_size) in allocate_memory() 347 static int check_ksm_merge(int merge_type, int mapping, int prot, in check_ksm_merge() 381 static int check_ksm_unmerge(int merge_type, int mapping, int prot, int timeout, size_t page_size) in check_ksm_unmerge() 421 static int check_ksm_zero_page_merge(int merge_type, int mapping, int prot, long page_count, in check_ksm_zero_page_merge() 486 static int check_ksm_numa_merge(int merge_type, int mapping, int prot, int timeout, in check_ksm_numa_merge() 550 static int ksm_merge_hugepages_time(int merge_type, int mapping, int prot, in ksm_merge_hugepages_time() 618 static int ksm_merge_time(int merge_type, int mapping, int prot, int timeout, size_t map_size) in ksm_merge_time() 659 static int ksm_unmerge_time(int merge_type, int mapping, int prot, int timeout, size_t map_size) in ksm_unmerge_time() 706 static int ksm_cow_time(int merge_type, int mapping, int prot, int timeout, size_t page_size) in ksm_cow_time() [all …]
|
| D | seal_elf.c | 33 static inline int sys_mprotect(void *ptr, size_t size, unsigned long prot) in sys_mprotect() 67 char prot[5]; in test_seal_elf() local
|
| D | protection_keys.c | 628 int prot; member 633 void record_pkey_malloc(void *ptr, long size, int prot) in record_pkey_malloc() 698 void *malloc_pkey_with_mprotect(long size, int prot, u16 pkey) in malloc_pkey_with_mprotect() 718 void *malloc_pkey_anon_huge(long size, int prot, u16 pkey) in malloc_pkey_anon_huge() 799 void *malloc_pkey_hugetlb(long size, int prot, u16 pkey) in malloc_pkey_hugetlb() 820 void *malloc_pkey_mmap_dax(long size, int prot, u16 pkey) in malloc_pkey_mmap_dax() 855 void *malloc_pkey(long size, int prot, u16 pkey) in malloc_pkey() 1346 int prot; in test_mprotect_with_pkey_0() local 1788 int prot = PROT_READ|PROT_WRITE; in run_tests_once() local
|
| 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
|
| 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()
|
| D | virtual_address_range.c | 102 char prot[6]; in validate_complete_va_space() local
|
| D | mkdirty.c | 62 static char *mmap_thp_range(int prot, char **_mmap_mem, size_t *_mmap_size) in mmap_thp_range()
|
| D | pkey-arm64.h | 87 void *malloc_pkey_with_mprotect_subpage(long size, int prot, u16 pkey) in malloc_pkey_with_mprotect_subpage()
|
| D | pkey-powerpc.h | 118 void *malloc_pkey_with_mprotect_subpage(long size, int prot, u16 pkey) in malloc_pkey_with_mprotect_subpage()
|
| D | pkey-x86.h | 158 void *malloc_pkey_with_mprotect_subpage(long size, int prot, u16 pkey) in malloc_pkey_with_mprotect_subpage()
|
| D | memfd_secret.c | 35 static const int prot = PROT_READ | PROT_WRITE; variable
|
| /tools/perf/trace/beauty/ |
| 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/ |
| D | arch-s390.h | 157 unsigned long prot; member 164 void *sys_mmap(void *addr, size_t length, int prot, int flags, int fd, in sys_mmap()
|
| D | sys.h | 679 void *sys_mmap(void *addr, size_t length, int prot, int flags, int fd, in sys_mmap() 701 void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset) in mmap()
|
| /tools/testing/selftests/landlock/ |
| D | net_test.c | 40 const struct protocol_variant prot, in set_service() 88 static bool prot_is_tcp(const struct protocol_variant *const prot) in prot_is_tcp() 95 static bool is_restricted(const struct protocol_variant *const prot, in is_restricted() 160 const struct protocol_variant *const prot) in get_binded_port() 264 const struct protocol_variant prot; in FIXTURE_VARIANT() local 967 const struct protocol_variant prot = { in FIXTURE_SETUP() local 1053 const struct protocol_variant prot = { in FIXTURE_SETUP() local 1659 const struct protocol_variant prot; in FIXTURE_VARIANT() local
|
| /tools/testing/selftests/bpf/progs/ |
| D | iters_css_task.c | 23 unsigned long reqprot, unsigned long prot, int ret) in BPF_PROG()
|
| D | lsm.c | 90 unsigned long reqprot, unsigned long prot, int ret) in BPF_PROG()
|
| D | test_bpf_cookie.c | 129 unsigned long reqprot, unsigned long prot, int ret) in BPF_PROG()
|
| /tools/lib/perf/include/internal/ |
| D | mmap.h | 42 int prot; member
|
| /tools/testing/selftests/sgx/ |
| D | main.h | 15 unsigned int prot; member
|
| /tools/testing/selftests/powerpc/include/ |
| D | pkeys.h | 63 int sys_pkey_mprotect(void *addr, size_t len, int prot, int pkey) in sys_pkey_mprotect()
|
| /tools/testing/selftests/net/ |
| D | ipv6_flowlabel.c | 217 int prot = 0; in main() local
|
| /tools/perf/util/ |
| D | map.c | 106 struct dso *dso, u32 prot, u32 flags) in map__init() 124 u32 prot, u32 flags, struct build_id *bid, in map__new()
|
| D | map.h | 33 u32 prot; in DECLARE_RC_STRUCT() local
|
| D | synthetic-events.c | 294 u32 *prot, u32 *flags, __u64 *offset, in read_proc_maps_line() 2282 __u32 prot, __u32 flags, in perf_event__synthesize_mmap2_build_id()
|