/third_party/ltp/testcases/kernel/mem/lib/ |
D | mem.c | 237 SAFE_FILE_PRINTF(PATH_KSM "run", "1"); in testoom() 239 SAFE_FILE_PRINTF(PATH_KSM "run", "%d", ksm_run_orig); in testoom() 482 SAFE_FILE_PRINTF(PATH_KSM "run", "2"); in create_same_memory() 483 SAFE_FILE_PRINTF(PATH_KSM "max_page_sharing", "%ld", size * pages * num); in create_same_memory() 486 SAFE_FILE_PRINTF(PATH_KSM "run", "1"); in create_same_memory() 487 SAFE_FILE_PRINTF(PATH_KSM "pages_to_scan", "%ld", size * pages * num); in create_same_memory() 488 SAFE_FILE_PRINTF(PATH_KSM "sleep_millisecs", "0"); in create_same_memory() 507 SAFE_FILE_PRINTF(PATH_KSM "run", "2"); in create_same_memory() 513 SAFE_FILE_PRINTF(PATH_KSM "run", "0"); in create_same_memory() 570 SAFE_FILE_PRINTF(PATH_KSM "sleep_millisecs", "0"); in test_ksm_merge_across_nodes() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/madvise/ |
D | madvise06.c | 86 SAFE_FILE_PRINTF("/proc/sys/vm/stat_refresh", "1"); in meminfo_diag() 109 SAFE_FILE_PRINTF(drop_caches_fname, "3"); in setup() 122 SAFE_FILE_PRINTF("/proc/self/oom_score_adj", "%d", -1000); in setup() 135 SAFE_FILE_PRINTF("/proc/sys/vm/swappiness", "%d", 60); in setup() 205 SAFE_FILE_PRINTF("/proc/sys/vm/stat_refresh", "1"); in test_advice_willneed()
|
D | madvise09.c | 164 SAFE_FILE_PRINTF(tasks_path, "%i", getpid()); in child() 195 SAFE_FILE_PRINTF(limit_in_bytes_path, "%u", usage); in child() 198 SAFE_FILE_PRINTF(memsw_limit_in_bytes_path, "%u", 2 * usage); in child() 255 SAFE_FILE_PRINTF(memsw_limit_in_bytes_path, "%u", old_memsw_limit); in child() 257 SAFE_FILE_PRINTF(limit_in_bytes_path, "%u", old_limit); in child()
|
/third_party/ltp/testcases/kernel/syscalls/fanotify/ |
D | fanotify17.c | 165 SAFE_FILE_PRINTF(UID_MAP, "%d %d %d", 0, 0, 1); in do_unshare() 191 SAFE_FILE_PRINTF(USERNS_MAX_GROUPS, "%d", groups); in test_fanotify() 196 SAFE_FILE_PRINTF(USERNS_MAX_MARKS, "%d", marks); in test_fanotify() 229 SAFE_FILE_PRINTF(MAX_USERNS, "%d", 10); in setup() 252 SAFE_FILE_PRINTF(MAX_USERNS, "%d", orig_max_userns); in cleanup()
|
/third_party/ltp/testcases/kernel/sched/autogroup/ |
D | autogroup01.c | 33 SAFE_FILE_PRINTF(PATH_AUTOGROUP, "%d", 1); in do_test() 43 SAFE_FILE_PRINTF(PATH_AUTOGROUP, "%d", 0); in do_test() 73 SAFE_FILE_PRINTF(PATH_AUTOGROUP, "%d", orig_autogroup); in cleanup()
|
/third_party/ltp/testcases/kernel/syscalls/move_pages/ |
D | move_pages12.c | 293 SAFE_FILE_PRINTF(path_hugepages_node1, in setup() 303 SAFE_FILE_PRINTF(path_hugepages_node2, in setup() 313 SAFE_FILE_PRINTF(PATH_NR_HUGEPAGES, "%ld", orig_hugepages + 8); in setup() 323 SAFE_FILE_PRINTF(PATH_NR_HUGEPAGES, "%ld", orig_hugepages); in cleanup() 326 SAFE_FILE_PRINTF(path_hugepages_node1, in cleanup() 331 SAFE_FILE_PRINTF(path_hugepages_node2, in cleanup()
|
/third_party/ltp/testcases/kernel/syscalls/clone/ |
D | clone09.c | 31 SAFE_FILE_PRINTF(sysctl_path, "%d", sysctl_net); in cleanup() 63 SAFE_FILE_PRINTF(sysctl_path, "%d", sysctl_net + 1); in do_test() 81 SAFE_FILE_PRINTF(sysctl_path, "%d", sysctl_net); in do_test()
|
/third_party/ltp/testcases/kernel/syscalls/setsockopt/ |
D | setsockopt05.c | 47 SAFE_FILE_PRINTF("/proc/self/setgroups", "deny"); in setup() 48 SAFE_FILE_PRINTF("/proc/self/uid_map", "0 %d 1", real_uid); in setup() 49 SAFE_FILE_PRINTF("/proc/self/gid_map", "0 %d 1", real_gid); in setup()
|
D | setsockopt06.c | 42 SAFE_FILE_PRINTF("/proc/self/setgroups", "deny"); in setup() 43 SAFE_FILE_PRINTF("/proc/self/uid_map", "0 %d 1", real_uid); in setup() 44 SAFE_FILE_PRINTF("/proc/self/gid_map", "0 %d 1", real_gid); in setup()
|
D | setsockopt07.c | 45 SAFE_FILE_PRINTF("/proc/self/setgroups", "deny"); in setup() 46 SAFE_FILE_PRINTF("/proc/self/uid_map", "0 %d 1", real_uid); in setup() 47 SAFE_FILE_PRINTF("/proc/self/gid_map", "0 %d 1", real_gid); in setup()
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
D | hugemmap05.c | 175 SAFE_FILE_PRINTF(PATH_SHMMAX, "%llu", shmmax); in cleanup() 180 SAFE_FILE_PRINTF(pathover, "%ld", nr_overcommit_hugepages); in cleanup() 211 SAFE_FILE_PRINTF(PATH_SHMMAX, "%ld", in setup() 217 SAFE_FILE_PRINTF(path, "%ld", size); in setup() 232 SAFE_FILE_PRINTF(pathover, "%ld", size); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/bind/ |
D | bind06.c | 41 SAFE_FILE_PRINTF("/proc/self/setgroups", "deny"); in setup() 42 SAFE_FILE_PRINTF("/proc/self/uid_map", "0 %d 1\n", real_uid); in setup() 43 SAFE_FILE_PRINTF("/proc/self/gid_map", "0 %d 1\n", real_gid); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/getxattr/ |
D | getxattr05.c | 106 SAFE_FILE_PRINTF(UID_MAP, "%d %d %d", 0, 0, 1); in do_unshare() 158 SAFE_FILE_PRINTF(MAX_USERNS, "%d", 10); in setup() 166 SAFE_FILE_PRINTF(MAX_USERNS, "%d", orig_max_userns); in cleanup()
|
/third_party/ltp/testcases/cve/ |
D | icmp_rate_limit01.c | 66 SAFE_FILE_PRINTF("/proc/self/setgroups", "deny"); in setup() 67 SAFE_FILE_PRINTF("/proc/self/uid_map", "0 %d 1\n", real_uid); in setup() 68 SAFE_FILE_PRINTF("/proc/self/gid_map", "0 %d 1\n", real_gid); in setup() 99 SAFE_FILE_PRINTF("/proc/sys/net/ipv4/conf/ltp_veth1/forwarding", "1"); in setup()
|
D | cve-2017-2671.c | 61 SAFE_FILE_PRINTF(PING_SYSCTL_PATH, "0 0"); in setup() 77 SAFE_FILE_PRINTF(PING_SYSCTL_PATH, "%u %u", in cleanup()
|
/third_party/ltp/lib/ |
D | tst_hugepage.c | 42 SAFE_FILE_PRINTF("/proc/sys/vm/drop_caches", "3"); in tst_request_hugepages() 57 SAFE_FILE_PRINTF(PATH_NR_HPAGES, "%lu", tst_hugepages); in tst_request_hugepages()
|
/third_party/ltp/testcases/kernel/device-drivers/cpufreq/ |
D | cpufreq_boost.c | 125 SAFE_FILE_PRINTF(cleanup, governor, "%s", "performance"); in setup() 178 SAFE_FILE_PRINTF(cleanup, cdrv[id].file, "%s", cdrv[id].on_str); in test_run() 183 SAFE_FILE_PRINTF(cleanup, cdrv[id].file, "%s", cdrv[id].off_str); in test_run()
|
/third_party/ltp/testcases/kernel/syscalls/ipc/msgget/ |
D | msgget05.c | 32 SAFE_FILE_PRINTF(NEXT_ID_PATH, "%d", queue_id[0]); in verify_msgget() 50 SAFE_FILE_PRINTF(NEXT_ID_PATH, "%d", pid); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/ipc/shmget/ |
D | shmget06.c | 33 SAFE_FILE_PRINTF(NEXT_ID_PATH, "%d", shm_id[0]); in verify_shmget() 51 SAFE_FILE_PRINTF(NEXT_ID_PATH, "%d", pid); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/add_key/ |
D | add_key05.c | 207 SAFE_FILE_PRINTF("/proc/sys/kernel/keys/gc_delay", "1"); in setup() 208 SAFE_FILE_PRINTF("/proc/sys/kernel/keys/maxkeys", "200"); in setup() 209 SAFE_FILE_PRINTF("/proc/sys/kernel/keys/maxbytes", "20000"); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/sendto/ |
D | sendto03.c | 50 SAFE_FILE_PRINTF("/proc/self/setgroups", "deny"); in setup() 51 SAFE_FILE_PRINTF("/proc/self/uid_map", "0 %d 1", real_uid); in setup() 52 SAFE_FILE_PRINTF("/proc/self/gid_map", "0 %d 1", real_gid); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl35.c | 55 SAFE_FILE_PRINTF("/proc/sys/fs/pipe-max-size", "%d", in setup() 66 SAFE_FILE_PRINTF("/proc/sys/fs/pipe-max-size", "%d", pipe_max_unpriv); in cleanup()
|
/third_party/ltp/testcases/kernel/syscalls/inotify/ |
D | inotify06.c | 57 SAFE_FILE_PRINTF(PROCFILE, "%d", TEARDOWNS + 128); in setup() 107 SAFE_FILE_PRINTF(PROCFILE, "%d", old_proc_limit); in cleanup()
|
/third_party/ltp/testcases/kernel/device-drivers/zram/ |
D | zram03.c | 42 SAFE_FILE_PRINTF(disksize_path, "%ld", SIZE); in set_disksize() 98 SAFE_FILE_PRINTF(reset_path, "1"); in reset() 230 SAFE_FILE_PRINTF(HOT_REMOVE_PATH, "%d", dev_num); in cleanup()
|
/third_party/ltp/testcases/kernel/syscalls/keyctl/ |
D | keyctl02.c | 125 SAFE_FILE_PRINTF(PATH_KEY_COUNT_QUOTA, "%d", orig_maxkeys + LOOPS + 1); in setup() 131 SAFE_FILE_PRINTF(PATH_KEY_COUNT_QUOTA, "%d", orig_maxkeys); in cleanup()
|