Home
last modified time | relevance | path

Searched refs:SAFE_FILE_PRINTF (Results 1 – 25 of 90) sorted by relevance

1234

/third_party/ltp/testcases/kernel/mem/lib/
Dmem.c237 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/
Dmadvise06.c86 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()
Dmadvise09.c164 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/
Dfanotify17.c165 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/
Dautogroup01.c33 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/
Dmove_pages12.c293 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/
Dclone09.c31 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/
Dsetsockopt05.c47 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()
Dsetsockopt06.c42 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()
Dsetsockopt07.c45 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/
Dhugemmap05.c175 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/
Dbind06.c41 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/
Dgetxattr05.c106 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/
Dicmp_rate_limit01.c66 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()
Dcve-2017-2671.c61 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/
Dtst_hugepage.c42 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/
Dcpufreq_boost.c125 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/
Dmsgget05.c32 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/
Dshmget06.c33 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/
Dadd_key05.c207 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/
Dsendto03.c50 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/
Dfcntl35.c55 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/
Dinotify06.c57 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/
Dzram03.c42 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/
Dkeyctl02.c125 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()

1234