Home
last modified time | relevance | path

Searched refs:nr_pages (Results 1 – 9 of 9) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/vm/
Duserfaultfd.c72 static unsigned long nr_cpus, nr_pages, nr_pages_per_cpu, page_size; variable
116 if (madvise(rel_area, nr_pages * page_size, MADV_DONTNEED)) { in release_pages()
126 if (posix_memalign(alloc_area, page_size, nr_pages * page_size)) { in allocate_area()
145 nr_pages * page_size, in release_pages()
146 nr_pages * page_size)) { in release_pages()
157 *alloc_area = mmap(NULL, nr_pages * page_size, PROT_READ | PROT_WRITE, in allocate_area()
160 nr_pages * page_size); in allocate_area()
177 if (madvise(rel_area, nr_pages * page_size, MADV_REMOVE)) { in release_pages()
187 *alloc_area = mmap(NULL, nr_pages * page_size, PROT_READ | PROT_WRITE, in allocate_area()
248 page_nr %= nr_pages; in locking_thread()
[all …]
Dtranshuge-stress.c104 int nr_succeed = 0, nr_failed = 0, nr_pages = 0; in main() local
128 nr_pages++; in main()
142 nr_succeed, nr_failed, nr_pages); in main()
/external/ltp/testcases/kernel/mem/ksm/
Dksm06.c61 static unsigned long nr_pages; variable
77 nr_pages = SAFE_STRTOUL(NULL, n_opt, 0, ULONG_MAX); in main()
79 nr_pages = 100; in main()
86 test_ksm_merge_across_nodes(nr_pages); in main()
/external/ltp/testcases/kernel/mem/lib/
Dmem.c574 void test_ksm_merge_across_nodes(unsigned long nr_pages) in test_ksm_merge_across_nodes() argument
597 length = nr_pages * pagesize; in test_ksm_merge_across_nodes()
628 nr_pages * num_nodes); in test_ksm_merge_across_nodes()
631 "%ld", nr_pages * num_nodes); in test_ksm_merge_across_nodes()
643 group_check(1, 1, nr_pages * num_nodes - 1, 0, 0, 0, in test_ksm_merge_across_nodes()
644 nr_pages * num_nodes); in test_ksm_merge_across_nodes()
651 group_check(1, num_nodes, nr_pages * num_nodes - num_nodes, in test_ksm_merge_across_nodes()
652 0, 0, 0, nr_pages * num_nodes); in test_ksm_merge_across_nodes()
/external/ltp/testcases/kernel/mem/include/
Dmem.h49 void test_ksm_merge_across_nodes(unsigned long nr_pages);
/external/syslinux/efi/
Dmain.c663 UINTN nr_pages = EFI_SIZE_TO_PAGES(size); in emalloc() local
680 if (desc->NumberOfPages < nr_pages) in emalloc()
696 nr_pages, &aligned); in emalloc()
718 UINTN nr_pages = EFI_SIZE_TO_PAGES(size); in efree() local
720 free_pages(memory, nr_pages); in efree()
/external/compiler-rt/include/sanitizer/
Dlinux_syscall_hooks.h1507 #define __sanitizer_syscall_pre_move_pages(pid, nr_pages, pages, nodes, \ argument
1509 __sanitizer_syscall_pre_impl_move_pages((long)(pid), (long)(nr_pages), \
1512 #define __sanitizer_syscall_post_move_pages(res, pid, nr_pages, pages, nodes, \ argument
1514 __sanitizer_syscall_post_impl_move_pages(res, (long)(pid), (long)(nr_pages), \
2867 void __sanitizer_syscall_pre_impl_move_pages(long pid, long nr_pages,
2870 void __sanitizer_syscall_post_impl_move_pages(long res, long pid, long nr_pages,
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_syscalls.inc2402 PRE_SYSCALL(move_pages)(long pid, long nr_pages, const void **pages,
2404 if (pages) PRE_READ(pages, nr_pages * sizeof(*pages));
2405 if (nodes) PRE_READ(nodes, nr_pages * sizeof(*nodes));
2408 POST_SYSCALL(move_pages)(long res, long pid, long nr_pages, const void **pages,
2411 if (status) POST_WRITE(status, nr_pages * sizeof(*status));
/external/valgrind/coregrind/m_syswrap/
Dsyswrap-linux.c3518 vki_pid_t, pid, unsigned long, nr_pages, const void **, pages, in PRE()