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 67 #define TIME_INTERVAL 30 /* Time interval in seconds */
68 #define NUM_INTERVALS 3 /* How many iterations of TIME_INTERVAL */
88 int num_cpus, test_num, len; /* Total time = TIME_INTERVAL*num_cpus */
182 alarm(TIME_INTERVAL);
185 * Let the task run on cpu for TIME_INTERVAL. Time of this
187 * TIME_INTERVAL to measure cpu usage
193 /* Duration in case its not exact TIME_INTERVAL */
208 if (delta_time > TIME_INTERVAL)
213 (TIME_INTERVAL * num_cpus);
cpuctl_def_task02.c 64 #define TIME_INTERVAL 30 /* Time interval in seconds */
65 #define NUM_INTERVALS 3 /* How many iterations of TIME_INTERVAL */
194 alarm(TIME_INTERVAL);
197 * Let the task run on cpu for TIME_INTERVAL. Time of this
199 * TIME_INTERVAL to measure cpu usage
205 /* Duration in case its not exact TIME_INTERVAL */
220 if (delta_time > TIME_INTERVAL)
225 (TIME_INTERVAL * num_cpus);
cpuctl_def_task03.c 65 #define TIME_INTERVAL 30 /* Time interval in seconds */
66 #define NUM_INTERVALS 2 /* How many iterations of TIME_INTERVAL */
189 alarm(TIME_INTERVAL);
192 * Let the task run on cpu for TIME_INTERVAL. Time of this
194 * TIME_INTERVAL to measure cpu usage
200 /* Duration in case its not exact TIME_INTERVAL */
215 if (delta_time > TIME_INTERVAL)
220 (TIME_INTERVAL * num_cpus);
cpuctl_def_task04.c 65 #define TIME_INTERVAL 100 /* Time interval in seconds */
66 #define NUM_INTERVALS 2 /* How many iterations of TIME_INTERVAL */
199 alarm(TIME_INTERVAL);
202 * Let the task run on cpu for TIME_INTERVAL. Time of this
204 * TIME_INTERVAL to measure cpu usage
210 /* Duration in case its not exact TIME_INTERVAL */
225 if (delta_time > TIME_INTERVAL)
230 (TIME_INTERVAL * num_cpus);
cpuctl_test01.c 66 #define TIME_INTERVAL 30 /* Time interval in seconds */
67 #define NUM_INTERVALS 3 /* How many iterations of TIME_INTERVAL */
88 int len; /* Total time = TIME_INTERVAL *num_cpus in the machine */
184 alarm(TIME_INTERVAL);
186 while (!timer_expired) /* Let the task run on cpu for TIME_INTERVAL */
188 * exceed the TIME_INTERVAL to measure cpu usage
191 delta_time = current_time - prev_time; /* Duration in case its not exact TIME_INTERVAL */
202 if (delta_time > TIME_INTERVAL)
207 (delta_cpu_time * 100) / (TIME_INTERVAL * num_cpus);
cpuctl_test03.c 65 #define TIME_INTERVAL 30 /* Time interval in seconds */
66 #define NUM_INTERVALS 2 /* How many iterations of TIME_INTERVAL */
86 int num_cpus; /* Total time = TIME_INTERVAL *num_cpus in the machine */
191 alarm(TIME_INTERVAL);
193 while (!timer_expired) /* Let the task run on cpu for TIME_INTERVAL */
195 * exceed the TIME_INTERVAL to measure cpu usage
198 delta_time = current_time - prev_time; /* Duration in case its not exact TIME_INTERVAL */
209 if (delta_time > TIME_INTERVAL)
214 (delta_cpu_time * 100) / (TIME_INTERVAL * num_cpus);
cpuctl_test04.c 65 #define TIME_INTERVAL 100 /* Time interval in seconds */
66 #define NUM_INTERVALS 2 /* How many iterations of TIME_INTERVAL */
87 int num_cpus; /* Total time = TIME_INTERVAL *num_cpus in the machine */
202 alarm(TIME_INTERVAL);
204 while (!timer_expired) /* Let the task run on cpu for TIME_INTERVAL */
206 * exceed the TIME_INTERVAL to measure cpu usage
209 delta_time = current_time - prev_time; /* Duration in case its not exact TIME_INTERVAL */
220 if (delta_time > TIME_INTERVAL)
225 (delta_cpu_time * 100) / (TIME_INTERVAL * num_cpus);
cpuctl_test02.c 65 #define TIME_INTERVAL 30 /* Time interval in seconds */
66 #define NUM_INTERVALS 3 /* How many iterations of TIME_INTERVAL */
88 int num_cpus; /* Total time = TIME_INTERVAL *num_cpus in the machine */
195 alarm(TIME_INTERVAL);
197 while (!timer_expired) /* Let the task run on cpu for TIME_INTERVAL */
199 * exceed the TIME_INTERVAL to measure cpu usage
202 delta_time = current_time - prev_time; /* Duration in case its not exact TIME_INTERVAL */
213 if (delta_time > TIME_INTERVAL)
218 (delta_cpu_time * 100) / (TIME_INTERVAL * num_cpus);

Completed in 107 milliseconds