Lines Matching defs:stat
184 #include "blk-stat.h"
540 struct iocg_stat stat;
1401 iocg->stat.indelay_us += now->now - iocg->indelay_since;
1449 iocg->stat.indebt_us += now->now - iocg->indebt_since;
1543 iocg->stat.wait_us += now->now - iocg->wait_since;
1596 struct ioc_pcpu_stat *stat = per_cpu_ptr(ioc->pcpu_stat, cpu);
1600 u32 this_met = local_read(&stat->missed[rw].nr_met);
1601 u32 this_missed = local_read(&stat->missed[rw].nr_missed);
1603 nr_met[rw] += this_met - stat->missed[rw].last_met;
1604 nr_missed[rw] += this_missed - stat->missed[rw].last_missed;
1605 stat->missed[rw].last_met = this_met;
1606 stat->missed[rw].last_missed = this_missed;
1609 this_rq_wait_ns = local64_read(&stat->rq_wait_ns);
1610 rq_wait_ns += this_rq_wait_ns - stat->last_rq_wait_ns;
1611 stat->last_rq_wait_ns = this_rq_wait_ns;
1676 &iocg->ancestors[iocg->level - 1]->stat;
1679 iocg->stat.usage_us - iocg->last_stat.usage_us;
1681 iocg->stat.wait_us - iocg->last_stat.wait_us;
1683 iocg->stat.indebt_us - iocg->last_stat.indebt_us;
1685 iocg->stat.indelay_us - iocg->last_stat.indelay_us;
1688 iocg->last_stat = iocg->stat;
1710 iocg->stat.usage_us += iocg->usage_delta_us;
1715 /* get stat counters ready for reading on all active iocgs */
2174 /* flush wait and indebt stat deltas */
2176 iocg->stat.wait_us += now->now - iocg->wait_since;
2180 iocg->stat.indebt_us +=
2185 iocg->stat.indelay_us +=
2263 * Wait and indebt stat are flushed above and the donation calculation
2264 * below needs updated usage stat. Let's bring stat up-to-date.