Home
last modified time | relevance | path

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

/tools/testing/selftests/vm/
Dtranshuge-stress.c28 int pagemap_fd; variable
46 if (pread(pagemap_fd, ent, sizeof(ent), in allocate_transhuge()
84 pagemap_fd = open("/proc/self/pagemap", O_RDONLY); in main()
85 if (pagemap_fd < 0) in main()
Dsplit_huge_page_test.c223 int pagemap_fd; in split_pte_mapped_thp() local
230 pagemap_fd = open(pagemap_proc, O_RDONLY); in split_pte_mapped_thp()
232 if (pagemap_fd == -1) { in split_pte_mapped_thp()
277 is_backed_by_thp(&pte_mapped[i], pagemap_fd, kpageflags_fd)) in split_pte_mapped_thp()
297 is_backed_by_thp(&pte_mapped[i], pagemap_fd, kpageflags_fd)) in split_pte_mapped_thp()
308 close(pagemap_fd); in split_pte_mapped_thp()
Duserfaultfd.c1371 int pagemap_fd; in userfaultfd_pagemap_test() local
1404 pagemap_fd = pagemap_open(); in userfaultfd_pagemap_test()
1409 value = pagemap_read_vaddr(pagemap_fd, area_dst); in userfaultfd_pagemap_test()
1423 value = pagemap_read_vaddr(pagemap_fd, area_dst); in userfaultfd_pagemap_test()
1431 value = pagemap_read_vaddr(pagemap_fd, area_dst); in userfaultfd_pagemap_test()
1436 value = pagemap_read_vaddr(pagemap_fd, area_dst); in userfaultfd_pagemap_test()
1439 close(pagemap_fd); in userfaultfd_pagemap_test()
/tools/testing/selftests/kvm/
Daccess_tracking_perf_test.c96 static uint64_t lookup_pfn(int pagemap_fd, struct kvm_vm *vm, uint64_t gva) in lookup_pfn() argument
102 entry = pread_uint64(pagemap_fd, "pagemap", hva / getpagesize()); in lookup_pfn()
138 int pagemap_fd; in mark_vcpu_memory_idle() local
147 pagemap_fd = open("/proc/self/pagemap", O_RDONLY); in mark_vcpu_memory_idle()
148 TEST_ASSERT(pagemap_fd > 0, "Failed to open pagemap."); in mark_vcpu_memory_idle()
152 uint64_t pfn = lookup_pfn(pagemap_fd, vm, gva); in mark_vcpu_memory_idle()
189 close(pagemap_fd); in mark_vcpu_memory_idle()
/tools/vm/
Dpage-types.c184 static int pagemap_fd; variable
305 return do_u64_read(pagemap_fd, "/proc/pid/pagemap", buf, index, pages); in pagemap_read()
896 pagemap_fd = checked_open(buf, O_RDONLY); in parse_pid()
1070 pagemap_fd = checked_open("/proc/self/pagemap", O_RDONLY); in walk_page_cache()
1086 close(pagemap_fd); in walk_page_cache()