/external/ltp/testcases/kernel/mem/ksm/ |
D | ksm06.c | 70 if (access(PATH_KSM "merge_across_nodes", F_OK) == -1) in setup() 77 SAFE_FILE_SCANF(PATH_KSM "run", "%d", &run); in setup() 78 SAFE_FILE_SCANF(PATH_KSM "merge_across_nodes", in setup() 80 SAFE_FILE_SCANF(PATH_KSM "sleep_millisecs", in setup() 87 FILE_PRINTF(PATH_KSM "merge_across_nodes", in cleanup() 92 FILE_PRINTF(PATH_KSM "sleep_millisecs", "%d", sleep_millisecs); in cleanup() 95 FILE_PRINTF(PATH_KSM "run", "%d", run); in cleanup()
|
D | ksm01.c | 69 if (access(PATH_KSM, F_OK) == -1) in setup() 81 if (access(PATH_KSM "merge_across_nodes", F_OK) == 0) { in setup() 82 SAFE_FILE_SCANF(PATH_KSM "merge_across_nodes", in setup() 84 SAFE_FILE_PRINTF(PATH_KSM "merge_across_nodes", "1"); in setup() 90 if (access(PATH_KSM "merge_across_nodes", F_OK) == 0) in cleanup() 91 FILE_PRINTF(PATH_KSM "merge_across_nodes", in cleanup()
|
D | ksm03.c | 72 if (access(PATH_KSM, F_OK) == -1) in setup() 75 if (access(PATH_KSM "merge_across_nodes", F_OK) == 0) { in setup() 76 SAFE_FILE_SCANF(PATH_KSM "merge_across_nodes", in setup() 78 SAFE_FILE_PRINTF(PATH_KSM "merge_across_nodes", "1"); in setup() 88 if (access(PATH_KSM "merge_across_nodes", F_OK) == 0) in cleanup() 89 FILE_PRINTF(PATH_KSM "merge_across_nodes", in cleanup()
|
D | ksm02.c | 87 if (access(PATH_KSM "merge_across_nodes", F_OK) == 0) in cleanup() 88 FILE_PRINTF(PATH_KSM "merge_across_nodes", in cleanup() 97 if (access(PATH_KSM, F_OK) == -1) in setup() 102 if (access(PATH_KSM "merge_across_nodes", F_OK) == 0) { in setup() 103 SAFE_FILE_SCANF(PATH_KSM "merge_across_nodes", in setup() 105 SAFE_FILE_PRINTF(PATH_KSM "merge_across_nodes", "1"); in setup()
|
D | ksm04.c | 90 if (access(PATH_KSM "merge_across_nodes", F_OK) == 0) in cleanup() 91 FILE_PRINTF(PATH_KSM "merge_across_nodes", in cleanup() 102 if (access(PATH_KSM, F_OK) == -1) in setup() 105 if (access(PATH_KSM "merge_across_nodes", F_OK) == 0) { in setup() 106 SAFE_FILE_SCANF(PATH_KSM "merge_across_nodes", in setup() 108 SAFE_FILE_PRINTF(PATH_KSM "merge_across_nodes", "1"); in setup()
|
D | ksm05.c | 88 if (access(PATH_KSM, F_OK) == -1) in setup() 92 SAFE_FILE_SCANF(PATH_KSM "run", "%d", &ksm_run_orig); in setup() 95 SAFE_FILE_PRINTF(PATH_KSM "run", "1"); in setup() 102 FILE_PRINTF(PATH_KSM "run", "%d", ksm_run_orig); in cleanup()
|
/external/ltp/testcases/kernel/mem/lib/ |
D | mem.c | 228 if (access(PATH_KSM, F_OK) == -1 || lite == 1) { in testoom() 233 SAFE_FILE_SCANF(PATH_KSM "run", "%d", &ksm_run_orig); in testoom() 234 SAFE_FILE_PRINTF(PATH_KSM "run", "1"); in testoom() 236 SAFE_FILE_PRINTF(PATH_KSM "run", "%d", ksm_run_orig); in testoom() 247 snprintf(fullpath, BUFSIZ, PATH_KSM "%s", path); in check() 485 if (access(PATH_KSM "max_page_sharing", F_OK) == 0) { in create_same_memory() 486 SAFE_FILE_PRINTF(PATH_KSM "run", "2"); in create_same_memory() 487 SAFE_FILE_PRINTF(PATH_KSM "max_page_sharing", "%ld", size * pages * num); in create_same_memory() 490 SAFE_FILE_PRINTF(PATH_KSM "run", "1"); in create_same_memory() 491 SAFE_FILE_PRINTF(PATH_KSM "pages_to_scan", "%ld", size * pages * num); in create_same_memory() [all …]
|
/external/ltp/testcases/kernel/syscalls/migrate_pages/ |
D | migrate_pages03.c | 52 if (access(PATH_KSM, F_OK)) in setup() 96 SAFE_FILE_SCANF(PATH_KSM "run", "%d", &orig_ksm_run); in setup() 97 SAFE_FILE_PRINTF(PATH_KSM "run", "%d", 1); in setup() 114 SAFE_FILE_PRINTF(PATH_KSM "run", "%d", orig_ksm_run); in cleanup()
|
/external/ltp/testcases/kernel/lib/ |
D | ksm_helper.c | 18 SAFE_FILE_SCANF(PATH_KSM "full_scans", "%lu", &full_scans); in wait_ksmd_full_scan() 33 SAFE_FILE_SCANF(PATH_KSM "full_scans", "%lu", &full_scans); in wait_ksmd_full_scan()
|
/external/ltp/testcases/kernel/syscalls/mmap/ |
D | mmap10.c | 68 #define PATH_KSM "/sys/kernel/mm/ksm/" macro 95 if (access(PATH_KSM, F_OK) == -1) in main()
|
/external/ltp/testcases/kernel/include/ |
D | ksm_helper.h | 10 #define PATH_KSM "/sys/kernel/mm/ksm/" macro
|