Home
last modified time | relevance | path

Searched refs:gup (Results 1 – 8 of 8) sorted by relevance

/Linux-v4.19/mm/
Dgup_benchmark.c19 struct gup_benchmark *gup) in __gup_benchmark_ioctl() argument
26 nr_pages = gup->size / PAGE_SIZE; in __gup_benchmark_ioctl()
32 nr = gup->nr_pages_per_call; in __gup_benchmark_ioctl()
34 for (addr = gup->addr; addr < gup->addr + gup->size; addr = next) { in __gup_benchmark_ioctl()
35 if (nr != gup->nr_pages_per_call) in __gup_benchmark_ioctl()
39 if (next > gup->addr + gup->size) { in __gup_benchmark_ioctl()
40 next = gup->addr + gup->size; in __gup_benchmark_ioctl()
44 nr = get_user_pages_fast(addr, nr, gup->flags & 1, pages + i); in __gup_benchmark_ioctl()
51 gup->delta_usec = ktime_us_delta(end_time, start_time); in __gup_benchmark_ioctl()
52 gup->size = addr - gup->addr; in __gup_benchmark_ioctl()
[all …]
DMakefile25 mmu-$(CONFIG_MMU) := gup.o highmem.o memory.o mincore.o \
/Linux-v4.19/tools/testing/selftests/vm/
Dgup_benchmark.c29 struct gup_benchmark gup; in main() local
58 gup.nr_pages_per_call = nr_pages; in main()
59 gup.flags = write; in main()
69 gup.addr = (unsigned long)p; in main()
76 for (; (unsigned long)p < gup.addr + size; p += PAGE_SIZE) in main()
80 gup.size = size; in main()
81 if (ioctl(fd, GUP_FAST_BENCHMARK, &gup)) in main()
84 printf("Time: %lld us", gup.delta_usec); in main()
85 if (gup.size != size) in main()
86 printf(", truncated (size: %lld)", gup.size); in main()
/Linux-v4.19/arch/s390/mm/
DMakefile7 obj-y += page-states.o gup.o pageattr.o mem_detect.o
/Linux-v4.19/arch/sparc/mm/
DMakefile8 obj-$(CONFIG_SPARC64) += ultra.o tlb.o tsb.o gup.o
/Linux-v4.19/arch/mips/mm/
DMakefile7 gup.o init.o mmap.o page.o page-funcs.o \
/Linux-v4.19/arch/sh/mm/
DMakefile20 mmu-$(CONFIG_MMU) := extable_$(BITS).o fault.o gup.o ioremap.o kmap.o \
/Linux-v4.19/Documentation/vm/
Dtranshuge.rst40 hugetlbfs). Most gup users will only care about the actual physical