Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/kvm/lib/
H A Duserfaultfd_util.c102 struct uffd_desc *uffd_setup_demand_paging(int uffd_mode, useconds_t delay, in uffd_setup_demand_paging()
107 struct uffd_desc *uffd_desc; in uffd_setup_demand_paging() local
119 uffd_desc = malloc(sizeof(struct uffd_desc)); in uffd_setup_demand_paging()
120 TEST_ASSERT(uffd_desc, "Failed to malloc uffd descriptor"); in uffd_setup_demand_paging()
122 uffd_desc->pipefds = calloc(sizeof(int), num_readers); in uffd_setup_demand_paging()
123 TEST_ASSERT(uffd_desc->pipefds, "Failed to alloc pipes"); in uffd_setup_demand_paging()
125 uffd_desc->readers = calloc(sizeof(pthread_t), num_readers); in uffd_setup_demand_paging()
126 TEST_ASSERT(uffd_desc->readers, "Failed to alloc reader threads"); in uffd_setup_demand_paging()
128 uffd_desc->reader_args = calloc(sizeof(struct uffd_reader_args), num_readers); in uffd_setup_demand_paging()
129 TEST_ASSERT(uffd_desc->reader_args, "Failed to alloc reader_args"); in uffd_setup_demand_paging()
[all …]
/linux/tools/testing/selftests/kvm/include/
H A Duserfaultfd_util.h26 struct uffd_desc { struct
35 struct uffd_desc *uffd_setup_demand_paging(int uffd_mode, useconds_t delay, argument
40 void uffd_stop_demand_paging(struct uffd_desc *uffd);
/linux/tools/testing/selftests/kvm/
H A Ddemand_paging_test.c156 struct uffd_desc **uffd_descs = NULL; in run_test()
187 uffd_descs = malloc(num_uffds * sizeof(struct uffd_desc *)); in run_test()
/linux/tools/testing/selftests/kvm/aarch64/
H A Dpage_fault_test.c364 struct uffd_desc **pt_uffd, struct uffd_desc **data_uffd) in setup_uffd()
387 static void free_uffd(struct test_desc *test, struct uffd_desc *pt_uffd, in free_uffd()
388 struct uffd_desc *data_uffd) in free_uffd()
703 struct uffd_desc *pt_uffd, *data_uffd; in run_test()