Searched refs:gup (Results 1 - 8 of 8) sorted by relevance
/kernel/linux/linux-5.10/mm/ |
H A D | gup_benchmark.c | 68 struct gup_benchmark *gup) in __gup_benchmark_ioctl() 78 if (gup->size > ULONG_MAX) in __gup_benchmark_ioctl() 81 nr_pages = gup->size / PAGE_SIZE; in __gup_benchmark_ioctl() 92 nr = gup->nr_pages_per_call; in __gup_benchmark_ioctl() 94 for (addr = gup->addr; addr < gup->addr + gup->size; addr = next) { in __gup_benchmark_ioctl() 95 if (nr != gup->nr_pages_per_call) in __gup_benchmark_ioctl() 99 if (next > gup->addr + gup in __gup_benchmark_ioctl() 67 __gup_benchmark_ioctl(unsigned int cmd, struct gup_benchmark *gup) __gup_benchmark_ioctl() argument 170 struct gup_benchmark gup; gup_benchmark_ioctl() local [all...] |
H A D | Makefile | 55 debug.o gup.o $(mmu-y)
|
/kernel/linux/linux-6.6/mm/ |
H A D | gup_test.c | 69 static void dump_pages_test(struct gup_test *gup, struct page **pages, in dump_pages_test() argument 80 if (gup->which_pages[i] > nr_pages) { in dump_pages_test() 82 i, gup->which_pages[i]); in dump_pages_test() 83 gup->which_pages[i] = 0; in dump_pages_test() 88 index_to_dump = gup->which_pages[i]; in dump_pages_test() 93 index_to_dump, gup->addr); in dump_pages_test() 101 struct gup_test *gup) in __gup_test_ioctl() 111 if (gup->size > ULONG_MAX) in __gup_test_ioctl() 114 nr_pages = gup->size / PAGE_SIZE; in __gup_test_ioctl() 125 nr = gup in __gup_test_ioctl() 100 __gup_test_ioctl(unsigned int cmd, struct gup_test *gup) __gup_test_ioctl() argument 341 struct gup_test gup; gup_test_ioctl() local [all...] |
H A D | Makefile | 56 debug.o gup.o mmap_lock.o $(mmu-y)
|
/kernel/linux/linux-6.6/tools/testing/selftests/mm/ |
H A D | gup_test.c | 52 struct gup_test gup = *(struct gup_test *)data; in gup_thread() local 59 gup.size = size; in gup_thread() 60 if (ioctl(gup_fd, cmd, &gup)) in gup_thread() 65 cmd_to_str(cmd), gup.get_delta_usec, in gup_thread() 66 gup.put_delta_usec); in gup_thread() 67 if (gup.size != size) in gup_thread() 68 printf(", truncated (size: %lld)", gup.size); in gup_thread() 73 gup.size = size; in gup_thread() 74 if (ioctl(gup_fd, cmd, &gup)) { in gup_thread() 81 if (gup in gup_thread() 91 struct gup_test gup = { 0 }; main() local [all...] |
H A D | run_vmtests.sh | 30 tests for gup 109 # -u: gup-fast, -U: gup-basic, -a: pin-fast, -b: pin-basic, -L: pin-longterm 117 # just test partial gup when hit a huge in whatever form
|
H A D | hmm-tests.c | 1876 struct gup_test gup = { in gup_test_exec() local 1883 if (ioctl(gup_fd, cmd, &gup)) { in gup_test_exec()
|
/kernel/linux/linux-5.10/tools/testing/selftests/vm/ |
H A D | gup_benchmark.c | 40 struct gup_benchmark gup; in main() local 103 gup.nr_pages_per_call = nr_pages; in main() 105 gup.flags |= FOLL_WRITE; in main() 118 gup.addr = (unsigned long)p; in main() 125 for (; (unsigned long)p < gup.addr + size; p += PAGE_SIZE) in main() 129 gup.size = size; in main() 130 if (ioctl(fd, cmd, &gup)) { in main() 135 printf("Time: get:%lld put:%lld us", gup.get_delta_usec, in main() 136 gup.put_delta_usec); in main() 137 if (gup in main() [all...] |
Completed in 6 milliseconds