HomeSort by relevance Sort by last modified time
    Searched refs:pages (Results 1 - 25 of 393) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /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_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);
98 verify_pages_linear(pages, status, TEST_PAGES);
100 free_pages(pages, TEST_PAGES);
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);
113 *((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_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,
148 * untouched pages.
150 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);
  /toolchain/binutils/binutils-2.27/libiberty/
physmem.c 87 double pages = sysconf (_SC_PHYS_PAGES); local
89 if (0 <= pages && 0 <= pagesize)
90 return pages * pagesize;
99 double pages = pss.physical_memory; local
101 if (0 <= pages && 0 <= pagesize)
102 return pages * pagesize;
113 double pages = realmem.physmem; local
114 if (0 <= pages && 0 <= pagesize)
115 return pages * pagesize;
191 double pages = sysconf (_SC_AVPHYS_PAGES) local
205 double pages = psd.psd_free; local
219 double pages = realmem.availrmem; local
232 double pages = vmstats.free_count; local
    [all...]
  /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/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/v8/src/base/
sys-info.cc 65 int pages, page_size;
66 size_t size = sizeof(pages);
67 sysctlbyname("vm.stats.vm.v_page_count", &pages, &size, NULL, 0);
69 if (pages == -1 || page_size == -1) {
72 return static_cast<int64_t>(pages) * page_size;
92 long pages = sysconf(_SC_PHYS_PAGES); // NOLINT(runtime/int)
94 if (pages == -1 || page_size == -1) {
97 return static_cast<int64_t>(pages) * page_size;
  /frameworks/base/core/java/android/print/
IWriteResultCallback.aidl 29 void onWriteFinished(in PageRange[] pages, int sequence);
PrintDocumentAdapter.java 44 * specific pages.
68 * pages to the provided destination. The execution of this method is not
191 * Called when specific pages of the content should be written in the
233 * @param pages The pages whose content to print - non-overlapping in ascending order.
241 public abstract void onWrite(PageRange[] pages, ParcelFileDescriptor destination,
270 * @param pages The pages that were written. Cannot be <code>null</code>
272 * Returning {@link PageRange#ALL_PAGES} indicates that all pages that were
273 * requested as the {@code pages} parameter in {@link #onWrite} were written
    [all...]
  /cts/tests/tests/print/src/android/print/cts/
PageRangeAdjustmentTest.java 60 * the requested pages, more pages, etc.
104 PageRange[] pages = printJob.getInfo().getPages();
105 assertTrue(pages.length == 1 && PageRange.ALL_PAGES.equals(pages[0]));
152 PageRange[] pages = printJob.getInfo().getPages();
153 // We asked for some pages, the app wrote more, but the system
154 // pruned extra pages, hence we expect to print all pages.
155 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

Completed in 451 milliseconds

1 2 3 4 5 6 7 8 91011>>