Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/kvm/
H A Daccess_tracking_perf_test.c111 static bool is_page_idle(int page_idle_fd, uint64_t pfn) in is_page_idle() argument
113 uint64_t bits = pread_uint64(page_idle_fd, "page_idle", pfn / 64); in is_page_idle()
118 static void mark_page_idle(int page_idle_fd, uint64_t pfn) in mark_page_idle() argument
122 TEST_ASSERT(pwrite(page_idle_fd, &bits, 8, 8 * (pfn / 64)) == 8, in mark_page_idle()
135 int page_idle_fd; in mark_vcpu_memory_idle() local
142 page_idle_fd = open("/sys/kernel/mm/page_idle/bitmap", O_RDWR); in mark_vcpu_memory_idle()
143 TEST_ASSERT(page_idle_fd > 0, "Failed to open page_idle."); in mark_vcpu_memory_idle()
157 if (is_page_idle(page_idle_fd, pfn)) { in mark_vcpu_memory_idle()
162 mark_page_idle(page_idle_fd, pfn); in mark_vcpu_memory_idle()
197 close(page_idle_fd); in mark_vcpu_memory_idle()
[all …]
/linux/tools/mm/
H A Dpage-types.c188 static int page_idle_fd = -1; variable
592 len = pwrite(page_idle_fd, &buf, 8, 8 * (off / 64)); in mark_page_idle()
1348 page_idle_fd = checked_open(SYS_KERNEL_MM_PAGE_IDLE, O_RDWR); in main()
1388 if (page_idle_fd >= 0) in main()
1389 close(page_idle_fd); in main()