Home
last modified time | relevance | path

Searched refs:pages (Results 1 – 25 of 25) sorted by relevance

/tools/testing/scatterlist/
Dmain.c8 static void set_pages(struct page **pages, const unsigned *array, unsigned num) in set_pages() argument
14 pages[i] = (struct page *)(unsigned long) in set_pages()
56 struct page *pages[MAX_PAGES]; in main() local
60 set_pages(pages, test->pfn, test->num_pages); in main()
62 ret = __sg_alloc_table_from_pages(&st, pages, test->num_pages, in main()
/tools/vm/
Dpage-types.c221 static unsigned long pages2mb(unsigned long pages) in pages2mb() argument
223 return (pages * page_size) >> 20; in pages2mb()
275 unsigned long pages) in kpageflags_read() argument
277 return do_u64_read(kpageflags_fd, opt_kpageflags, buf, index, pages); in kpageflags_read()
282 unsigned long pages) in kpagecgroup_read() argument
285 return pages; in kpagecgroup_read()
287 return do_u64_read(kpagecgroup_fd, opt_kpageflags, buf, index, pages); in kpagecgroup_read()
292 unsigned long pages) in kpagecount_read() argument
294 return kpagecount_fd < 0 ? pages : in kpagecount_read()
296 buf, index, pages); in kpagecount_read()
[all …]
/tools/testing/selftests/powerpc/mm/
Dsubpage_prot.c96 long i, j, pages, err; in run_test() local
98 pages = size / 0x10000; in run_test()
99 map = malloc(pages * 4); in run_test()
106 for (i = 0; i < pages; i++) { in run_test()
120 for (i = 0; i < pages; i++) { in run_test()
/tools/perf/arch/s390/util/
Dauxtrace.c52 unsigned int pages; in cpumsf_recording_options() local
68 pages = DEFAULT_AUX_PAGES * factor; in cpumsf_recording_options()
69 opts->auxtrace_mmap_pages = roundup_pow_of_two(pages); in cpumsf_recording_options()
/tools/perf/util/
Devlist.c768 unsigned long pages; in perf_event_mlock_kb_in_pages() local
782 pages = (max * 1024) / page_size; in perf_event_mlock_kb_in_pages()
783 if (!is_power_of_2(pages)) in perf_event_mlock_kb_in_pages()
784 pages = rounddown_pow_of_two(pages); in perf_event_mlock_kb_in_pages()
786 return pages; in perf_event_mlock_kb_in_pages()
789 size_t evlist__mmap_size(unsigned long pages) in evlist__mmap_size() argument
791 if (pages == UINT_MAX) in evlist__mmap_size()
792 pages = perf_event_mlock_kb_in_pages(); in evlist__mmap_size()
793 else if (!is_power_of_2(pages)) in evlist__mmap_size()
796 return (pages + 1) * page_size; in evlist__mmap_size()
[all …]
Devlist.h187 int evlist__mmap_ex(struct evlist *evlist, unsigned int pages,
191 int evlist__mmap(struct evlist *evlist, unsigned int pages);
194 size_t evlist__mmap_size(unsigned long pages);
Dpython.c902 int pages = 128, overwrite = false; in pyrf_evlist__mmap() local
905 &pages, &overwrite)) in pyrf_evlist__mmap()
908 if (evlist__mmap(evlist, pages) < 0) { in pyrf_evlist__mmap()
/tools/testing/radix-tree/
Dregression1.c80 unsigned int nr_pages, struct page **pages) in find_get_pages() argument
102 pages[ret] = page; in find_get_pages()
157 struct page *pages[10]; in regression1_fn() local
159 find_get_pages(0, 10, pages); in regression1_fn()
Dregression2.c82 struct page *pages[1]; in regression2_test() local
114 radix_tree_gang_lookup_tag_slot(&mt_tree, (void ***)pages, start, end, in regression2_test()
/tools/testing/selftests/kvm/lib/
Dkvm_util.c863 uint64_t pages = (sz + vm->page_size - 1) >> vm->page_shift; in vm_vaddr_unused_gap() local
872 pgidx_start, pages)) in vm_vaddr_unused_gap()
874 pgidx_start, pages); in vm_vaddr_unused_gap()
883 pgidx_start, pages)) in vm_vaddr_unused_gap()
886 pgidx_start, pages); in vm_vaddr_unused_gap()
895 pgidx_start, pages)) { in vm_vaddr_unused_gap()
897 vm->vpages_valid, pgidx_start, pages); in vm_vaddr_unused_gap()
905 "pages: 0x%lx", pages); in vm_vaddr_unused_gap()
912 pgidx_start, pages), in vm_vaddr_unused_gap()
916 pgidx_start, pages); in vm_vaddr_unused_gap()
[all …]
/tools/virtio/linux/
Dvirtio.h62 void *pages,
/tools/perf/Documentation/
Dperf-top.txt76 -m <pages>::
77 --mmap-pages=<pages>::
78 Number of mmap data pages (must be a power of two) or size
80 size is rounded up to have nearest pages power of two value.
174 perf-report man pages for details.
Dperf-kvm.txt123 --mmap-pages=::
124 Number of mmap data pages (must be a power of two) or size
126 size is rounded up to have nearest pages power of two value.
Dperf-trace.txt102 --mmap-pages=::
103 Number of mmap data pages (must be a power of two) or size
105 size is rounded up to have nearest pages power of two value.
164 man pages for details. The ones that are most useful in 'perf trace'
167 Using this will, for the root user, bump the value of --mmap-pages to 4
169 sysctl. This is done only if the user doesn't specify a --mmap-pages value.
Dperf-kmem.txt65 default, but this option shows live (currently allocated) pages
Dperf-record.txt229 --mmap-pages=::
230 Number of mmap data pages (must be a power of two) or size
232 size is rounded up to have nearest pages power of two value.
233 Also, by adding a comma, the number of mmap pages for AUX
476 Specify minimal number of bytes that is extracted from mmap data pages and
479 The maximal allowed value is a quarter of the size of mmaped data pages.
486 chunks so extraction of larger chunks from the mmap data pages is preferable
Dintel-pt.txt458 If an unprivileged user does not specify mmap pages, the mmap pages will be
473 selects a buffer size of 16 pages i.e. 64KiB.
480 If an unprivileged user does not specify mmap pages, the mmap pages will be
490 size of 2 pages. In snapshot mode, it is the same but the minimum size is
DMakefile210 DO_INSTALL_MAN = $(warning Please install $(missing_tools) to have the man pages installed)
Dperf.data-file-format.txt594 included with the standard Linux man pages, available with "man
Dperf-config.txt495 This option can assign a tool to view manual pages when 'help'
/tools/io_uring/
DREADME25 comes with man pages for the three system calls.
/tools/memory-model/Documentation/
Dreferences.txt102 2014), 7:1–7:74 pages.
Drecipes.txt40 be full sized. Variables that straddle cachelines or pages void
/tools/perf/
Ddesign.txt285 The mmap size should be 1+2^n pages, where the first page is a meta-data page
334 The following 2^n pages are the ring-buffer which contains events of the form:
/tools/power/pm-graph/
DREADME11 Full documentation available online & in man pages