/external/jemalloc/test/unit/ |
pages.c | 6 void *pages; local 9 pages = pages_map(NULL, PAGE, &commit); 10 assert_ptr_not_null(pages, "Unexpected pages_map() error"); 12 assert_false(pages_huge(pages, PAGE), 14 assert_false(pages_nohuge(pages, PAGE), 17 pages_unmap(pages, PAGE);
|
/external/ltp/testcases/kernel/syscalls/move_pages/ |
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);
|
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 }; local 96 ret = alloc_pages_on_node(pages, TEST_PAGES, from_node); 104 numa_move_pages(0, TEST_PAGES, pages, nodes, status, 108 free_pages(pages, TEST_PAGES); 115 *((char *)pages[i]) = 0xAA [all...] |
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) 44 if (pages[i] != NULL) { 45 numa_free(pages[i], onepage); 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 array [all...] |
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 }; local 87 ret = alloc_pages_linear(pages, TEST_PAGES); 91 ret = numa_move_pages(0, TEST_PAGES, pages, NULL, status, 0); 94 free_pages(pages, TEST_PAGES); 100 verify_pages_linear(pages, status, TEST_PAGES); 102 free_pages(pages, TEST_PAGES);
|
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) 93 page = pages[i]; 128 void *pages[N_TEST_PAGES] = { 0 }; local 137 ret = alloc_shared_pages_on_node(pages + SHARED_PAGE, 142 ret = alloc_pages_on_node(pages + UNSHARED_PAGE [all...] |
move_pages04.c | 105 void *pages[TEST_PAGES] = { 0 }; local 113 ret = alloc_pages_on_node(pages, TOUCHED_PAGES, from_node); 118 pages[UNTOUCHED_PAGE] = numa_alloc_onnode(onepage, from_node); 119 if (pages[UNTOUCHED_PAGE] == NULL) { 128 ret = numa_move_pages(0, TEST_PAGES, pages, nodes, 150 * untouched pages. 152 free_pages(pages, TEST_PAGES);
|
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) 92 page = pages[i]; 127 void *pages[TEST_PAGES] = { 0 }; local 136 ret = alloc_shared_pages_on_node(pages, TEST_PAGES, from_node) [all...] |
move_pages06.c | 89 void *pages[TEST_PAGES] = { 0 }; local 96 ret = alloc_pages_on_node(pages, TEST_PAGES, from_node); 104 ret = numa_move_pages(0, TEST_PAGES, pages, nodes, 110 tst_resm(TFAIL|TERRNO, "move pages did not fail " 113 free_pages(pages, TEST_PAGES);
|
/external/strace/tests/ |
move_pages.c | 43 print_page_array(const void **const pages, 48 printf("%s", pages ? "[]" : "NULL"); 52 printf("%p", pages); 66 printf("... /* %p */", pages + i); 69 const void *const addr = pages[i]; 138 const void **const pages, int *const status) 143 pid, count, pages, NULL, status, flags); 146 print_page_array(pages, count, 0); 163 const void **const pages, 171 pid, count, pages, nodes, status, flags) [all...] |
mincore.c | 34 print_mincore(const unsigned int pages, void *const addr, 43 for (i = 0; i < pages; ++i) { 56 test_mincore(const unsigned int pages) 59 const size_t size = pages * page_size; 61 unsigned char *const vec = tail_alloc(pages); 67 print_mincore(pages, addr, size, vec); 69 print_mincore(pages, addr, size - page_size + 1, vec);
|
/external/strace/tests-m32/ |
move_pages.c | 43 print_page_array(const void **const pages, 48 printf("%s", pages ? "[]" : "NULL"); 52 printf("%p", pages); 66 printf("... /* %p */", pages + i); 69 const void *const addr = pages[i]; 138 const void **const pages, int *const status) 143 pid, count, pages, NULL, status, flags); 146 print_page_array(pages, count, 0); 163 const void **const pages, 171 pid, count, pages, nodes, status, flags) [all...] |
mincore.c | 34 print_mincore(const unsigned int pages, void *const addr, 43 for (i = 0; i < pages; ++i) { 56 test_mincore(const unsigned int pages) 59 const size_t size = pages * page_size; 61 unsigned char *const vec = tail_alloc(pages); 67 print_mincore(pages, addr, size, vec); 69 print_mincore(pages, addr, size - page_size + 1, vec);
|
/external/strace/tests-mx32/ |
move_pages.c | 43 print_page_array(const void **const pages, 48 printf("%s", pages ? "[]" : "NULL"); 52 printf("%p", pages); 66 printf("... /* %p */", pages + i); 69 const void *const addr = pages[i]; 138 const void **const pages, int *const status) 143 pid, count, pages, NULL, status, flags); 146 print_page_array(pages, count, 0); 163 const void **const pages, 171 pid, count, pages, nodes, status, flags) [all...] |
mincore.c | 34 print_mincore(const unsigned int pages, void *const addr, 43 for (i = 0; i < pages; ++i) { 56 test_mincore(const unsigned int pages) 59 const size_t size = pages * page_size; 61 unsigned char *const vec = tail_alloc(pages); 67 print_mincore(pages, addr, size, vec); 69 print_mincore(pages, addr, size - page_size + 1, vec);
|
/external/jemalloc_new/test/unit/ |
pages.c | 6 void *pages, *hugepage; local 10 pages = pages_map(NULL, alloc_size, PAGE, &commit); 11 assert_ptr_not_null(pages, "Unexpected pages_map() error"); 14 hugepage = (void *)(ALIGNMENT_CEILING((uintptr_t)pages, HUGEPAGE)); 21 pages_unmap(pages, alloc_size);
|
/external/dagger2/util/ |
generate-latest-docs.sh | 1 # see http://benlimmer.com/2013/12/26/automatically-publish-javadoc-to-gh-pages-with-travis-ci/ for details 12 git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/google/dagger gh-pages > /dev/null 14 cd gh-pages 21 git commit -m "Lastest javadoc on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages" 22 git push -fq origin gh-pages > /dev/null 24 echo -e "Published Javadoc to gh-pages.\n"
|
/external/tinyxml2/docs/search/ |
searchdata.js | 14 3: "pages" 22 3: "Pages"
|
/external/jemalloc/src/ |
chunk_mmap.c | 17 void *pages; local 19 pages = pages_map(NULL, alloc_size, commit); 20 if (pages == NULL) 22 leadsize = ALIGNMENT_CEILING((uintptr_t)pages, alignment) - 23 (uintptr_t)pages; 24 ret = pages_trim(pages, alloc_size, leadsize, size, commit);
|
/external/ltp/testcases/kernel/controllers/memcg/stress/ |
memcg_process_stress.c | 37 char **pages; variable 45 pages[i][0] = 0xef; 57 pages = calloc(nr_page, sizeof(char *)); 58 if (pages == NULL) 62 pages[i] = mmap(NULL, pagesize, PROT_WRITE | PROT_READ, 64 if (pages[i] == MAP_FAILED)
|
/external/toybox/toys/other/ |
mkswap.c | 27 unsigned int pages = (len/pagesize)-1, *swap = (unsigned int *)toybuf; local 34 swap[1] = pages; 48 pages*(unsigned long)(pagesize/1024),
|
/external/Reactive-Extensions/RxCpp/projects/scripts/ |
travis-doxygen.sh | 12 git push --force "https://${GH_TOKEN}@github.com/Reactive-Extensions/RxCpp.git" master:gh-pages
|
/external/v8/src/base/ |
sys-info.cc | 67 int pages, page_size; 68 size_t size = sizeof(pages); 69 sysctlbyname("vm.stats.vm.v_page_count", &pages, &size, nullptr, 0); 71 if (pages == -1 || page_size == -1) { 74 return static_cast<int64_t>(pages) * page_size; 94 long pages = sysconf(_SC_PHYS_PAGES); // NOLINT(runtime/int) 96 if (pages == -1 || page_size == -1) { 99 return static_cast<int64_t>(pages) * page_size;
|
/cts/tests/tests/print/src/android/print/cts/ |
PageRangeAdjustmentTest.java | 61 * the requested pages, more pages, etc. 105 PageRange[] pages = printJob.getInfo().getPages(); 106 assertTrue(pages.length == 1 && PageRange.ALL_PAGES.equals(pages[0])); 153 PageRange[] pages = printJob.getInfo().getPages(); 154 // We asked for some pages, the app wrote more, but the system 155 // pruned extra pages, hence we expect to print all pages. 156 assertTrue(pages.length == 1 && PageRange.ALL_PAGES.equals(pages[0])) [all...] |
/external/dagger2/ |
deploy_website.sh | 3 # Deploys the current Dagger website to the gh-pages branch of the GitHub 24 # Checkout and track the gh-pages branch 25 git checkout -t origin/gh-pages 45 git push origin gh-pages
|