Home
last modified time | relevance | path

Searched refs:total_pages (Results 1 – 4 of 4) sorted by relevance

/external/ltp/testcases/kernel/syscalls/set_mempolicy/
Dset_mempolicy04.c60 unsigned int total_pages = 0; in alloc_and_check() local
74 total_pages += size; in alloc_and_check()
79 float treshold = 1.00 * total_pages / 60; /* five percents */ in alloc_and_check()
80 float min_pages = 1.00 * total_pages / nodes->cnt - treshold; in alloc_and_check()
81 float max_pages = 1.00 * total_pages / nodes->cnt + treshold; in alloc_and_check()
94 if (sum_pages != total_pages) { in alloc_and_check()
96 sum_pages, total_pages); in alloc_and_check()
100 tst_res(TPASS, "Sum of nodes equals to allocated pages (%u)", total_pages); in alloc_and_check()
/external/ltp/testcases/kernel/syscalls/memfd_create/
Dmemfd_create03.c197 long total_pages; in setup() local
219 SAFE_FILE_LINES_SCANF(TOTAL_HP_PATH, "%ld", &total_pages); in setup()
220 if (total_pages != (og_total_pages + 1)) in setup()
230 long total_pages; in cleanup() local
244 SAFE_FILE_LINES_SCANF(TOTAL_HP_PATH, "%ld", &total_pages); in cleanup()
245 if (og_total_pages != total_pages) in cleanup()
/external/libchrome/base/android/library_loader/
Dlibrary_prefetcher.cc282 size_t total_pages = 0; in PercentageOfResidentCode() local
289 total_pages += residency.size(); in PercentageOfResidentCode()
292 if (total_pages == 0) in PercentageOfResidentCode()
294 return static_cast<int>((100 * resident_pages) / total_pages); in PercentageOfResidentCode()
/external/e2fsprogs/ext2ed/
Dwin.c108 int current_page,total_pages; in refresh_show_win() local
113 total_pages=show_pad_info.max_line/show_pad_info.display_lines+1; in refresh_show_win()
116 wprintw (show_win,"Page %d of %d\n",current_page,total_pages); in refresh_show_win()