Home
last modified time | relevance | path

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

123

/tools/testing/radix-tree/
Dregression1.c48 struct page { struct
55 static struct page *page_alloc(int index) in page_alloc() argument
57 struct page *p; in page_alloc()
58 p = malloc(sizeof(struct page)); in page_alloc()
68 struct page *p = container_of(rcu, struct page, rcu); in page_rcu_free()
74 static void page_free(struct page *p) in page_free()
80 unsigned int nr_pages, struct page **pages) in find_get_pages()
83 struct page *page; in find_get_pages() local
87 xas_for_each(&xas, page, ULONG_MAX) { in find_get_pages()
88 if (xas_retry(&xas, page)) in find_get_pages()
[all …]
Dregression2.c63 struct page { struct
67 static struct page *page_alloc(void) in page_alloc() argument
69 struct page *p; in page_alloc()
70 p = malloc(sizeof(struct page)); in page_alloc()
79 struct page *p; in regression2_test()
82 struct page *pages[1]; in regression2_test()
/tools/perf/
Dbuiltin-help.c123 static void exec_woman_emacs(const char *path, const char *page) in exec_woman_emacs() argument
131 if (asprintf(&man_page, "(woman \"%s\")", page) > 0) { in exec_woman_emacs()
139 static void exec_man_konqueror(const char *path, const char *page) in exec_man_konqueror() argument
162 if (asprintf(&man_page, "man:%s(1)", page) > 0) { in exec_man_konqueror()
170 static void exec_man_man(const char *path, const char *page) in exec_man_man() argument
174 execlp(path, "man", page, NULL); in exec_man_man()
178 static void exec_man_cmd(const char *cmd, const char *page) in exec_man_cmd() argument
182 if (asprintf(&shell_cmd, "%s %s", cmd, page) > 0) { in exec_man_cmd()
345 static void exec_viewer(const char *name, const char *page) in exec_viewer() argument
350 exec_man_man(info, page); in exec_viewer()
[all …]
Dbuiltin-kmem.c279 u64 page; member
451 cmp = data->page - pstat->page; in __page_stat__findnew_page()
465 data->page = pstat->page; in __page_stat__findnew_page()
520 data->page = pstat->page; in __page_stat__findnew_alloc()
786 u64 page; in evsel__process_page_alloc_event() local
801 page = evsel__intval(evsel, sample, "pfn"); in evsel__process_page_alloc_event()
803 page = evsel__intval(evsel, sample, "page"); in evsel__process_page_alloc_event()
808 if (!valid_page(page)) { in evsel__process_page_alloc_event()
824 this.page = page; in evsel__process_page_alloc_event()
858 u64 page; in evsel__process_page_free_event() local
[all …]
/tools/testing/scatterlist/linux/
Dmm.h45 static inline unsigned long page_to_phys(struct page *page) in page_to_phys() argument
52 #define page_to_pfn(page) ((unsigned long)(page) / PAGE_SIZE) argument
54 #define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n)) argument
79 static inline void *kmap(struct page *page) in kmap() argument
86 static inline void *kmap_atomic(struct page *page) in kmap_atomic() argument
108 static inline void free_page(unsigned long page) in free_page() argument
110 free((void *)page); in free_page()
/tools/virtio/linux/
Dscatterlist.h30 static inline void sg_assign_page(struct scatterlist *sg, struct page *page) in sg_assign_page() argument
38 BUG_ON((unsigned long) page & 0x03); in sg_assign_page()
42 sg->page_link = page_link | (unsigned long) page; in sg_assign_page()
59 static inline void sg_set_page(struct scatterlist *sg, struct page *page, in sg_set_page() argument
62 sg_assign_page(sg, page); in sg_set_page()
67 static inline struct page *sg_page(struct scatterlist *sg) in sg_page()
72 return (struct page *)((sg)->page_link & ~0x3); in sg_page()
Dkmsan.h7 inline void kmsan_handle_dma(struct page *page, size_t offset, size_t size, in kmsan_handle_dma() argument
Dkernel.h37 struct page { struct
46 #define virt_to_page(p) ((struct page *)((unsigned long)p & PAGE_MASK)) argument
/tools/testing/nvdimm/
Dpmem-dax.c24 struct page *page; in __pmem_direct_access() local
28 page = vmalloc_to_page(pmem->virt_addr + offset); in __pmem_direct_access()
30 *pfn = page_to_pfn_t(page); in __pmem_direct_access()
32 __func__, pmem, pgoff, page_to_pfn(page)); in __pmem_direct_access()
Ddax-dev.c26 struct page *page; in dax_pgoff_to_phys() local
31 page = vmalloc_to_page((void *)addr); in dax_pgoff_to_phys()
32 return PFN_PHYS(page_to_pfn(page)); in dax_pgoff_to_phys()
/tools/cgroup/
Dmemcg_slabinfo.py73 for page in list_for_each_entry('struct page', n.partial.address_of_(),
75 nr_pages += fn(page)
79 def count_free(page): argument
80 return page.objects - page.inuse
152 for page in for_each_page(prog):
154 if page.flags.value_() & PGSlab:
155 yield page
195 for page in for_each_slab_page(prog):
196 objcg_vec_raw = page.memcg_data.value_()
199 cache = page.slab_cache
/tools/perf/Documentation/
Dperf-kmem.txt45 for page). Available sort keys are 'ptr, callsite, bytes, hit,
46 pingpong, frag' for slab and 'page, callsite, bytes, hit, order,
47 migtype, gfp' for page. This option should be preceded by one of the
48 mode selection options - i.e. --slab, --page, --alloc and/or --caller.
60 --page::
61 Analyze page allocator events
64 Show live page stat. The perf kmem shows total allocation stat by
66 instead. (This option works with --page option only)
Dexamples.txt28 measured. For example the page alloc/free properties of a 'hackbench
66 well. For example the page allocations done by a 'git gc' can be
77 To check which functions generated page allocations:
119 Furthermore, call-graph sampling can be done too, of page
120 allocations - to see precisely what kind of page allocations there
157 Or you can observe the whole system's page allocations for 10
173 Or observe how fluctuating the page allocations are, via statistical
190 and check which instructions/source-code generated page allocations:
209 ( this shows that 83.42% of __GI___fork's page allocations come from
/tools/lib/traceevent/Documentation/
Dlibtraceevent-page_size.txt6 tep_get_page_size, tep_set_page_size - Get / set the size of a memory page on
21 The _tep_get_page_size()_ function returns the size of a memory page on
26 memory page on the machine, where the trace is generated.
28 The _page_size_ argument is the size of a memory page, in bytes.
32 The _tep_get_page_size()_ function returns size of the memory page, in bytes.
47 printf("The page size for this machine is %d\n", tep_get_page_size(tep));
70 *Tzvetomir Stoyanov* <tz.stoyanov@gmail.com>, author of this man page.
Dlibtraceevent-parse_head.txt6 tep_parse_header_page - Parses the data stored in the header page.
19 The _tep_parse_header_page()_ function parses the header page data from _buf_,
24 Some old kernels do not have header page info, in this case the
46 /* Failed to parse the header page */
70 *Tzvetomir Stoyanov* <tz.stoyanov@gmail.com>, author of this man page.
Dlibtraceevent-header_page.txt7 Get the data stored in the header page, in kernel context.
22 events/header_page. Old kernels do not have header page info, so default values
90 *Tzvetomir Stoyanov* <tz.stoyanov@gmail.com>, author of this man page.
/tools/power/cpupower/utils/
Dcpupower.c81 char *page; in print_man_page() local
87 page = malloc(len); in print_man_page()
88 if (!page) in print_man_page()
91 sprintf(page, "cpupower"); in print_man_page()
93 strcat(page, "-"); in print_man_page()
94 strcat(page, subpage); in print_man_page()
97 execlp("man", "man", page, NULL); in print_man_page()
/tools/testing/selftests/exec/
DMakefile31 $(CC) $(CFLAGS) $(LDFLAGS) -Wl,-z,max-page-size=0x1000 -pie -static $< -o $@
33 $(CC) $(CFLAGS) $(LDFLAGS) -Wl,-z,max-page-size=0x200000 -pie -static $< -o $@
35 $(CC) $(CFLAGS) $(LDFLAGS) -Wl,-z,max-page-size=0x1000000 -pie -static $< -o $@
/tools/testing/selftests/kvm/
Ddirty_log_test.c293 uint64_t page; in vm_dirty_log_verify() local
296 for (page = 0; page < host_num_pages; page += step) { in vm_dirty_log_verify()
297 value_ptr = host_test_mem + page * host_page_size; in vm_dirty_log_verify()
300 if (test_and_clear_bit_le(page, host_bmap_track)) { in vm_dirty_log_verify()
302 TEST_ASSERT(test_bit_le(page, bmap), in vm_dirty_log_verify()
305 page); in vm_dirty_log_verify()
308 if (test_and_clear_bit_le(page, bmap)) { in vm_dirty_log_verify()
319 page, *value_ptr, iteration); in vm_dirty_log_verify()
344 page, *value_ptr, iteration); in vm_dirty_log_verify()
351 set_bit_le(page, host_bmap_track); in vm_dirty_log_verify()
/tools/vm/
DMakefile6 TARGETS=page-types slabinfo page_owner_sort
25 $(RM) page-types slabinfo page_owner_sort
D.gitignore3 page-types
/tools/testing/selftests/powerpc/mm/
Dsubpage_prot.c68 static inline void check_faulted(void *addr, long page, long subpage, int write) in check_faulted() argument
70 int want_fault = (subpage == ((page + 3) % 16)); in check_faulted()
73 want_fault |= (subpage == ((page + 1) % 16)); in check_faulted()
77 addr, page, subpage, write, in check_faulted()
/tools/testing/scatterlist/
Dmain.c17 static void set_pages(struct page **pages, const unsigned *array, unsigned num) in set_pages()
23 pages[i] = (struct page *)(unsigned long) in set_pages()
80 struct page *pages[MAX_PAGES]; in main()
/tools/perf/arch/arm/tests/
DBuild3 perf-y += vectors-page.o
/tools/include/linux/
Dtypes.h13 struct page;

123