Home
last modified time | relevance | path

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

1234

/external/ltp/testcases/kernel/sched/eas/
Dsched_boost.c75 SAFE_FILE_PRINTF(STUNE_TEST_PATH "/tasks", "%d", task_pid); in test_fn()
86 SAFE_FILE_PRINTF(STUNE_ROOT_TASKS, "%d", task_pid); in test_fn()
111 SAFE_FILE_PRINTF(STUNE_TEST_PATH "/schedtune.boost", in run_test()
165 SAFE_FILE_PRINTF(STUNE_TEST_PATH "/schedtune.colocate", in run()
169 SAFE_FILE_PRINTF(STUNE_TEST_PATH "/schedtune.prefer_idle", in run()
174 SAFE_FILE_PRINTF(STUNE_TEST_PATH "/schedtune.sched_boost_enabled", in run()
179 SAFE_FILE_PRINTF(STUNE_TEST_PATH "/schedtune.sched_boost_no_override", in run()
/external/ltp/testcases/kernel/mem/lib/
Dmem.c234 SAFE_FILE_PRINTF(PATH_KSM "run", "1"); in testoom()
236 SAFE_FILE_PRINTF(PATH_KSM "run", "%d", ksm_run_orig); in testoom()
317 SAFE_FILE_PRINTF(MEMCG_LIMIT, "%ld", TESTMEM); in write_memcg()
319 SAFE_FILE_PRINTF(MEMCG_PATH_NEW "/tasks", "%d", getpid()); in write_memcg()
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()
492 SAFE_FILE_PRINTF(PATH_KSM "sleep_millisecs", "0"); in create_same_memory()
511 SAFE_FILE_PRINTF(PATH_KSM "run", "2"); in create_same_memory()
[all …]
/external/ltp/testcases/kernel/syscalls/madvise/
Dmadvise06.c54 SAFE_FILE_PRINTF(drop_caches_fname, "3"); in setup()
78 SAFE_FILE_PRINTF("/proc/self/oom_score_adj", "%d", -1000); in setup()
79 SAFE_FILE_PRINTF(MNT_NAME"/"GROUP_NAME"/memory.limit_in_bytes", "%ld\n", in setup()
81 SAFE_FILE_PRINTF(MNT_NAME"/"GROUP_NAME"/memory.swappiness", "60"); in setup()
82 SAFE_FILE_PRINTF(MNT_NAME"/"GROUP_NAME"/tasks", "%d\n", getpid()); in setup()
88 SAFE_FILE_PRINTF(MNT_NAME"/tasks", "%d\n", getpid()); in cleanup()
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()
/external/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()
/external/ltp/testcases/kernel/mem/oom/
Doom03.c47 SAFE_FILE_PRINTF(MEMCG_PATH_NEW "/tasks", "%d", getpid()); in verify_oom()
48 SAFE_FILE_PRINTF(MEMCG_LIMIT, "%ld", TESTMEM); in verify_oom()
59 SAFE_FILE_PRINTF(MEMCG_SW_LIMIT, "%ld", TESTMEM); in verify_oom()
Doom05.c76 SAFE_FILE_PRINTF(MEMCG_SW_LIMIT, "%ld", TESTMEM); in verify_oom()
81 SAFE_FILE_PRINTF(MEMCG_SW_LIMIT, "-1"); in verify_oom()
/external/ltp/testcases/kernel/mem/hugetlb/hugemmap/
Dhugemmap05.c181 SAFE_FILE_PRINTF(path, "%ld", nr_hugepages); in cleanup()
185 SAFE_FILE_PRINTF(PATH_SHMMAX, "%llu", shmmax); in cleanup()
190 SAFE_FILE_PRINTF(pathover, "%ld", nr_overcommit_hugepages); in cleanup()
217 SAFE_FILE_PRINTF(PATH_SHMMAX, "%ld", in setup()
226 SAFE_FILE_PRINTF(path, "%ld", size); in setup()
239 SAFE_FILE_PRINTF(pathover, "%ld", size); in setup()
/external/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()
/external/ltp/testcases/kernel/syscalls/move_pages/
Dmove_pages12.c282 SAFE_FILE_PRINTF(path_hugepages_node1, in setup()
292 SAFE_FILE_PRINTF(path_hugepages_node2, in setup()
302 SAFE_FILE_PRINTF(PATH_NR_HUGEPAGES, "%ld", orig_hugepages + 8); in setup()
312 SAFE_FILE_PRINTF(PATH_NR_HUGEPAGES, "%ld", orig_hugepages); in cleanup()
315 SAFE_FILE_PRINTF(path_hugepages_node1, in cleanup()
320 SAFE_FILE_PRINTF(path_hugepages_node2, in cleanup()
/external/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()
/external/ltp/testcases/kernel/device-drivers/cpufreq/
Dcpufreq_boost.c122 SAFE_FILE_PRINTF(cleanup, governor, "%s", "performance"); in setup()
175 SAFE_FILE_PRINTF(cleanup, cdrv[id].file, "%s", cdrv[id].on_str); in test_run()
180 SAFE_FILE_PRINTF(cleanup, cdrv[id].file, "%s", cdrv[id].off_str); in test_run()
/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl35.c56 SAFE_FILE_PRINTF("/proc/sys/fs/pipe-max-size", "%d", in setup()
67 SAFE_FILE_PRINTF("/proc/sys/fs/pipe-max-size", "%d", pipe_max_unpriv); in cleanup()
/external/ltp/testcases/cve/
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()
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmat/
Dhugeshmat04.c91 SAFE_FILE_PRINTF(PATH_SHMMAX, "%ld", (long)SIZE); in setup()
110 SAFE_FILE_PRINTF(PATH_SHMMAX, "%ld", orig_shmmax); in cleanup()
/external/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()
/external/ltp/testcases/kernel/syscalls/futimesat/
Dfutimesat01.c114 SAFE_FILE_PRINTF(cleanup, testfile, testfile); in setup()
115 SAFE_FILE_PRINTF(cleanup, testfile2, testfile2); in setup()
/external/ltp/testcases/kernel/syscalls/unlinkat/
Dunlinkat01.c121 SAFE_FILE_PRINTF(cleanup, testfile, testfile); in setup()
122 SAFE_FILE_PRINTF(cleanup, testfile2, testfile2); in setup()
/external/ltp/testcases/kernel/syscalls/fchmodat/
Dfchmodat01.c130 SAFE_FILE_PRINTF(cleanup, testfile, "%s", testfile); in setup()
131 SAFE_FILE_PRINTF(cleanup, testfile2, "%s", testfile2); in setup()
/external/ltp/testcases/kernel/syscalls/faccessat/
Dfaccessat01.c132 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/
Dltp_acpi.c64 SAFE_FILE_PRINTF(cleanup, dev_tcase, "%d", ACPI_TRAVERSE); in tc_acpi_str()
134 SAFE_FILE_PRINTF(cleanup, dev_tcase, "%d", i); in test_run()
/external/ltp/testcases/kernel/syscalls/fstatat/
Dfstatat01.c131 SAFE_FILE_PRINTF(cleanup, testfile, testfile); in setup()
132 SAFE_FILE_PRINTF(cleanup, testfile2, testfile2); in setup()
/external/ltp/testcases/kernel/syscalls/migrate_pages/
Dmigrate_pages03.c97 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/syscalls/futex/
Dfutex_wake04.c81 SAFE_FILE_PRINTF(NULL, PATH_NR_HUGEPAGES, "%d", 1); in setup()
89 SAFE_FILE_PRINTF(NULL, PATH_NR_HUGEPAGES, "%ld", orig_hugepages); in cleanup()
/external/ltp/testcases/kernel/syscalls/inotify/
Dinotify08.c75 SAFE_FILE_PRINTF(FILE_PATH, "1"); in verify_inotify()
152 SAFE_FILE_PRINTF("/proc/sys/vm/drop_caches", "2"); in setup()

1234