/external/ltp/testcases/kernel/controllers/cpuctl/ |
D | cpuctl_latency_test.c | 64 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()
|
D | cpuctl_test02.c | 91 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()
|
D | cpuctl_latency_check_task.c | 76 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()
|
D | cpuctl_def_task01.c | 90 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()
|
D | cpuctl_test03.c | 88 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()
|
D | cpuctl_test04.c | 89 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()
|
D | cpuctl_test01.c | 90 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()
|
D | cpuctl_def_task03.c | 85 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()
|
D | cpuctl_def_task02.c | 89 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()
|
D | cpuctl_def_task04.c | 88 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/ |
D | memctl_test01.c | 69 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()
|