Home
last modified time | relevance | path

Searched refs:PATH_KSM (Results 1 – 11 of 11) sorted by relevance

/external/ltp/testcases/kernel/mem/ksm/
Dksm06.c70 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()
Dksm01.c69 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()
Dksm03.c72 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()
Dksm02.c87 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()
Dksm04.c90 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()
Dksm05.c88 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/
Dmem.c228 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/
Dmigrate_pages03.c52 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/
Dksm_helper.c18 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/
Dmmap10.c68 #define PATH_KSM "/sys/kernel/mm/ksm/" macro
95 if (access(PATH_KSM, F_OK) == -1) in main()
/external/ltp/testcases/kernel/include/
Dksm_helper.h10 #define PATH_KSM "/sys/kernel/mm/ksm/" macro