/external/ltp/testcases/kernel/controllers/cpuctl/ |
D | cpuctl_test02.c | 90 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()
|
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_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 | 88 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()
|
D | cpuctl_test03.c | 86 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()
|
D | cpuctl_def_task04.c | 86 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()
|
D | cpuctl_def_task03.c | 83 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()
|
D | cpuctl_test04.c | 87 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()
|
D | cpuctl_test01.c | 88 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()
|
D | cpuctl_def_task02.c | 87 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/ |
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()
|