Home
last modified time | relevance | path

Searched refs:initial_prot (Results 1 – 1 of 1) sorted by relevance

/bionic/benchmarks/
Dsyscall_mm_benchmark.cpp42 int initial_prot; member
324 if (params.initial_prot & PROT_WRITE) { in MprotectBenchmark()
336 int res = mprotect(addr, params.size, params.initial_prot); in MprotectBenchmark()
348 void* addr = mmap(nullptr, params.size, params.initial_prot, MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); in MprotectBenchmarkWithMmapAnon()
362 .initial_prot = PROT_READ | PROT_WRITE, in BM_syscall_mmap_anon_mprotect_rw_to_rd()
372 .initial_prot = PROT_READ | PROT_WRITE, in BM_syscall_mmap_anon_mprotect_rw_to_none()
382 .initial_prot = PROT_READ, in BM_syscall_mmap_anon_mprotect_rd_to_none()
404 void* addr = mmap(nullptr, params.size, params.initial_prot, MAP_PRIVATE, tf.fd, 0); in MprotectBenchmarkWithMmapFile()
418 .initial_prot = PROT_READ | PROT_WRITE, in BM_syscall_mmap_file_mprotect_rw_to_rd()
428 .initial_prot = PROT_READ | PROT_WRITE, in BM_syscall_mmap_file_mprotect_rw_to_none()
[all …]