Home
last modified time | relevance | path

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

12345678910>>...32

/external/strace/tests/
Dmove_pages.c43 print_page_array(const void **const pages, in print_page_array() argument
48 printf("%s", pages ? "[]" : "NULL"); in print_page_array()
52 printf("%p", pages); in print_page_array()
66 printf("... /* %p */", pages + i); in print_page_array()
69 const void *const addr = pages[i]; in print_page_array()
138 const void **const pages, int *const status) in print_stat_pages() argument
143 pid, count, pages, NULL, status, flags); in print_stat_pages()
146 print_page_array(pages, count, 0); in print_stat_pages()
163 const void **const pages, in print_move_pages() argument
171 pid, count, pages, nodes, status, flags); in print_move_pages()
[all …]
Dmincore.c34 print_mincore(const unsigned int pages, void *const addr, in print_mincore() argument
43 for (i = 0; i < pages; ++i) { in print_mincore()
56 test_mincore(const unsigned int pages) in test_mincore() argument
59 const size_t size = pages * page_size; in test_mincore()
61 unsigned char *const vec = tail_alloc(pages); in test_mincore()
67 print_mincore(pages, addr, size, vec); in test_mincore()
69 print_mincore(pages, addr, size - page_size + 1, vec); in test_mincore()
/external/strace/tests-mx32/
Dmove_pages.c43 print_page_array(const void **const pages, in print_page_array() argument
48 printf("%s", pages ? "[]" : "NULL"); in print_page_array()
52 printf("%p", pages); in print_page_array()
66 printf("... /* %p */", pages + i); in print_page_array()
69 const void *const addr = pages[i]; in print_page_array()
138 const void **const pages, int *const status) in print_stat_pages() argument
143 pid, count, pages, NULL, status, flags); in print_stat_pages()
146 print_page_array(pages, count, 0); in print_stat_pages()
163 const void **const pages, in print_move_pages() argument
171 pid, count, pages, nodes, status, flags); in print_move_pages()
[all …]
Dmincore.c34 print_mincore(const unsigned int pages, void *const addr, in print_mincore() argument
43 for (i = 0; i < pages; ++i) { in print_mincore()
56 test_mincore(const unsigned int pages) in test_mincore() argument
59 const size_t size = pages * page_size; in test_mincore()
61 unsigned char *const vec = tail_alloc(pages); in test_mincore()
67 print_mincore(pages, addr, size, vec); in test_mincore()
69 print_mincore(pages, addr, size - page_size + 1, vec); in test_mincore()
/external/strace/tests-m32/
Dmove_pages.c43 print_page_array(const void **const pages, in print_page_array() argument
48 printf("%s", pages ? "[]" : "NULL"); in print_page_array()
52 printf("%p", pages); in print_page_array()
66 printf("... /* %p */", pages + i); in print_page_array()
69 const void *const addr = pages[i]; in print_page_array()
138 const void **const pages, int *const status) in print_stat_pages() argument
143 pid, count, pages, NULL, status, flags); in print_stat_pages()
146 print_page_array(pages, count, 0); in print_stat_pages()
163 const void **const pages, in print_move_pages() argument
171 pid, count, pages, nodes, status, flags); in print_move_pages()
[all …]
Dmincore.c34 print_mincore(const unsigned int pages, void *const addr, in print_mincore() argument
43 for (i = 0; i < pages; ++i) { in print_mincore()
56 test_mincore(const unsigned int pages) in test_mincore() argument
59 const size_t size = pages * page_size; in test_mincore()
61 unsigned char *const vec = tail_alloc(pages); in test_mincore()
67 print_mincore(pages, addr, size, vec); in test_mincore()
69 print_mincore(pages, addr, size - page_size + 1, vec); in test_mincore()
/external/ltp/testcases/kernel/syscalls/move_pages/
Dmove_pages_support.c37 void free_pages(void **pages, unsigned int num) in free_pages() argument
44 if (pages[i] != NULL) { in free_pages()
45 numa_free(pages[i], onepage); in free_pages()
63 int alloc_pages_on_nodes(void **pages, unsigned int num, int *nodes) in alloc_pages_on_nodes() argument
71 pages[i] = NULL; in alloc_pages_on_nodes()
78 pages[i] = numa_alloc_onnode(onepage, nodes[i]); in alloc_pages_on_nodes()
80 if (pages[i] == NULL) { in alloc_pages_on_nodes()
87 page = pages[i]; in alloc_pages_on_nodes()
94 free_pages(pages, num); in alloc_pages_on_nodes()
110 int alloc_pages_linear(void **pages, unsigned int num) in alloc_pages_linear() argument
[all …]
Dmove_pages_support.h34 void free_pages(void **pages, unsigned int num);
36 int alloc_pages_on_nodes(void **pages, unsigned int num, int *nodes);
37 int alloc_pages_linear(void **pages, unsigned int num);
38 int alloc_pages_on_node(void **pages, unsigned int num, int node);
40 void verify_pages_on_nodes(void **pages, int *status,
42 void verify_pages_linear(void **pages, int *status, unsigned int num);
43 void verify_pages_on_node(void **pages, int *status,
46 int alloc_shared_pages_on_node(void **pages, unsigned int num, int node);
47 void free_shared_pages(void **pages, unsigned int num);
Dmove_pages05.c86 void child(void **pages, sem_t * sem) in child() argument
93 page = pages[i]; in child()
128 void *pages[N_TEST_PAGES] = { 0 }; in main() local
137 ret = alloc_shared_pages_on_node(pages + SHARED_PAGE, in main()
142 ret = alloc_pages_on_node(pages + UNSHARED_PAGE, in main()
165 child(pages, sem); in main()
172 ret = numa_move_pages(0, N_TEST_PAGES, pages, nodes, in main()
198 free_pages(pages + UNSHARED_PAGE, N_UNSHARED_PAGES); in main()
200 free_shared_pages(pages + SHARED_PAGE, N_SHARED_PAGES); in main()
Dmove_pages02.c89 void *pages[TEST_PAGES] = { 0 }; in main() local
96 ret = alloc_pages_on_node(pages, TEST_PAGES, from_node); in main()
104 numa_move_pages(0, TEST_PAGES, pages, nodes, status, in main()
108 free_pages(pages, TEST_PAGES); in main()
115 *((char *)pages[i]) = 0xAA; in main()
117 verify_pages_on_node(pages, status, TEST_PAGES, to_node); in main()
119 free_pages(pages, TEST_PAGES); in main()
Dmove_pages03.c85 void child(void **pages, sem_t * sem) in child() argument
92 page = pages[i]; in child()
127 void *pages[TEST_PAGES] = { 0 }; in main() local
136 ret = alloc_shared_pages_on_node(pages, TEST_PAGES, from_node); in main()
158 child(pages, sem); in main()
165 ret = numa_move_pages(0, TEST_PAGES, pages, nodes, in main()
174 verify_pages_on_node(pages, status, TEST_PAGES, to_node); in main()
185 free_shared_pages(pages, TEST_PAGES); in main()
Dmove_pages01.c80 void *pages[TEST_PAGES] = { 0 }; in main() local
87 ret = alloc_pages_linear(pages, TEST_PAGES); in main()
91 ret = numa_move_pages(0, TEST_PAGES, pages, NULL, status, 0); in main()
94 free_pages(pages, TEST_PAGES); in main()
100 verify_pages_linear(pages, status, TEST_PAGES); in main()
102 free_pages(pages, TEST_PAGES); in main()
Dmove_pages11.c86 void child(void **pages, sem_t * sem) in child() argument
93 page = pages[i]; in child()
128 void *pages[TEST_PAGES] = { 0 }; in main() local
137 ret = alloc_shared_pages_on_node(pages, TEST_PAGES, from_node); in main()
160 child(pages, sem); in main()
168 ret = numa_move_pages(0, TEST_PAGES, pages, nodes, in main()
186 free_shared_pages(pages, TEST_PAGES); in main()
Dmove_pages04.c105 void *pages[TEST_PAGES] = { 0 }; in main() local
113 ret = alloc_pages_on_node(pages, TOUCHED_PAGES, from_node); in main()
118 pages[UNTOUCHED_PAGE] = numa_alloc_onnode(onepage, from_node); in main()
119 if (pages[UNTOUCHED_PAGE] == NULL) { in main()
128 ret = numa_move_pages(0, TEST_PAGES, pages, nodes, in main()
152 free_pages(pages, TEST_PAGES); in main()
Dmove_pages09.c88 void *pages[TEST_PAGES] = { 0 }; in main() local
95 ret = alloc_pages_on_node(pages, TEST_PAGES, from_node); in main()
102 ret = numa_move_pages(0, TEST_PAGES, pages, nodes, in main()
125 free_pages(pages, TEST_PAGES); in main()
/external/harfbuzz_ng/src/
Dhb-set.hh190 hb_vector_t<page_t, 1> pages; member
197 pages.init (); in init_shallow()
208 pages.fini (); in fini_shallow()
221 if (!pages.resize (count) || !page_map.resize (count)) in resize()
223 pages.resize (page_map.len); in resize()
237 pages.resize (0); in clear()
241 unsigned int count = pages.len; in is_empty()
243 if (!pages[i].is_empty ()) in is_empty()
376 unsigned int count = other->pages.len; in set()
380 memcpy ((void *) pages, (const void *) other->pages, count * pages.item_size); in set()
[all …]
/external/jemalloc/test/unit/
Dpages.c6 void *pages; in TEST_BEGIN() local
9 pages = pages_map(NULL, PAGE, &commit); in TEST_BEGIN()
10 assert_ptr_not_null(pages, "Unexpected pages_map() error"); in TEST_BEGIN()
12 assert_false(pages_huge(pages, PAGE), in TEST_BEGIN()
14 assert_false(pages_nohuge(pages, PAGE), in TEST_BEGIN()
17 pages_unmap(pages, PAGE); in TEST_BEGIN()
/external/v8/src/base/
Dsys-info.cc67 int pages, page_size; in AmountOfPhysicalMemory()
68 size_t size = sizeof(pages); in AmountOfPhysicalMemory()
69 sysctlbyname("vm.stats.vm.v_page_count", &pages, &size, nullptr, 0); in AmountOfPhysicalMemory()
71 if (pages == -1 || page_size == -1) { in AmountOfPhysicalMemory()
74 return static_cast<int64_t>(pages) * page_size; in AmountOfPhysicalMemory()
94 long pages = sysconf(_SC_PHYS_PAGES); // NOLINT(runtime/int) in AmountOfPhysicalMemory()
96 if (pages == -1 || page_size == -1) { in AmountOfPhysicalMemory()
99 return static_cast<int64_t>(pages) * page_size; in AmountOfPhysicalMemory()
/external/u-boot/lib/efi_loader/
Defi_memory.c151 uint64_t efi_add_memory_map(uint64_t start, uint64_t pages, int memory_type, in efi_add_memory_map() argument
160 start, pages, memory_type, overlap_only_ram ? "yes" : "no"); in efi_add_memory_map()
162 if (!pages) in efi_add_memory_map()
169 newlist->desc.num_pages = pages; in efi_add_memory_map()
226 if (overlap_only_ram && (carved_pages != pages)) { in efi_add_memory_map()
289 efi_uintn_t pages, uint64_t *memory) in efi_allocate_pages() argument
291 u64 len = pages << EFI_PAGE_SHIFT; in efi_allocate_pages()
326 ret = efi_add_memory_map(addr, pages, memory_type, true); in efi_allocate_pages()
341 uint64_t pages = (len + EFI_PAGE_MASK) >> EFI_PAGE_SHIFT; in efi_alloc() local
344 r = efi_allocate_pages(EFI_ALLOCATE_ANY_PAGES, memory_type, pages, in efi_alloc()
[all …]
/external/ltp/testcases/kernel/controllers/memcg/stress/
Dmemcg_process_stress.c37 char **pages; variable
45 pages[i][0] = 0xef; in touch_memory()
57 pages = calloc(nr_page, sizeof(char *)); in sigusr_handler()
58 if (pages == NULL) in sigusr_handler()
62 pages[i] = mmap(NULL, pagesize, PROT_WRITE | PROT_READ, in sigusr_handler()
64 if (pages[i] == MAP_FAILED) in sigusr_handler()
/external/jemalloc/src/
Dchunk_mmap.c17 void *pages; in chunk_alloc_mmap_slow() local
19 pages = pages_map(NULL, alloc_size, commit); in chunk_alloc_mmap_slow()
20 if (pages == NULL) in chunk_alloc_mmap_slow()
22 leadsize = ALIGNMENT_CEILING((uintptr_t)pages, alignment) - in chunk_alloc_mmap_slow()
23 (uintptr_t)pages; in chunk_alloc_mmap_slow()
24 ret = pages_trim(pages, alloc_size, leadsize, size, commit); in chunk_alloc_mmap_slow()
/external/jemalloc_new/test/unit/
Dpages.c6 void *pages, *hugepage; in TEST_BEGIN() local
10 pages = pages_map(NULL, alloc_size, PAGE, &commit); in TEST_BEGIN()
11 assert_ptr_not_null(pages, "Unexpected pages_map() error"); in TEST_BEGIN()
14 hugepage = (void *)(ALIGNMENT_CEILING((uintptr_t)pages, HUGEPAGE)); in TEST_BEGIN()
21 pages_unmap(pages, alloc_size); in TEST_BEGIN()
/external/minijail/
DHACKING.md57 For users of Minijail (e.g. `minijail0`), we use man pages.
58 For style guides, check out the [Linux man-pages project] for general guidance.
61 * [man-pages(7)](http://man7.org/linux/man-pages/man7/man-pages.7.html)
62 * [groff-man(7)](http://man7.org/linux/man-pages/man7/groff_man.7.html)
63 * [groff(7)](http://man7.org/linux/man-pages/man7/groff.7.html)
74 [Google Markdown style guide]: https://github.com/google/styleguide/blob/gh-pages/docguide/style.md
/external/pdfium/fpdfsdk/
Dfpdfeditimg.cpp46 bool LoadJpegHelper(FPDF_PAGE* pages, in LoadJpegHelper() argument
57 if (pages) { in LoadJpegHelper()
59 CPDF_Page* pPage = CPDFPageFromFPDFPage(pages[index]); in LoadJpegHelper()
87 FPDFImageObj_LoadJpegFile(FPDF_PAGE* pages, in FPDFImageObj_LoadJpegFile() argument
91 return LoadJpegHelper(pages, nCount, image_object, fileAccess, false); in FPDFImageObj_LoadJpegFile()
95 FPDFImageObj_LoadJpegFileInline(FPDF_PAGE* pages, in FPDFImageObj_LoadJpegFileInline() argument
99 return LoadJpegHelper(pages, nCount, image_object, fileAccess, true); in FPDFImageObj_LoadJpegFileInline()
123 FPDFImageObj_SetBitmap(FPDF_PAGE* pages, in FPDFImageObj_SetBitmap() argument
127 if (!image_object || !bitmap || !pages) in FPDFImageObj_SetBitmap()
132 CPDF_Page* pPage = CPDFPageFromFPDFPage(pages[index]); in FPDFImageObj_SetBitmap()
/external/dagger2/util/
Dgenerate-latest-docs.sh12 …git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/google/dagger gh-pages > /dev/n…
14 cd gh-pages
22 git push -fq origin gh-pages > /dev/null

12345678910>>...32