HomeSort by relevance Sort by last modified time
    Searched refs:TIME_INTERVAL (Results 1 - 8 of 8) sorted by null

  /external/ltp/testcases/kernel/controllers/cpuctl/
cpuctl_def_task01.c 68 #define TIME_INTERVAL 30 /* Time interval in seconds */
69 #define NUM_INTERVALS 3 /* How many iterations of TIME_INTERVAL */
89 int num_cpus, test_num, len; /* Total time = TIME_INTERVAL*num_cpus */
181 alarm(TIME_INTERVAL);
184 * Let the task run on cpu for TIME_INTERVAL. Time of this
186 * TIME_INTERVAL to measure cpu usage
192 /* Duration in case its not exact TIME_INTERVAL */
207 if (delta_time > TIME_INTERVAL)
212 (TIME_INTERVAL * num_cpus);
cpuctl_def_task02.c 65 #define TIME_INTERVAL 30 /* Time interval in seconds */
66 #define NUM_INTERVALS 3 /* How many iterations of TIME_INTERVAL */
192 alarm(TIME_INTERVAL);
195 * Let the task run on cpu for TIME_INTERVAL. Time of this
197 * TIME_INTERVAL to measure cpu usage
203 /* Duration in case its not exact TIME_INTERVAL */
218 if (delta_time > TIME_INTERVAL)
223 (TIME_INTERVAL * num_cpus);
cpuctl_def_task03.c 66 #define TIME_INTERVAL 30 /* Time interval in seconds */
67 #define NUM_INTERVALS 2 /* How many iterations of TIME_INTERVAL */
188 alarm(TIME_INTERVAL);
191 * Let the task run on cpu for TIME_INTERVAL. Time of this
193 * TIME_INTERVAL to measure cpu usage
199 /* Duration in case its not exact TIME_INTERVAL */
214 if (delta_time > TIME_INTERVAL)
219 (TIME_INTERVAL * num_cpus);
cpuctl_def_task04.c 66 #define TIME_INTERVAL 100 /* Time interval in seconds */
67 #define NUM_INTERVALS 2 /* How many iterations of TIME_INTERVAL */
198 alarm(TIME_INTERVAL);
201 * Let the task run on cpu for TIME_INTERVAL. Time of this
203 * TIME_INTERVAL to measure cpu usage
209 /* Duration in case its not exact TIME_INTERVAL */
224 if (delta_time > TIME_INTERVAL)
229 (TIME_INTERVAL * num_cpus);
cpuctl_test01.c 67 #define TIME_INTERVAL 30 /* Time interval in seconds */
68 #define NUM_INTERVALS 3 /* How many iterations of TIME_INTERVAL */
89 int len; /* Total time = TIME_INTERVAL *num_cpus in the machine */
181 alarm(TIME_INTERVAL);
183 while (!timer_expired) /* Let the task run on cpu for TIME_INTERVAL */
185 * exceed the TIME_INTERVAL to measure cpu usage
188 delta_time = current_time - prev_time; /* Duration in case its not exact TIME_INTERVAL */
199 if (delta_time > TIME_INTERVAL)
204 (delta_cpu_time * 100) / (TIME_INTERVAL * num_cpus);
cpuctl_test02.c 66 #define TIME_INTERVAL 30 /* Time interval in seconds */
67 #define NUM_INTERVALS 3 /* How many iterations of TIME_INTERVAL */
89 int num_cpus; /* Total time = TIME_INTERVAL *num_cpus in the machine */
192 alarm(TIME_INTERVAL);
194 while (!timer_expired) /* Let the task run on cpu for TIME_INTERVAL */
196 * exceed the TIME_INTERVAL to measure cpu usage
199 delta_time = current_time - prev_time; /* Duration in case its not exact TIME_INTERVAL */
210 if (delta_time > TIME_INTERVAL)
215 (delta_cpu_time * 100) / (TIME_INTERVAL * num_cpus);
cpuctl_test03.c 66 #define TIME_INTERVAL 30 /* Time interval in seconds */
67 #define NUM_INTERVALS 2 /* How many iterations of TIME_INTERVAL */
87 int num_cpus; /* Total time = TIME_INTERVAL *num_cpus in the machine */
188 alarm(TIME_INTERVAL);
190 while (!timer_expired) /* Let the task run on cpu for TIME_INTERVAL */
192 * exceed the TIME_INTERVAL to measure cpu usage
195 delta_time = current_time - prev_time; /* Duration in case its not exact TIME_INTERVAL */
206 if (delta_time > TIME_INTERVAL)
211 (delta_cpu_time * 100) / (TIME_INTERVAL * num_cpus);
cpuctl_test04.c 66 #define TIME_INTERVAL 100 /* Time interval in seconds */
67 #define NUM_INTERVALS 2 /* How many iterations of TIME_INTERVAL */
88 int num_cpus; /* Total time = TIME_INTERVAL *num_cpus in the machine */
199 alarm(TIME_INTERVAL);
201 while (!timer_expired) /* Let the task run on cpu for TIME_INTERVAL */
203 * exceed the TIME_INTERVAL to measure cpu usage
206 delta_time = current_time - prev_time; /* Duration in case its not exact TIME_INTERVAL */
217 if (delta_time > TIME_INTERVAL)
222 (delta_cpu_time * 100) / (TIME_INTERVAL * num_cpus);

Completed in 1031 milliseconds