/third_party/ltp/testcases/kernel/syscalls/move_pages/ |
H A D | move_pages_support.c | 33 * free_pages() - free an array of pages 34 * @pages: array of page pointers to be freed 35 * @num: no. of pages in the array 37 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() 52 * alloc_pages_on_nodes() - allocate pages on specified NUMA nodes 53 * @pages: array in which the page pointers will be stored 54 * @num: no. of pages to allocate 58 * page pointers will be stored in @pages arra 63 alloc_pages_on_nodes(void **pages, unsigned int num, int *nodes) alloc_pages_on_nodes() argument 110 alloc_pages_linear(void **pages, unsigned int num) alloc_pages_linear() argument 150 alloc_pages_on_node(void **pages, unsigned int num, int node) alloc_pages_on_node() argument 169 verify_pages_on_nodes(void **pages, int *status, unsigned int num, int *nodes) verify_pages_on_nodes() argument 215 verify_pages_linear(void **pages, int *status, unsigned int num) verify_pages_linear() argument 249 verify_pages_on_node(void **pages, int *status, unsigned int num, int node) verify_pages_on_node() argument 270 alloc_shared_pages_on_node(void **pages, unsigned int num, int node) alloc_shared_pages_on_node() argument 311 free_shared_pages(void **pages, unsigned int num) free_shared_pages() argument [all...] |
H A D | move_pages_support.h | 34 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);
|
H A D | move_pages05.c | 29 * Test movement of pages mapped by a process. 35 * 4. Use move_pages() to move the pages to NUMA node B, without 83 * child() - touches pages, and waits for signal from parent. 84 * @pages: shared pages allocated in parent 86 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 in main() [all...] |
H A D | move_pages01.c | 32 * 1. Allocate pages in NUMA nodes A and B. 33 * 2. Use move_pages() to retrieve the NUMA node of the pages. 80 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()
|
H A D | move_pages02.c | 29 * Test movement of pages mapped by a process. 32 * 1. Allocate pages in NUMA node A. 33 * 2. Use move_pages() to move the pages to NUMA node B. 34 * 3. Retrieve the NUMA nodes of the moved pages. 35 * 4. Check if all pages are in node B. 89 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[ in main() [all...] |
H A D | move_pages03.c | 29 * Test movement of pages mapped by a process. 35 * 4. Use move_pages() to move the pages to NUMA node B, with the 37 * 5. Check if all pages are in node B. 81 * child() - touches shared pages, and waits for signal from parent. 82 * @pages: shared pages allocated in parent 85 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_PAGE in main() [all...] |
H A D | move_pages04.c | 105 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() 150 * untouched pages. in main() 152 free_pages(pages, TEST_PAGES); in main()
|
H A D | move_pages11.c | 29 * Failure when trying move shared pages. 34 * 3. Use move_pages() to move the pages to NUMA node B, with the 82 * child() - touches shared pages, and waits for signal from parent. 83 * @pages: shared pages allocated in parent 86 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() 151 * Fork a child process so that the shared pages ar in main() [all...] |
H A D | move_pages07.c | 89 void *pages[TEST_PAGES] = { 0 }; in main() local 97 ret = alloc_pages_on_node(pages, TEST_PAGES, from_node); in main() 106 ret = numa_move_pages(ipid, TEST_PAGES, pages, nodes, in main() 112 tst_resm(TFAIL|TERRNO, "move pages did not fail " in main() 115 free_pages(pages, TEST_PAGES); in main()
|
H A D | move_pages06.c | 89 void *pages[TEST_PAGES] = { 0 }; in main() local 96 ret = alloc_pages_on_node(pages, TEST_PAGES, from_node); in main() 104 ret = numa_move_pages(0, TEST_PAGES, pages, nodes, in main() 110 tst_resm(TFAIL|TERRNO, "move pages did not fail " in main() 113 free_pages(pages, TEST_PAGES); in main()
|
H A D | move_pages10.c | 89 void *pages[TEST_PAGES] = { 0 }; in main() local 96 ret = alloc_pages_on_node(pages, TEST_PAGES, from_node); in main() 103 ret = numa_move_pages(0, TEST_PAGES, pages, nodes, in main() 112 free_pages(pages, TEST_PAGES); in main()
|
H A D | move_pages09.c | 29 * Failure when all pages are in required node. 88 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() 110 free_pages(pages, TEST_PAGES); in main()
|
/third_party/cups-filters/filter/ |
H A D | pdf.cxx | 65 unsigned pages = (pdf->getAllPages()).size(); in pdf_load_template() local 67 if (pages != 1) { in pdf_load_template() 88 * 'pdf_pages()' - Count number of pages in file 91 * O - Number of pages or -1 on error 103 int pages = (pdf->getAllPages()).size(); in pdf_pages() local 105 return pages; in pdf_pages() 124 std::vector<QPDFObjectHandle> pages = pdf->getAllPages(); in pdf_prepend_stream() local 125 if (pages.empty() || page_num > pages.size()) { in pdf_prepend_stream() 130 QPDFObjectHandle page = pages[page_nu in pdf_prepend_stream() 171 std::vector<QPDFObjectHandle> pages = pdf->getAllPages(); pdf_add_type1_font() local 292 std::vector<QPDFObjectHandle> pages = pdf->getAllPages(); pdf_resize_page() local 329 std::vector<QPDFObjectHandle> pages = pdf->getAllPages(); pdf_duplicate_page() local 406 std::vector<QPDFPageObjectHelper> pages = pdh.getAllPages(); pdf_fill_form() local [all...] |
/third_party/skia/third_party/externals/harfbuzz/src/ |
H A D | hb-bit-set.hh | 52 hb_swap (a.pages, b.pages); in swap() 61 pages.init (); in init() 66 pages.fini (); in fini() 83 hb_vector_t<page_t> pages; member 91 if (unlikely (!pages.resize (count) || !page_map.resize (count))) in resize() 93 pages.resize (page_map.length); in resize() 114 unsigned int count = pages.length; in is_empty() 116 if (!pages[i].is_empty ()) in is_empty() 286 /* Delete pages fro in del_range() [all...] |
/third_party/node/deps/v8/src/base/ |
H A D | sys-info.cc | 75 int pages, page_size; in AmountOfPhysicalMemory() 76 size_t size = sizeof(pages); in AmountOfPhysicalMemory() 77 sysctlbyname("vm.stats.vm.v_page_count", &pages, &size, nullptr, 0); in AmountOfPhysicalMemory() 79 if (pages == -1 || page_size == -1) { in AmountOfPhysicalMemory() 82 return static_cast<int64_t>(pages) * page_size; in AmountOfPhysicalMemory() 102 long pages = sysconf(_SC_PHYS_PAGES); // NOLINT(runtime/int) in AmountOfPhysicalMemory() 104 if (pages == -1 || page_size == -1) { in AmountOfPhysicalMemory() 107 return static_cast<int64_t>(pages) * page_size; in AmountOfPhysicalMemory()
|
/third_party/ltp/testcases/kernel/controllers/memcg/stress/ |
H A D | memcg_process_stress.c | 21 char **pages; variable 29 pages[i][0] = 0xef; in touch_memory() 41 pages = calloc(nr_page, sizeof(char *)); in sigusr_handler() 42 if (pages == NULL) in sigusr_handler() 46 pages[i] = mmap(NULL, pagesize, PROT_WRITE | PROT_READ, in sigusr_handler() 48 if (pages[i] == MAP_FAILED) in sigusr_handler()
|
/third_party/ltp/testcases/kernel/mce-test/tools/ |
H A D | page-types.c | 160 static int opt_list; /* list pages (in ranges) */ 217 static unsigned long pages2mb(unsigned long pages) in pages2mb() argument 219 return (pages * page_size) >> 20; in pages2mb() 276 unsigned long pages) in kpageflags_read() 278 return do_u64_read(kpageflags_fd, PROC_KPAGEFLAGS, buf, index, pages); in kpageflags_read() 283 unsigned long pages) in pagemap_read() 285 return do_u64_read(pagemap_fd, "/proc/pid/pagemap", buf, index, pages); in pagemap_read() 450 /* hide non-hugeTLB compound pages */ in well_known_flags() 567 #define KPAGEFLAGS_BATCH (64 << 10) /* 64k pages */ 574 long pages; in walk_pfn() local 274 kpageflags_read(uint64_t *buf, unsigned long index, unsigned long pages) kpageflags_read() argument 281 pagemap_read(uint64_t *buf, unsigned long index, unsigned long pages) pagemap_read() argument 596 unsigned long pages; walk_vma() local [all...] |
/third_party/ltp/testcases/kernel/mem/lib/ |
H A D | mem.c | 222 tst_res(TINFO, "start OOM testing for mlocked pages."); in testoom() 233 tst_res(TINFO, "start OOM testing for KSM pages."); in testoom() 296 /* wait for ksm daemon to scan all mergeable pages. */ in ksm_group_check() 444 unsigned long ps, pages; in create_same_memory() local 458 pages = MB / ps; in create_same_memory() 498 SAFE_FILE_PRINTF(PATH_KSM "max_page_sharing", "%ld", size * pages * num); in create_same_memory() 502 SAFE_FILE_PRINTF(PATH_KSM "pages_to_scan", "%ld", size * pages * num); in create_same_memory() 507 ksm_group_check(1, 2, size * num * pages - 2, 0, 0, 0, size * pages * num); in create_same_memory() 511 ksm_group_check(1, 3, size * num * pages in create_same_memory() [all...] |
/third_party/vk-gl-cts/external/vulkan-docs/src/antora/ |
H A D | Makefile | 64 antora/modules/ROOT/pages/appendices \ 65 antora/modules/ROOT/pages/chapters \ 66 antora/modules/ROOT/pages/gen \ 68 antora/modules/proposals/pages/proposals \
|
/third_party/mesa3d/src/util/ |
H A D | slab.c | 65 /* Number of remaining, non-freed elements (for orphaned pages). */ 129 pool->pages = NULL; in slab_create_child() 147 while (pool->pages) { in slab_destroy_child() 148 struct slab_page_header *page = pool->pages; in slab_destroy_child() 149 pool->pages = page->u.next; in slab_destroy_child() 195 page->u.next = pool->pages; in slab_add_new_page() 196 pool->pages = page; in slab_add_new_page()
|
/third_party/toybox/toys/other/ |
H A D | mkswap.c | 27 unsigned int pages = (len/pagesize)-1, *swap = (unsigned int *)toybuf; in mkswap_main() local 34 swap[1] = pages; in mkswap_main() 48 pages*(unsigned long)(pagesize/1024), in mkswap_main()
|
/third_party/ltp/testcases/kernel/syscalls/mmap/ |
H A D | mmap001.c | 69 printf(" -m x size of mmap in pages (default 1000)\n"); in help() 74 * pages that should be mapped. 87 unsigned int pages, memsize; in main() local 92 memsize = pages = atoi(m_copt); in main() 103 * default size 1000 pages; in main() 105 memsize = pages = 1000; in main() 109 tst_resm(TINFO, "mmap()ing file of %u pages or %u bytes", pages, in main()
|
/third_party/ltp/lib/ |
H A D | tst_buffers.c | 50 unsigned int pages = (size / page_size) + !!(size % page_size) + 1; in tst_alloc() local 60 ret = SAFE_MMAP(NULL, page_size * pages, PROT_READ | PROT_WRITE, in tst_alloc() 63 mprotect(ret + (pages-1) * page_size, page_size, PROT_NONE); in tst_alloc() 66 map->size = pages * page_size; in tst_alloc()
|
/third_party/cups-filters/filter/pdftopdf/ |
H A D | pdftopdf_processor.cc | 114 // NOTE: psbook always fills the sig completely (results in completely white pages (4-set), depending on the input) 116 // empty pages must be added for output values >=numPages 129 // as long as pages to be done -- i.e. multiple times the signature in bookletShuffle() 162 std::vector<std::shared_ptr<PDFTOPDF_PageHandle>> pages=proc.get_pages(); in processPDFTOPDF() local 163 const int numOrigPages=pages.size(); in processPDFTOPDF() 179 const int numPages=std::max(shuffle.size(),pages.size()); in processPDFTOPDF() 198 for (int i = 0; i < (int)pages.size(); i ++) in processPDFTOPDF() 200 PageRect r = pages[i]->getRect(); in processPDFTOPDF() 207 "DEBUG: pdftopdf: Page %d too large for output page size, scaling pages to fit.\n", in processPDFTOPDF() 214 "DEBUG: pdftopdf: \"ipp-attribute-fidelity\" IPP attribute is set, scaling pages t in processPDFTOPDF() [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | libzvbi-teletextdec.c | 70 TeletextPage *pages; member 541 if ((new_pages = av_realloc_array(ctx->pages, ctx->nb_pages + 1, sizeof(TeletextPage)))) { in handler() 543 ctx->pages = new_pages; in handler() 567 ctx->pages[ctx->nb_pages++] = *cur_page; in handler() 576 //TODO: If multiple packets contain more than one page, pages may got queued up, and this may happen... in handler() 577 av_log(ctx, AV_LOG_ERROR, "Buffered too many pages, dropping page %s.\n", pgno_str); in handler() 697 sub->pts = ctx->pages->pts; in teletext_decode_frame() 699 if (ctx->pages->sub_rect->type != SUBTITLE_NONE) { in teletext_decode_frame() 703 sub->rects[0] = ctx->pages->sub_rect; in teletext_decode_frame() 712 subtitle_rect_free(&ctx->pages in teletext_decode_frame() [all...] |