Home
last modified time | relevance | path

Searched refs:itv (Results 1 – 2 of 2) sorted by relevance

/busybox-1.35.0/procps/
Diostat.c64 cputime_t itv; member
201 cputime_t itv = new - old; in get_interval() local
203 return (itv == 0) ? 1 : itv; in get_interval()
232 static double percent_value(cputime_t prev, cputime_t curr, cputime_t itv) in percent_value() argument
234 return ((double)overflow_safe_sub(prev, curr)) / itv * 100; in percent_value()
242 percent_value(p[STATS_CPU_USER] , c[STATS_CPU_USER] , stats->itv), in print_stats_cpu_struct()
243 percent_value(p[STATS_CPU_NICE] , c[STATS_CPU_NICE] , stats->itv), in print_stats_cpu_struct()
245 c[STATS_CPU_SYSTEM] + c[STATS_CPU_SOFTIRQ] + c[STATS_CPU_IRQ], stats->itv), in print_stats_cpu_struct()
246 percent_value(p[STATS_CPU_IOWAIT], c[STATS_CPU_IOWAIT], stats->itv), in print_stats_cpu_struct()
247 percent_value(p[STATS_CPU_STEAL] , c[STATS_CPU_STEAL] , stats->itv), in print_stats_cpu_struct()
[all …]
Dmpstat.c153 static double percent_value(data_t prev, data_t curr, data_t itv) in percent_value() argument
155 return ((double)overflow_safe_sub(prev, curr)) / itv * 100; in percent_value()
158 static double hz_value(data_t prev, data_t curr, data_t itv) in hz_value() argument
161 return ((double)overflow_safe_sub(prev, curr)) / itv * G.hz; in hz_value()
177 data_t itv, in write_irqcpu_stats() argument
267 (double)(p->interrupts - q->interrupts) / itv * G.hz); in write_irqcpu_stats()
292 data_t itv) in print_stats_cpu_struct() argument
296 /**/ c->cpu_user - c->cpu_guest, itv), in print_stats_cpu_struct()
297 percent_value(p->cpu_nice , c->cpu_nice , itv), in print_stats_cpu_struct()
298 percent_value(p->cpu_system , c->cpu_system , itv), in print_stats_cpu_struct()
[all …]