HomeSort by relevance Sort by last modified time
    Searched refs:pages (Results 1 - 25 of 736) 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 32 * free_pages() - free an array of pages
33 * @pages: array of page pointers to be freed
34 * @num: no. of pages in the array
36 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 95 void *pages[TEST_PAGES] = { 0 }; local
103 ret = alloc_pages_on_node(pages, TOUCHED_PAGES, from_node);
108 pages[UNTOUCHED_PAGE] = numa_alloc_onnode(onepage, from_node);
109 if (pages[UNTOUCHED_PAGE] == NULL) {
118 ret = numa_move_pages(0, TEST_PAGES, pages, nodes,
135 * untouched pages.
137 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...]
  /external/strace/tests/
move_pages.c 42 print_page_array(const void **const pages,
47 printf("%s", pages ? "[]" : "NULL");
51 printf("%p", pages);
65 printf("%p", pages + i);
68 const void *const addr = pages[i];
137 const void **const pages, int *const status)
142 pid, count, pages, NULL, status, flags);
145 print_page_array(pages, count, 0);
162 const void **const pages,
170 pid, count, pages, nodes, status, flags)
193 const void **pages = tail_alloc(sizeof(*pages)); local
    [all...]
mincore.c 35 print_mincore(const unsigned int pages, void *const addr,
44 for (i = 0; i < pages; ++i) {
57 test_mincore(const unsigned int pages)
60 const size_t size = pages * page_size;
62 unsigned char *const vec = tail_alloc(pages);
68 print_mincore(pages, addr, size, vec);
70 print_mincore(pages, addr, size - page_size + 1, vec);
  /external/strace/tests-m32/
move_pages.c 42 print_page_array(const void **const pages,
47 printf("%s", pages ? "[]" : "NULL");
51 printf("%p", pages);
65 printf("%p", pages + i);
68 const void *const addr = pages[i];
137 const void **const pages, int *const status)
142 pid, count, pages, NULL, status, flags);
145 print_page_array(pages, count, 0);
162 const void **const pages,
170 pid, count, pages, nodes, status, flags)
193 const void **pages = tail_alloc(sizeof(*pages)); local
    [all...]
mincore.c 35 print_mincore(const unsigned int pages, void *const addr,
44 for (i = 0; i < pages; ++i) {
57 test_mincore(const unsigned int pages)
60 const size_t size = pages * page_size;
62 unsigned char *const vec = tail_alloc(pages);
68 print_mincore(pages, addr, size, vec);
70 print_mincore(pages, addr, size - page_size + 1, vec);
  /external/strace/tests-mx32/
move_pages.c 42 print_page_array(const void **const pages,
47 printf("%s", pages ? "[]" : "NULL");
51 printf("%p", pages);
65 printf("%p", pages + i);
68 const void *const addr = pages[i];
137 const void **const pages, int *const status)
142 pid, count, pages, NULL, status, flags);
145 print_page_array(pages, count, 0);
162 const void **const pages,
170 pid, count, pages, nodes, status, flags)
193 const void **pages = tail_alloc(sizeof(*pages)); local
    [all...]
mincore.c 35 print_mincore(const unsigned int pages, void *const addr,
44 for (i = 0; i < pages; ++i) {
57 test_mincore(const unsigned int pages)
60 const size_t size = pages * page_size;
62 unsigned char *const vec = tail_alloc(pages);
68 print_mincore(pages, addr, size, vec);
70 print_mincore(pages, addr, size - page_size + 1, vec);
  /external/chromium-trace/catapult/telemetry/telemetry/internal/results/
page_test_results_unittest.py 34 def pages(self): member in class:PageTestResultsTest
39 results.WillRunPage(self.pages[0])
41 failure.FailureValue(self.pages[0], self.CreateException()))
42 results.DidRunPage(self.pages[0])
44 results.WillRunPage(self.pages[1])
45 results.DidRunPage(self.pages[1])
47 self.assertEqual(set([self.pages[0]]), results.pages_that_failed)
48 self.assertEqual(set([self.pages[1]]), results.pages_that_succeeded)
56 results.WillRunPage(self.pages[0])
57 results.AddValue(skip.SkipValue(self.pages[0], 'testing reason')
395 def pages(self): member in class:PageTestResultsFilterTest
    [all...]
  /toolchain/binutils/binutils-2.25/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/pdfium/fpdfsdk/
fpdfeditimg.cpp 27 FPDF_BOOL FPDFImageObj_LoadJpegHelper(FPDF_PAGE* pages,
32 if (!image_object || !fileAccess || !pages)
39 CPDF_Page* pPage = CPDFPageFromFPDFPage(pages[index]);
53 FPDFImageObj_LoadJpegFile(FPDF_PAGE* pages,
57 return FPDFImageObj_LoadJpegHelper(pages, nCount, image_object, fileAccess,
62 FPDFImageObj_LoadJpegFileInline(FPDF_PAGE* pages,
66 return FPDFImageObj_LoadJpegHelper(pages, nCount, image_object, fileAccess,
89 DLLEXPORT FPDF_BOOL STDCALL FPDFImageObj_SetBitmap(FPDF_PAGE* pages,
93 if (!image_object || !bitmap || !pages)
98 CPDF_Page* pPage = CPDFPageFromFPDFPage(pages[index])
    [all...]
  /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>
273 public void onWriteFinished(PageRange[] pages) {
  /cts/tests/tests/print/src/android/print/cts/
PageRangeAdjustmentTest.java 58 * the requested pages, more pages, etc.
102 PageRange[] pages = printJob.getInfo().getPages();
103 assertTrue(pages.length == 1 && PageRange.ALL_PAGES.equals(pages[0]));
150 PageRange[] pages = printJob.getInfo().getPages();
151 // We asked for some pages, the app wrote more, but the system
152 // pruned extra pages, hence we expect to print all pages.
153 assertTrue(pages.length == 1 && PageRange.ALL_PAGES.equals(pages[0]))
    [all...]

Completed in 4326 milliseconds

1 2 3 4 5 6 7 8 91011>>