Home
last modified time | relevance | path

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

1234

/external/ltp/testcases/kernel/sched/eas/
Dsched_boost.c74 SAFE_FILE_PRINTF(STUNE_TEST_PATH "/tasks", "%d", task_pid); in test_fn()
81 SAFE_FILE_PRINTF(STUNE_ROOT_TASKS, "%d", task_pid); in test_fn()
106 SAFE_FILE_PRINTF(STUNE_TEST_PATH "/schedtune.boost", in run_test()
108 SAFE_FILE_PRINTF(TRACING_DIR "trace", "\n"); in run_test()
109 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "1"); in run_test()
112 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run_test()
152 SAFE_FILE_PRINTF(STUNE_TEST_PATH "/schedtune.colocate", in run()
154 SAFE_FILE_PRINTF(STUNE_TEST_PATH "/schedtune.prefer_idle", in run()
156 SAFE_FILE_PRINTF(STUNE_TEST_PATH "/schedtune.sched_boost_enabled", in run()
158 SAFE_FILE_PRINTF(STUNE_TEST_PATH "/schedtune.sched_boost_no_override", in run()
[all …]
Dsugov_wakeups.c37 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run()
38 SAFE_FILE_PRINTF(TRACING_DIR "buffer_size_kb", "16384"); in run()
39 SAFE_FILE_PRINTF(TRACING_DIR "set_event", TRACE_EVENTS); in run()
40 SAFE_FILE_PRINTF(TRACING_DIR "trace", "\n"); in run()
41 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "1"); in run()
46 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run()
Dsugov_stale_util.c56 SAFE_FILE_PRINTF(TRACING_DIR "trace_marker", in event_fn()
59 SAFE_FILE_PRINTF(TRACING_DIR "trace_marker", in event_fn()
86 SAFE_FILE_PRINTF(TRACING_DIR "trace_marker", "sleeping"); in burn_fn()
208 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run()
209 SAFE_FILE_PRINTF(TRACING_DIR "buffer_size_kb", "16384"); in run()
210 SAFE_FILE_PRINTF(TRACING_DIR "set_event", TRACE_EVENTS); in run()
211 SAFE_FILE_PRINTF(TRACING_DIR "trace", "\n"); in run()
212 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "1"); in run()
221 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run()
Deas_small_big_toggle.c39 SAFE_FILE_PRINTF(TRACING_DIR "trace_marker", "SMALL TASK"); in task_fn()
42 SAFE_FILE_PRINTF(TRACING_DIR "trace_marker", "CPU HOG"); in task_fn()
207 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run()
208 SAFE_FILE_PRINTF(TRACING_DIR "buffer_size_kb", "16384"); in run()
209 SAFE_FILE_PRINTF(TRACING_DIR "set_event", TRACE_EVENTS); in run()
210 SAFE_FILE_PRINTF(TRACING_DIR "trace", "\n"); in run()
211 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "1"); in run()
217 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run()
Dsched_latency_rt.c46 SAFE_FILE_PRINTF(TRACING_DIR "trace_marker", "WAKING"); in cfs_fn()
120 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run()
121 SAFE_FILE_PRINTF(TRACING_DIR "buffer_size_kb", "16384"); in run()
122 SAFE_FILE_PRINTF(TRACING_DIR "set_event", TRACE_EVENTS); in run()
123 SAFE_FILE_PRINTF(TRACING_DIR "trace", "\n"); in run()
124 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "1"); in run()
132 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run()
Dsched_latency_dl.c64 SAFE_FILE_PRINTF(TRACING_DIR "trace_marker", "WAKING"); in cfs_fn()
138 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run()
139 SAFE_FILE_PRINTF(TRACING_DIR "buffer_size_kb", "16384"); in run()
140 SAFE_FILE_PRINTF(TRACING_DIR "set_event", TRACE_EVENTS); in run()
141 SAFE_FILE_PRINTF(TRACING_DIR "trace", "\n"); in run()
142 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "1"); in run()
150 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run()
Deas_big_to_small.c38 SAFE_FILE_PRINTF(TRACING_DIR "trace_marker", "SMALL TASK"); in task_fn()
149 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run()
150 SAFE_FILE_PRINTF(TRACING_DIR "buffer_size_kb", "16384"); in run()
151 SAFE_FILE_PRINTF(TRACING_DIR "set_event", TRACE_EVENTS); in run()
152 SAFE_FILE_PRINTF(TRACING_DIR "trace", "\n"); in run()
153 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "1"); in run()
159 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run()
Deas_small_to_big.c39 SAFE_FILE_PRINTF(TRACING_DIR "trace_marker", "CPU HOG"); in task_fn()
149 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run()
150 SAFE_FILE_PRINTF(TRACING_DIR "buffer_size_kb", "16384"); in run()
151 SAFE_FILE_PRINTF(TRACING_DIR "set_event", TRACE_EVENTS); in run()
152 SAFE_FILE_PRINTF(TRACING_DIR "trace", "\n"); in run()
153 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "1"); in run()
159 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run()
Deas_one_small_task.c97 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run()
98 SAFE_FILE_PRINTF(TRACING_DIR "buffer_size_kb", "16384"); in run()
99 SAFE_FILE_PRINTF(TRACING_DIR "set_event", TRACE_EVENTS); in run()
100 SAFE_FILE_PRINTF(TRACING_DIR "trace", "\n"); in run()
101 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "1"); in run()
107 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run()
Dsugov_latency.c68 SAFE_FILE_PRINTF(TRACING_DIR "trace_marker", "affined"); in burn_fn()
70 SAFE_FILE_PRINTF(TRACING_DIR "trace_marker", "small task"); in burn_fn()
208 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run()
209 SAFE_FILE_PRINTF(TRACING_DIR "buffer_size_kb", "16384"); in run()
210 SAFE_FILE_PRINTF(TRACING_DIR "set_event", TRACE_EVENTS); in run()
211 SAFE_FILE_PRINTF(TRACING_DIR "trace", "\n"); in run()
212 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "1"); in run()
218 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run()
Deas_one_big_task.c114 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run()
115 SAFE_FILE_PRINTF(TRACING_DIR "buffer_size_kb", "16384"); in run()
116 SAFE_FILE_PRINTF(TRACING_DIR "set_event", TRACE_EVENTS); in run()
117 SAFE_FILE_PRINTF(TRACING_DIR "trace", "\n"); in run()
118 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "1"); in run()
124 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run()
Dsched_dl_runtime.c52 SAFE_FILE_PRINTF(TRACING_DIR "trace_marker", "DL START"); in dl_fn()
176 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run()
177 SAFE_FILE_PRINTF(TRACING_DIR "buffer_size_kb", "16384"); in run()
178 SAFE_FILE_PRINTF(TRACING_DIR "set_event", TRACE_EVENTS); in run()
179 SAFE_FILE_PRINTF(TRACING_DIR "trace", "\n"); in run()
180 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "1"); in run()
186 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run()
Dsched_prio_3_rr.c61 SAFE_FILE_PRINTF(TRACING_DIR "trace_marker", "TEST START"); in rt_a_fn()
150 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run()
151 SAFE_FILE_PRINTF(TRACING_DIR "buffer_size_kb", "16384"); in run()
152 SAFE_FILE_PRINTF(TRACING_DIR "set_event", TRACE_EVENTS); in run()
153 SAFE_FILE_PRINTF(TRACING_DIR "trace", "\n"); in run()
154 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "1"); in run()
165 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run()
Deas_two_big_three_small.c119 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run()
120 SAFE_FILE_PRINTF(TRACING_DIR "buffer_size_kb", "16384"); in run()
121 SAFE_FILE_PRINTF(TRACING_DIR "set_event", TRACE_EVENTS); in run()
122 SAFE_FILE_PRINTF(TRACING_DIR "trace", "\n"); in run()
123 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "1"); in run()
131 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run()
Dsched_cfs_prio.c184 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run()
185 SAFE_FILE_PRINTF(TRACING_DIR "buffer_size_kb", "16384"); in run()
186 SAFE_FILE_PRINTF(TRACING_DIR "set_event", TRACE_EVENTS); in run()
187 SAFE_FILE_PRINTF(TRACING_DIR "trace", "\n"); in run()
188 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "1"); in run()
197 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run()
Dsched_prio_3_fifo.c228 SAFE_FILE_PRINTF(TRACING_DIR "trace_marker", "TEST START"); in rt_low_fn_a()
356 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); in run()
357 SAFE_FILE_PRINTF(TRACING_DIR "buffer_size_kb", "16384"); in run()
358 SAFE_FILE_PRINTF(TRACING_DIR "set_event", TRACE_EVENTS); in run()
359 SAFE_FILE_PRINTF(TRACING_DIR "trace", "\n"); in run()
360 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "1"); in run()
377 SAFE_FILE_PRINTF(TRACING_DIR "tracing_on", "0"); 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 "max_page_sharing", "%ld", size * pages * num); in create_same_memory()
487 SAFE_FILE_PRINTF(PATH_KSM "run", "1"); in create_same_memory()
488 SAFE_FILE_PRINTF(PATH_KSM "pages_to_scan", "%ld", size * pages * num); in create_same_memory()
489 SAFE_FILE_PRINTF(PATH_KSM "sleep_millisecs", "0"); in create_same_memory()
508 SAFE_FILE_PRINTF(PATH_KSM "run", "2"); in create_same_memory()
514 SAFE_FILE_PRINTF(PATH_KSM "run", "0"); in create_same_memory()
[all …]
/external/ltp/testcases/kernel/syscalls/madvise/
Dmadvise06.c67 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()
Dmadvise09.c176 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()
/external/ltp/testcases/kernel/syscalls/move_pages/
Dmove_pages12.c220 SAFE_FILE_PRINTF(path_hugepages_node1, in setup()
230 SAFE_FILE_PRINTF(path_hugepages_node2, in setup()
240 SAFE_FILE_PRINTF(PATH_NR_HUGEPAGES, "%ld", orig_hugepages + 8); in setup()
250 SAFE_FILE_PRINTF(PATH_NR_HUGEPAGES, "%ld", orig_hugepages); in cleanup()
253 SAFE_FILE_PRINTF(path_hugepages_node1, in cleanup()
258 SAFE_FILE_PRINTF(path_hugepages_node2, in cleanup()
/external/ltp/testcases/kernel/mem/hugetlb/hugemmap/
Dhugemmap05.c193 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/
Dautogroup01.c45 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/
Doom03.c46 SAFE_FILE_PRINTF(MEMCG_PATH_NEW "/tasks", "%d", getpid()); in verify_oom()
47 SAFE_FILE_PRINTF(MEMCG_LIMIT, "%ld", TESTMEM); in verify_oom()
58 SAFE_FILE_PRINTF(MEMCG_SW_LIMIT, "%ld", TESTMEM); in verify_oom()
/external/ltp/testcases/kernel/syscalls/clone/
Dclone09.c43 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/syscalls/getxattr/
Dgetxattr05.c104 SAFE_FILE_PRINTF(UID_MAP, "%d %d %d", 0, 0, 1); in do_unshare()
149 SAFE_FILE_PRINTF(MAX_USERNS, "%d", 10); in setup()
156 SAFE_FILE_PRINTF(MAX_USERNS, "%d", orig_max_userns); in cleanup()

1234