/external/ltp/testcases/kernel/mem/lib/ |
D | mem.c | 232 SAFE_FILE_PRINTF(PATH_KSM "run", "1"); in testoom() 234 SAFE_FILE_PRINTF(PATH_KSM "run", "%d", ksm_run_orig); in testoom() 358 SAFE_FILE_PRINTF(MEMCG_LIMIT, "%ld", TESTMEM); in write_memcg() 360 SAFE_FILE_PRINTF(MEMCG_PATH_NEW "/tasks", "%d", getpid()); in write_memcg() 527 SAFE_FILE_PRINTF(PATH_KSM "max_page_sharing", "%ld", size * pages * num); in create_same_memory() 528 SAFE_FILE_PRINTF(PATH_KSM "run", "1"); in create_same_memory() 529 SAFE_FILE_PRINTF(PATH_KSM "pages_to_scan", "%ld", size * pages * num); in create_same_memory() 530 SAFE_FILE_PRINTF(PATH_KSM "sleep_millisecs", "0"); in create_same_memory() 549 SAFE_FILE_PRINTF(PATH_KSM "run", "2"); in create_same_memory() 555 SAFE_FILE_PRINTF(PATH_KSM "run", "0"); in create_same_memory() [all …]
|
/external/ltp/testcases/kernel/syscalls/madvise/ |
D | madvise06.c | 67 SAFE_FILE_PRINTF(drop_caches_fname, "3"); in setup() 91 SAFE_FILE_PRINTF("/proc/self/oom_score_adj", "%d", -1000); in setup() 92 SAFE_FILE_PRINTF(MNT_NAME"/"GROUP_NAME"/memory.limit_in_bytes", "%ld\n", in setup() 94 SAFE_FILE_PRINTF(MNT_NAME"/"GROUP_NAME"/memory.swappiness", "60"); in setup() 95 SAFE_FILE_PRINTF(MNT_NAME"/"GROUP_NAME"/tasks", "%d\n", getpid()); in setup() 101 SAFE_FILE_PRINTF(MNT_NAME"/tasks", "%d\n", getpid()); in cleanup()
|
D | madvise09.c | 176 SAFE_FILE_PRINTF(tasks_path, "%i", getpid()); in child() 207 SAFE_FILE_PRINTF(limit_in_bytes_path, "%u", usage); in child() 210 SAFE_FILE_PRINTF(memsw_limit_in_bytes_path, "%u", 2 * usage); in child() 267 SAFE_FILE_PRINTF(memsw_limit_in_bytes_path, "%u", old_memsw_limit); in child() 269 SAFE_FILE_PRINTF(limit_in_bytes_path, "%u", old_limit); in child()
|
D | madvise08.c | 92 SAFE_FILE_PRINTF(CORE_PATTERN, "%s", tmpcpattern); in setup() 115 SAFE_FILE_PRINTF(CORE_PATTERN, "%s", cpattern); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/move_pages/ |
D | move_pages12.c | 217 SAFE_FILE_PRINTF(path_hugepages_node1, in setup() 227 SAFE_FILE_PRINTF(path_hugepages_node2, in setup() 237 SAFE_FILE_PRINTF(PATH_NR_HUGEPAGES, "%ld", orig_hugepages + 8); in setup() 247 SAFE_FILE_PRINTF(PATH_NR_HUGEPAGES, "%ld", orig_hugepages); in cleanup() 250 SAFE_FILE_PRINTF(path_hugepages_node1, in cleanup() 255 SAFE_FILE_PRINTF(path_hugepages_node2, in cleanup()
|
/external/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
D | hugemmap05.c | 193 SAFE_FILE_PRINTF(path, "%ld", nr_hugepages); in cleanup() 197 SAFE_FILE_PRINTF(PATH_SHMMAX, "%llu", shmmax); in cleanup() 202 SAFE_FILE_PRINTF(pathover, "%ld", nr_overcommit_hugepages); in cleanup() 229 SAFE_FILE_PRINTF(PATH_SHMMAX, "%ld", in setup() 238 SAFE_FILE_PRINTF(path, "%ld", size); in setup() 251 SAFE_FILE_PRINTF(pathover, "%ld", size); in setup()
|
/external/ltp/testcases/kernel/sched/autogroup/ |
D | autogroup01.c | 45 SAFE_FILE_PRINTF(PATH_AUTOGROUP, "%d", 1); in do_test() 55 SAFE_FILE_PRINTF(PATH_AUTOGROUP, "%d", 0); in do_test() 85 SAFE_FILE_PRINTF(PATH_AUTOGROUP, "%d", orig_autogroup); in cleanup()
|
/external/ltp/testcases/kernel/mem/oom/ |
D | oom03.c | 44 SAFE_FILE_PRINTF(MEMCG_PATH_NEW "/tasks", "%d", getpid()); in verify_oom() 45 SAFE_FILE_PRINTF(MEMCG_LIMIT, "%ld", TESTMEM); in verify_oom() 56 SAFE_FILE_PRINTF(MEMCG_SW_LIMIT, "%ld", TESTMEM); in verify_oom()
|
D | oom05.c | 72 SAFE_FILE_PRINTF(MEMCG_SW_LIMIT, "%ld", TESTMEM); in verify_oom() 77 SAFE_FILE_PRINTF(MEMCG_SW_LIMIT, "-1"); in verify_oom()
|
/external/ltp/testcases/kernel/syscalls/clone/ |
D | clone09.c | 43 SAFE_FILE_PRINTF(sysctl_path, "%d", sysctl_net); in cleanup() 75 SAFE_FILE_PRINTF(sysctl_path, "%d", sysctl_net + 1); in do_test() 93 SAFE_FILE_PRINTF(sysctl_path, "%d", sysctl_net); in do_test()
|
/external/ltp/testcases/kernel/device-drivers/cpufreq/ |
D | cpufreq_boost.c | 98 SAFE_FILE_PRINTF(cleanup, governor, "%s", "performance"); in setup() 151 SAFE_FILE_PRINTF(cleanup, cdrv[id].file, "%s", cdrv[id].on_str); in test_run() 156 SAFE_FILE_PRINTF(cleanup, cdrv[id].file, "%s", cdrv[id].off_str); in test_run()
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl35.c | 68 SAFE_FILE_PRINTF("/proc/sys/fs/pipe-max-size", "%d", in setup() 79 SAFE_FILE_PRINTF("/proc/sys/fs/pipe-max-size", "%d", pipe_max_unpriv); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/keyctl/ |
D | keyctl02.c | 103 SAFE_FILE_PRINTF(PATH_KEY_COUNT_QUOTA, "%d", orig_maxkeys + LOOPS); in setup() 109 SAFE_FILE_PRINTF(PATH_KEY_COUNT_QUOTA, "%d", orig_maxkeys); in cleanup()
|
/external/ltp/testcases/cve/ |
D | cve-2017-2671.c | 75 SAFE_FILE_PRINTF(PING_SYSCTL_PATH, "0 0"); in setup() 93 SAFE_FILE_PRINTF(PING_SYSCTL_PATH, "%u %u", in cleanup()
|
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmat/ |
D | hugeshmat04.c | 91 SAFE_FILE_PRINTF(PATH_SHMMAX, "%ld", (long)SIZE); in setup() 109 SAFE_FILE_PRINTF(PATH_SHMMAX, "%ld", orig_shmmax); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/futimesat/ |
D | futimesat01.c | 114 SAFE_FILE_PRINTF(cleanup, testfile, testfile); in setup() 115 SAFE_FILE_PRINTF(cleanup, testfile2, testfile2); in setup()
|
/external/ltp/testcases/kernel/syscalls/fchmodat/ |
D | fchmodat01.c | 130 SAFE_FILE_PRINTF(cleanup, testfile, "%s", testfile); in setup() 131 SAFE_FILE_PRINTF(cleanup, testfile2, "%s", testfile2); in setup()
|
/external/ltp/testcases/kernel/syscalls/unlinkat/ |
D | unlinkat01.c | 121 SAFE_FILE_PRINTF(cleanup, testfile, testfile); in setup() 122 SAFE_FILE_PRINTF(cleanup, testfile2, testfile2); in setup()
|
/external/ltp/testcases/kernel/syscalls/faccessat/ |
D | faccessat01.c | 132 SAFE_FILE_PRINTF(cleanup, testfile, "%s", testfile); in setup() 133 SAFE_FILE_PRINTF(cleanup, testfile2, "%s", testfile2); in setup()
|
/external/ltp/testcases/kernel/device-drivers/acpi/ |
D | ltp_acpi.c | 63 SAFE_FILE_PRINTF(cleanup, dev_tcase, "%d", ACPI_TRAVERSE); in tc_acpi_str() 133 SAFE_FILE_PRINTF(cleanup, dev_tcase, "%d", i); in test_run()
|
/external/ltp/testcases/kernel/syscalls/fstatat/ |
D | fstatat01.c | 131 SAFE_FILE_PRINTF(cleanup, testfile, testfile); in setup() 132 SAFE_FILE_PRINTF(cleanup, testfile2, testfile2); in setup()
|
/external/ltp/testcases/kernel/device-drivers/zram/ |
D | zram03.c | 84 SAFE_FILE_PRINTF(cleanup, PATH_ZRAM "/disksize", "%ld", SIZE); in set_disksize() 139 SAFE_FILE_PRINTF(cleanup, PATH_ZRAM "/reset", "1"); in reset()
|
/external/ltp/testcases/kernel/syscalls/futex/ |
D | futex_wake04.c | 79 SAFE_FILE_PRINTF(NULL, PATH_NR_HUGEPAGES, "%d", 1); in setup() 86 SAFE_FILE_PRINTF(NULL, PATH_NR_HUGEPAGES, "%ld", orig_hugepages); in cleanup()
|
/external/ltp/testcases/network/netstress/ |
D | netstress.c | 156 SAFE_FILE_PRINTF(tfo_cfg, "%d", tfo_cfg_value); in do_cleanup() 160 SAFE_FILE_PRINTF(tcp_tw_reuse, "0"); in do_cleanup() 449 SAFE_FILE_PRINTF(rpath, "%ld", clnt_time); in client_run() 675 SAFE_FILE_PRINTF(tfo_cfg, "%d", tfo_value); in check_tfo_value() 694 SAFE_FILE_PRINTF(tcp_tw_reuse, "1"); in check_tw_reuse()
|
/external/ltp/testcases/kernel/syscalls/openat/ |
D | openat02.c | 112 SAFE_FILE_PRINTF(cleanup, TEST_FILE, "test file"); in setup() 121 SAFE_FILE_PRINTF(cleanup, TEST_FILE, "test file"); in testfunc_append()
|