Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/controllers/cpuctl/
Dcpuctl_test02.c90 char mygroup[FILENAME_MAX], mytaskfile[FILENAME_MAX]; in main() local
147 sprintf(mytaskfile, "%s", mygroup); in main()
149 strcat(mytaskfile, "/tasks"); in main()
152 write_to_file(mytaskfile, "a", pid); /* Assign the task to it's group */ in main()
180 if ((read_file(mytaskfile, GET_TASKS, &num_tasks)) < 0) in main()
182 mytaskfile); in main()
256 strcpy(mytaskfile, "/dev/cpuctl/group_2/tasks"); in main()
263 if ((read_file(mytaskfile, GET_TASKS, &num_tasks)) < 0) in main()
266 mytaskfile); in main()
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_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.c88 char mygroup[FILENAME_MAX], mytaskfile[FILENAME_MAX]; in main() local
130 sprintf(mytaskfile, "%s", mygroup); in main()
132 strcat(mytaskfile, "/tasks"); in main()
135 write_to_file(mytaskfile, "a", pid); /* Assign task to it's group */ in main()
165 if ((read_file(mytaskfile, GET_TASKS, &num_tasks)) < 0) in main()
167 "in reading tasks files %s ", mytaskfile); in main()
Dcpuctl_test03.c86 char mygroup[FILENAME_MAX], mytaskfile[FILENAME_MAX]; in main() local
142 sprintf(mytaskfile, "%s", mygroup); in main()
144 strcat(mytaskfile, "/tasks"); in main()
147 write_to_file(mytaskfile, "a", pid); /* Assign the task to it's group */ in main()
175 if ((read_file(mytaskfile, GET_TASKS, &num_tasks)) < 0) in main()
177 mytaskfile); in main()
Dcpuctl_def_task04.c86 char mygroup[FILENAME_MAX], mytaskfile[FILENAME_MAX]; in main() local
142 sprintf(mytaskfile, "%s", mygroup); in main()
144 strcat(mytaskfile, "/tasks"); in main()
147 write_to_file(mytaskfile, "a", getpid()); in main()
182 if ((read_file(mytaskfile, GET_TASKS, &num_tasks)) < 0) in main()
184 "in reading tasks files %s ", mytaskfile); in main()
Dcpuctl_def_task03.c83 char mygroup[FILENAME_MAX], mytaskfile[FILENAME_MAX]; in main() local
139 sprintf(mytaskfile, "%s", mygroup); in main()
141 strcat(mytaskfile, "/tasks"); in main()
144 write_to_file(mytaskfile, "a", pid); /* Assign task to it's group */ in main()
172 if ((read_file(mytaskfile, GET_TASKS, &num_tasks)) < 0) in main()
174 "in reading tasks files %s ", mytaskfile); in main()
Dcpuctl_test04.c87 char mygroup[FILENAME_MAX], mytaskfile[FILENAME_MAX]; in main() local
150 sprintf(mytaskfile, "%s", mygroup); in main()
151 strcat(mytaskfile, "/tasks"); in main()
158 write_to_file(mytaskfile, "a", getpid()); /* Assign the task to it's group */ in main()
186 if ((read_file(mytaskfile, GET_TASKS, &num_tasks)) < 0) in main()
188 mytaskfile); in main()
Dcpuctl_test01.c88 char mygroup[FILENAME_MAX], mytaskfile[FILENAME_MAX]; in main() local
133 sprintf(mytaskfile, "%s", mygroup); in main()
135 strcat(mytaskfile, "/tasks"); in main()
138 write_to_file(mytaskfile, "a", pid); /* Assign the task to it's group */ in main()
168 if ((read_file(mytaskfile, GET_TASKS, &num_tasks)) < 0) in main()
170 mytaskfile); in main()
Dcpuctl_def_task02.c87 char mygroup[FILENAME_MAX], mytaskfile[FILENAME_MAX]; in main() local
143 sprintf(mytaskfile, "%s", mygroup); in main()
145 strcat(mytaskfile, "/tasks"); in main()
148 write_to_file(mytaskfile, "a", pid); /* Assign task to it's group */ in main()
176 if ((read_file(mytaskfile, GET_TASKS, &num_tasks)) < 0) in main()
178 "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()