Home
last modified time | relevance | path

Searched refs:prot (Results 1 – 25 of 50) sorted by relevance

12

/tools/testing/selftests/vm/
Dksm_tests.c78 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 …]
Dpkey-powerpc.h108 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()
Dprotection_keys.c635 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 …]
Dmemfd_secret.c34 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()
Dpkey-x86.h189 void *malloc_pkey_with_mprotect_subpage(long size, int prot, u16 pkey) in malloc_pkey_with_mprotect_subpage() argument
/tools/perf/trace/beauty/
Dmmap.c7 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/
Dpedit_l4port.sh130 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" \
Dmirror_gre_changes.sh70 local prot=$1; shift
77 tc filter add dev $h3 ingress pref 77 prot $prot \
Dvxlan_bridge_1d.sh506 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 \
Dsch_tbf_core.sh97 tc filter add dev $h2 ingress pref 1010 prot 802.1q \
99 tc filter add dev $h2 ingress pref 1011 prot 802.1q \
Dpedit_dsfield.sh158 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 \
Dgre_inner_v4_multipath.sh155 tc filter add dev $ul32 ingress pref 111 prot 802.1Q \
157 tc filter add dev $ul32 ingress pref 222 prot 802.1Q \
Dgre_multipath.sh136 tc filter add dev $ul2 ingress pref 111 prot 802.1Q \
138 tc filter add dev $ul2 ingress pref 222 prot 802.1Q \
Dmirror_gre_lib.sh64 tc filter add dev $h3 ingress pref 77 prot 802.1q \
Dgre_inner_v6_multipath.sh155 tc filter add dev $ul32 ingress pref 111 prot 802.1Q \
157 tc filter add dev $ul32 ingress pref 222 prot 802.1Q \
Dip6gre_inner_v4_multipath.sh154 tc filter add dev $ul32 ingress pref 111 prot 802.1Q \
156 tc filter add dev $ul32 ingress pref 222 prot 802.1Q \
Dip6gre_inner_v6_multipath.sh154 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/
Dload.c220 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()
Dmain.h12 unsigned int prot; member
/tools/testing/selftests/powerpc/include/
Dpkeys.h63 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/
Dmmap.h40 int prot; member
/tools/perf/util/
Dmap.h27 u32 prot; member
110 u64 pgoff, struct dso_id *id, u32 prot, u32 flags,
Devent.c303 (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/
Dtc_police_scale.sh44 prot ipv6 \
Dtc_flower_scale.sh78 prot ipv6 \

12