/external/ltp/testcases/kernel/controllers/cpuctl/ |
cpuctl_test01.c | 91 char mysharesfile[FILENAME_MAX], ch; local 136 sprintf(mysharesfile, "%s", mygroup); 138 strcat(mysharesfile, "/cpu.shares"); 141 write_to_file(mysharesfile, "w", myshares); 166 if ((fmyshares = read_shares_file(mysharesfile)) < 2) 168 mysharesfile); 230 write_to_file(mysharesfile, "w", myshares); 238 read_shares_file(mysharesfile)) < 2) 241 mysharesfile);
|
cpuctl_def_task01.c | 91 char mysharesfile[FILENAME_MAX], ch; local 133 sprintf(mysharesfile, "%s", mygroup); 135 strcat(mysharesfile, "/cpu.shares"); 138 write_to_file(mysharesfile, "w", myshares); 163 if ((fmyshares = read_shares_file(mysharesfile)) < 2) 165 "in reading shares files %s ", mysharesfile); 234 write_to_file(mysharesfile, "w", myshares);
|
cpuctl_def_task04.c | 89 char mysharesfile[FILENAME_MAX], ch; local 145 sprintf(mysharesfile, "%s", mygroup); 147 strcat(mysharesfile, "/cpu.shares"); 156 write_to_file(mysharesfile, "w", mygroup_shares); 180 if ((fmyshares = read_shares_file(mysharesfile)) < 2) 182 "in reading shares files %s ", mysharesfile);
|
cpuctl_test04.c | 90 char mysharesfile[FILENAME_MAX], ch; local 154 sprintf(mysharesfile, "%s", mygroup); 155 strcat(mysharesfile, "/cpu.shares"); 158 write_to_file(mysharesfile, "w", mygroup_shares); /* Write the shares of the group */ 184 if ((fmyshares = read_shares_file(mysharesfile)) < 2) 186 mysharesfile);
|
cpuctl_def_task02.c | 90 char mysharesfile[FILENAME_MAX], ch; local 146 sprintf(mysharesfile, "%s", mygroup); 148 strcat(mysharesfile, "/cpu.shares"); 174 if ((fmyshares = read_shares_file(mysharesfile)) < 2) 176 "in reading shares files %s ", mysharesfile);
|
cpuctl_def_task03.c | 86 char mysharesfile[FILENAME_MAX], ch; local 142 sprintf(mysharesfile, "%s", mygroup); 144 strcat(mysharesfile, "/cpu.shares"); 170 if ((fmyshares = read_shares_file(mysharesfile)) < 2) 172 "in reading shares files %s ", mysharesfile);
|
cpuctl_test02.c | 92 char mysharesfile[FILENAME_MAX], ch; local 149 sprintf(mysharesfile, "%s", mygroup); 151 strcat(mysharesfile, "/cpu.shares"); 177 if ((fmyshares = read_shares_file(mysharesfile)) < 2) 179 mysharesfile);
|
cpuctl_test03.c | 89 char mysharesfile[FILENAME_MAX], ch; local 145 sprintf(mysharesfile, "%s", mygroup); 147 strcat(mysharesfile, "/cpu.shares"); 173 if ((fmyshares = read_shares_file(mysharesfile)) < 2) 175 mysharesfile);
|