Home
last modified time | relevance | path

Searched refs:mytaskfile (Results 1 – 11 of 11) sorted by relevance

/external/ltp/testcases/kernel/controllers/cpuctl/
Dcpuctl_latency_test.c64 char mytaskfile[FILENAME_MAX]; in main() local
89 strncpy(mytaskfile, argv[2], FILENAME_MAX); in main()
90 strncat(mytaskfile, "/tasks", in main()
91 FILENAME_MAX - strlen(mytaskfile) - 1); in main()
92 write_to_file(mytaskfile, "a", getpid()); in main()
Dcpuctl_test02.c91 char mygroup[FILENAME_MAX], mytaskfile[FILENAME_MAX]; in main() local
148 sprintf(mytaskfile, "%s", mygroup); in main()
150 strcat(mytaskfile, "/tasks"); in main()
153 write_to_file(mytaskfile, "a", pid); /* Assign the task to it's group */ in main()
181 if ((read_file(mytaskfile, GET_TASKS, &num_tasks)) < 0) in main()
183 mytaskfile); in main()
257 strcpy(mytaskfile, "/dev/cpuctl/group_2/tasks"); in main()
264 if ((read_file(mytaskfile, GET_TASKS, &num_tasks)) < 0) in main()
267 mytaskfile); in main()
Dcpuctl_latency_check_task.c76 char mytaskfile[FILENAME_MAX]; in main() local
97 strncpy(mytaskfile, argv[4], FILENAME_MAX); in main()
98 strncat(mytaskfile, "/tasks", in main()
99 FILENAME_MAX - strlen(mytaskfile) - 1); in main()
100 write_to_file(mytaskfile, "a", getpid()); in main()
Dcpuctl_def_task01.c90 char mygroup[FILENAME_MAX], mytaskfile[FILENAME_MAX]; in main() local
132 sprintf(mytaskfile, "%s", mygroup); in main()
134 strcat(mytaskfile, "/tasks"); in main()
137 write_to_file(mytaskfile, "a", pid); /* Assign task to it's group */ in main()
167 if ((read_file(mytaskfile, GET_TASKS, &num_tasks)) < 0) in main()
169 "in reading tasks files %s ", mytaskfile); in main()
Dcpuctl_test03.c88 char mygroup[FILENAME_MAX], mytaskfile[FILENAME_MAX]; in main() local
144 sprintf(mytaskfile, "%s", mygroup); in main()
146 strcat(mytaskfile, "/tasks"); in main()
149 write_to_file(mytaskfile, "a", pid); /* Assign the task to it's group */ in main()
177 if ((read_file(mytaskfile, GET_TASKS, &num_tasks)) < 0) in main()
179 mytaskfile); in main()
Dcpuctl_test04.c89 char mygroup[FILENAME_MAX], mytaskfile[FILENAME_MAX]; in main() local
152 sprintf(mytaskfile, "%s", mygroup); in main()
153 strcat(mytaskfile, "/tasks"); in main()
160 write_to_file(mytaskfile, "a", getpid()); /* Assign the task to it's group */ in main()
188 if ((read_file(mytaskfile, GET_TASKS, &num_tasks)) < 0) in main()
190 mytaskfile); in main()
Dcpuctl_test01.c90 char mygroup[FILENAME_MAX], mytaskfile[FILENAME_MAX]; in main() local
135 sprintf(mytaskfile, "%s", mygroup); in main()
137 strcat(mytaskfile, "/tasks"); in main()
140 write_to_file(mytaskfile, "a", pid); /* Assign the task to it's group */ in main()
170 if ((read_file(mytaskfile, GET_TASKS, &num_tasks)) < 0) in main()
172 mytaskfile); in main()
Dcpuctl_def_task03.c85 char mygroup[FILENAME_MAX], mytaskfile[FILENAME_MAX]; in main() local
141 sprintf(mytaskfile, "%s", mygroup); in main()
143 strcat(mytaskfile, "/tasks"); in main()
146 write_to_file(mytaskfile, "a", pid); /* Assign task to it's group */ in main()
174 if ((read_file(mytaskfile, GET_TASKS, &num_tasks)) < 0) in main()
176 "in reading tasks files %s ", mytaskfile); in main()
Dcpuctl_def_task02.c89 char mygroup[FILENAME_MAX], mytaskfile[FILENAME_MAX]; in main() local
145 sprintf(mytaskfile, "%s", mygroup); in main()
147 strcat(mytaskfile, "/tasks"); in main()
150 write_to_file(mytaskfile, "a", pid); /* Assign task to it's group */ in main()
178 if ((read_file(mytaskfile, GET_TASKS, &num_tasks)) < 0) in main()
180 "in reading tasks files %s ", mytaskfile); in main()
Dcpuctl_def_task04.c88 char mygroup[FILENAME_MAX], mytaskfile[FILENAME_MAX]; in main() local
144 sprintf(mytaskfile, "%s", mygroup); in main()
146 strcat(mytaskfile, "/tasks"); in main()
149 write_to_file(mytaskfile, "a", getpid()); in main()
184 if ((read_file(mytaskfile, GET_TASKS, &num_tasks)) < 0) in main()
186 "in reading tasks files %s ", mytaskfile); in main()
/external/ltp/testcases/kernel/controllers/memctl/
Dmemctl_test01.c69 char mygroup[FILENAME_MAX], mytaskfile[FILENAME_MAX]; in main() local
107 sprintf(mytaskfile, "%s", mygroup); in main()
108 strcat(mytaskfile, "/tasks"); in main()
110 write_to_file(mytaskfile, "a", getpid()); /* Assign the task to it's group */ in main()