Lines Matching refs:prev
133 static ALWAYS_INLINE data_t overflow_safe_sub(data_t prev, data_t curr) in overflow_safe_sub() argument
135 data_t v = curr - prev; in overflow_safe_sub()
138 && prev <= 0xffffffff /* kernel uses 32bit value for the counter? */ in overflow_safe_sub()
147 static ALWAYS_INLINE data_t overflow_safe_sub(data_t prev, data_t curr) in overflow_safe_sub() argument
149 return curr - prev; in overflow_safe_sub()
153 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()
178 int prev, int current, in write_irqcpu_stats() argument
190 q0 = &per_cpu_stats[prev][j]; in write_irqcpu_stats()
239 q0 = &per_cpu_stats[prev][offset]; in write_irqcpu_stats()
250 q0 = &per_cpu_stats[prev][offset]; in write_irqcpu_stats()
256 q0 = &per_cpu_stats[prev][offset]; in write_irqcpu_stats()
265 q = &per_cpu_stats[prev][(cpu - 1) * total_irqs + offset]; in write_irqcpu_stats()
308 static void write_stats_core(int prev, int current, in write_stats_core() argument
316 itv = global_itv = jiffies_diff(G.global_uptime[prev], G.global_uptime[current]); in write_stats_core()
320 itv = jiffies_diff(G.per_cpu_uptime[prev], G.per_cpu_uptime[current]); in write_stats_core()
341 scp = &G.st_cpu[prev][cpu]; in write_stats_core()
403 scp = &G.st_cpu[prev][cpu]; in write_stats_core()
413 …printf(" %9.2f\n", hz_value(G.st_irq[prev][cpu].irq_nr, G.st_irq[current][cpu].irq_nr, per_cpu_itv… in write_stats_core()
420 prev, current, in write_stats_core()
428 prev, current, in write_stats_core()