Searched refs:page_idle_fd (Results 1 – 2 of 2) sorted by relevance
/Linux-v6.1/tools/testing/selftests/kvm/ |
D | access_tracking_perf_test.c | 113 static bool is_page_idle(int page_idle_fd, uint64_t pfn) in is_page_idle() argument 115 uint64_t bits = pread_uint64(page_idle_fd, "page_idle", pfn / 64); in is_page_idle() 120 static void mark_page_idle(int page_idle_fd, uint64_t pfn) in mark_page_idle() argument 124 TEST_ASSERT(pwrite(page_idle_fd, &bits, 8, 8 * (pfn / 64)) == 8, in mark_page_idle() 137 int page_idle_fd; in mark_vcpu_memory_idle() local 144 page_idle_fd = open("/sys/kernel/mm/page_idle/bitmap", O_RDWR); in mark_vcpu_memory_idle() 145 TEST_ASSERT(page_idle_fd > 0, "Failed to open page_idle."); in mark_vcpu_memory_idle() 159 if (is_page_idle(page_idle_fd, pfn)) { in mark_vcpu_memory_idle() 164 mark_page_idle(page_idle_fd, pfn); in mark_vcpu_memory_idle() 194 close(page_idle_fd); in mark_vcpu_memory_idle() [all …]
|
/Linux-v6.1/tools/vm/ |
D | page-types.c | 190 static int page_idle_fd = -1; variable 596 len = pwrite(page_idle_fd, &buf, 8, 8 * (off / 64)); in mark_page_idle() 1352 page_idle_fd = checked_open(SYS_KERNEL_MM_PAGE_IDLE, O_RDWR); in main() 1392 if (page_idle_fd >= 0) in main() 1393 close(page_idle_fd); in main()
|