/tools/testing/selftests/vm/ |
D | ksm_tests.c | 78 int prot = 0; in str_to_prot() local 81 prot |= PROT_READ; in str_to_prot() 83 prot |= PROT_WRITE; in str_to_prot() 85 prot |= PROT_EXEC; in str_to_prot() 87 return prot; in str_to_prot() 121 static void *allocate_memory(void *ptr, int prot, int mapping, char data, size_t map_size) in allocate_memory() argument 130 if (mprotect(map_ptr, map_size, prot)) { in allocate_memory() 242 static int check_ksm_merge(int mapping, int prot, long page_count, int timeout, size_t page_size) in check_ksm_merge() argument 253 map_ptr = allocate_memory(NULL, prot, mapping, '*', page_size * page_count); in check_ksm_merge() 273 static int check_ksm_unmerge(int mapping, int prot, int timeout, size_t page_size) in check_ksm_unmerge() argument [all …]
|
D | pkey-powerpc.h | 108 void *malloc_pkey_with_mprotect_subpage(long size, int prot, u16 pkey) in malloc_pkey_with_mprotect_subpage() argument 114 size, prot, pkey); in malloc_pkey_with_mprotect_subpage() 116 ptr = mmap(NULL, size, prot, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0); in malloc_pkey_with_mprotect_subpage() 125 ret = mprotect_pkey((void *)ptr, PAGE_SIZE, prot, pkey); in malloc_pkey_with_mprotect_subpage() 127 record_pkey_malloc(ptr, size, prot); in malloc_pkey_with_mprotect_subpage()
|
D | protection_keys.c | 635 int prot; member 640 void record_pkey_malloc(void *ptr, long size, int prot) in record_pkey_malloc() argument 672 rec->prot = prot; in record_pkey_malloc() 705 void *malloc_pkey_with_mprotect(long size, int prot, u16 pkey) in malloc_pkey_with_mprotect() argument 712 size, prot, pkey); in malloc_pkey_with_mprotect() 714 ptr = mmap(NULL, size, prot, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0); in malloc_pkey_with_mprotect() 716 ret = mprotect_pkey((void *)ptr, PAGE_SIZE, prot, pkey); in malloc_pkey_with_mprotect() 718 record_pkey_malloc(ptr, size, prot); in malloc_pkey_with_mprotect() 725 void *malloc_pkey_anon_huge(long size, int prot, u16 pkey) in malloc_pkey_anon_huge() argument 731 size, prot, pkey); in malloc_pkey_anon_huge() [all …]
|
D | memfd_secret.c | 34 static const int prot = PROT_READ | PROT_WRITE; variable 68 mem = mmap(NULL, len, prot, mode, fd, 0); in test_mlock_limit() 76 mem = mmap(NULL, len, prot, mode, fd, 0); in test_mlock_limit() 184 mem = mmap(NULL, page_size, prot, mode, fd, 0); in test_remote_access()
|
D | pkey-x86.h | 189 void *malloc_pkey_with_mprotect_subpage(long size, int prot, u16 pkey) in malloc_pkey_with_mprotect_subpage() argument
|
/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() argument 9 return strarray__scnprintf_flags(&strarray__mmap_prot, bf, size, show_prefix, prot); in mmap__scnprintf_prot() 14 unsigned long prot = arg->val; in syscall_arg__scnprintf_mmap_prot() local 16 if (prot == 0) in syscall_arg__scnprintf_mmap_prot() 19 return mmap__scnprintf_prot(prot, bf, size, arg->show_string_prefix); in syscall_arg__scnprintf_mmap_prot()
|
/tools/testing/selftests/net/forwarding/ |
D | pedit_l4port.sh | 130 tc filter add dev $h2 ingress handle 101 pref 1 prot $match_prot \ 156 local prot=$1; shift 162 do_test_pedit_l4port_one "$locus" "$prot" \ 163 "$prot $pedit_port set $port" \ 164 ip "ip_proto $prot $flower_port $port" \
|
D | mirror_gre_changes.sh | 70 local prot=$1; shift 77 tc filter add dev $h3 ingress pref 77 prot $prot \
|
D | vxlan_bridge_1d.sh | 506 tc filter add dev v1 egress pref 77 prot ip \ 509 tc filter del dev v1 egress pref 77 prot ip 518 tc filter add dev v1 egress pref 77 prot ip \ 522 tc filter del dev v1 egress pref 77 prot ip 534 tc filter add dev v1 egress pref 77 prot ip \ 538 tc filter del dev v1 egress pref 77 prot ip 631 tc filter add dev $h1 ingress pref 77 prot ip \
|
D | sch_tbf_core.sh | 97 tc filter add dev $h2 ingress pref 1010 prot 802.1q \ 99 tc filter add dev $h2 ingress pref 1011 prot 802.1q \
|
D | pedit_dsfield.sh | 158 tc filter add dev $h2 ingress handle 101 pref 1 prot $match_prot \ 231 tc filter add dev $h2 ingress handle 101 pref 1 prot ip \
|
D | gre_inner_v4_multipath.sh | 155 tc filter add dev $ul32 ingress pref 111 prot 802.1Q \ 157 tc filter add dev $ul32 ingress pref 222 prot 802.1Q \
|
D | gre_multipath.sh | 136 tc filter add dev $ul2 ingress pref 111 prot 802.1Q \ 138 tc filter add dev $ul2 ingress pref 222 prot 802.1Q \
|
D | mirror_gre_lib.sh | 64 tc filter add dev $h3 ingress pref 77 prot 802.1q \
|
D | gre_inner_v6_multipath.sh | 155 tc filter add dev $ul32 ingress pref 111 prot 802.1Q \ 157 tc filter add dev $ul32 ingress pref 222 prot 802.1Q \
|
D | ip6gre_inner_v4_multipath.sh | 154 tc filter add dev $ul32 ingress pref 111 prot 802.1Q \ 156 tc filter add dev $ul32 ingress pref 222 prot 802.1Q \
|
D | ip6gre_inner_v6_multipath.sh | 154 tc filter add dev $ul32 ingress pref 111 prot 802.1Q \ 156 tc filter add dev $ul32 ingress pref 222 prot 802.1Q \
|
/tools/testing/selftests/sgx/ |
D | load.c | 220 seg->prot = PROT_READ | PROT_WRITE; in encl_load() 223 seg->prot = (phdr->p_flags & PF_R) ? PROT_READ : 0; in encl_load() 224 seg->prot |= (phdr->p_flags & PF_W) ? PROT_WRITE : 0; in encl_load() 225 seg->prot |= (phdr->p_flags & PF_X) ? PROT_EXEC : 0; in encl_load() 226 seg->flags = (SGX_PAGE_TYPE_REG << 8) | seg->prot; in encl_load()
|
D | main.h | 12 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() argument 65 return syscall(__NR_pkey_mprotect, addr, len, prot, pkey); in sys_pkey_mprotect()
|
/tools/lib/perf/include/internal/ |
D | mmap.h | 40 int prot; member
|
/tools/perf/util/ |
D | map.h | 27 u32 prot; member 110 u64 pgoff, struct dso_id *id, u32 prot, u32 flags,
|
D | event.c | 303 (event->mmap2.prot & PROT_READ) ? 'r' : '-', in perf_event__fprintf_mmap2() 304 (event->mmap2.prot & PROT_WRITE) ? 'w' : '-', in perf_event__fprintf_mmap2() 305 (event->mmap2.prot & PROT_EXEC) ? 'x' : '-', in perf_event__fprintf_mmap2() 315 (event->mmap2.prot & PROT_READ) ? 'r' : '-', in perf_event__fprintf_mmap2() 316 (event->mmap2.prot & PROT_WRITE) ? 'w' : '-', in perf_event__fprintf_mmap2() 317 (event->mmap2.prot & PROT_EXEC) ? 'x' : '-', in perf_event__fprintf_mmap2()
|
/tools/testing/selftests/drivers/net/mlxsw/ |
D | tc_police_scale.sh | 44 prot ipv6 \
|
D | tc_flower_scale.sh | 78 prot ipv6 \
|