Home
last modified time | relevance | path

Searched refs:stat (Results 1 – 12 of 12) sorted by relevance

/block/
Dblk-stat.c21 void blk_rq_stat_init(struct blk_rq_stat *stat) in blk_rq_stat_init() argument
23 stat->min = -1ULL; in blk_rq_stat_init()
24 stat->max = stat->nr_samples = stat->mean = 0; in blk_rq_stat_init()
25 stat->batch = 0; in blk_rq_stat_init()
43 void blk_rq_stat_add(struct blk_rq_stat *stat, u64 value) in blk_rq_stat_add() argument
45 stat->min = min(stat->min, value); in blk_rq_stat_add()
46 stat->max = max(stat->max, value); in blk_rq_stat_add()
47 stat->batch += value; in blk_rq_stat_add()
48 stat->nr_samples++; in blk_rq_stat_add()
55 struct blk_rq_stat *stat; in blk_stat_add() local
[all …]
Dblk-iolatency.c198 struct latency_stat *stat) in latency_stat_init() argument
201 stat->ps.total = 0; in latency_stat_init()
202 stat->ps.missed = 0; in latency_stat_init()
204 blk_rq_stat_init(&stat->rqs); in latency_stat_init()
209 struct latency_stat *stat) in latency_stat_sum() argument
212 sum->ps.total += stat->ps.total; in latency_stat_sum()
213 sum->ps.missed += stat->ps.missed; in latency_stat_sum()
215 blk_rq_stat_sum(&sum->rqs, &stat->rqs); in latency_stat_sum()
221 struct latency_stat *stat = get_cpu_ptr(iolat->stats); in latency_stat_record_time() local
224 stat->ps.missed++; in latency_stat_record_time()
[all …]
Dgenhd.c124 struct disk_stats *stat) in part_stat_read_all() argument
128 memset(stat, 0, sizeof(struct disk_stats)); in part_stat_read_all()
134 stat->nsecs[group] += ptr->nsecs[group]; in part_stat_read_all()
135 stat->sectors[group] += ptr->sectors[group]; in part_stat_read_all()
136 stat->ios[group] += ptr->ios[group]; in part_stat_read_all()
137 stat->merges[group] += ptr->merges[group]; in part_stat_read_all()
140 stat->io_ticks += ptr->io_ticks; in part_stat_read_all()
914 struct disk_stats stat; in part_stat_show() local
917 part_stat_read_all(bdev, &stat); in part_stat_show()
930 stat.ios[STAT_READ], in part_stat_show()
[all …]
Dblk-wbt.c205 static inline bool stat_sample_valid(struct blk_rq_stat *stat) in stat_sample_valid() argument
213 return (stat[READ].nr_samples >= 1 && in stat_sample_valid()
214 stat[WRITE].nr_samples >= RWB_MIN_WRITE_SAMPLES); in stat_sample_valid()
235 static int latency_exceeded(struct rq_wb *rwb, struct blk_rq_stat *stat) in latency_exceeded() argument
252 (thislat > rwb->min_lat_nsec && !stat[READ].nr_samples)) { in latency_exceeded()
260 if (!stat_sample_valid(stat)) { in latency_exceeded()
267 if (stat[WRITE].nr_samples || wb_recent_wait(rwb) || in latency_exceeded()
276 if (stat[READ].min > rwb->min_lat_nsec) { in latency_exceeded()
277 trace_wbt_lat(bdi, stat[READ].min); in latency_exceeded()
278 trace_wbt_stat(bdi, stat); in latency_exceeded()
[all …]
Dbfq-cgroup.c19 static int bfq_stat_init(struct bfq_stat *stat, gfp_t gfp) in bfq_stat_init() argument
23 ret = percpu_counter_init(&stat->cpu_cnt, 0, gfp); in bfq_stat_init()
27 atomic64_set(&stat->aux_cnt, 0); in bfq_stat_init()
31 static void bfq_stat_exit(struct bfq_stat *stat) in bfq_stat_exit() argument
33 percpu_counter_destroy(&stat->cpu_cnt); in bfq_stat_exit()
44 static inline void bfq_stat_add(struct bfq_stat *stat, uint64_t val) in bfq_stat_add() argument
46 percpu_counter_add_batch(&stat->cpu_cnt, val, BLKG_STAT_CPU_BATCH); in bfq_stat_add()
53 static inline uint64_t bfq_stat_read(struct bfq_stat *stat) in bfq_stat_read() argument
55 return percpu_counter_sum_positive(&stat->cpu_cnt); in bfq_stat_read()
62 static inline void bfq_stat_reset(struct bfq_stat *stat) in bfq_stat_reset() argument
[all …]
Dblk-mq-debugfs.c17 static void print_stat(struct seq_file *m, struct blk_rq_stat *stat) in print_stat() argument
19 if (stat->nr_samples) { in print_stat()
21 stat->nr_samples, stat->mean, stat->min, stat->max); in print_stat()
Dblk-stat.h50 struct blk_rq_stat *stat; member
DKconfig.iosched44 Enable some debugging help. Currently it exports additional stat
DMakefile9 blk-lib.o blk-mq.o blk-mq-tag.o blk-stat.o \
Dblk-iocost.c1585 struct ioc_pcpu_stat *stat = per_cpu_ptr(ioc->pcpu_stat, cpu); in ioc_lat_stat() local
1589 u32 this_met = local_read(&stat->missed[rw].nr_met); in ioc_lat_stat()
1590 u32 this_missed = local_read(&stat->missed[rw].nr_missed); in ioc_lat_stat()
1592 nr_met[rw] += this_met - stat->missed[rw].last_met; in ioc_lat_stat()
1593 nr_missed[rw] += this_missed - stat->missed[rw].last_missed; in ioc_lat_stat()
1594 stat->missed[rw].last_met = this_met; in ioc_lat_stat()
1595 stat->missed[rw].last_missed = this_missed; in ioc_lat_stat()
1598 this_rq_wait_ns = local64_read(&stat->rq_wait_ns); in ioc_lat_stat()
1599 rq_wait_ns += this_rq_wait_ns - stat->last_rq_wait_ns; in ioc_lat_stat()
1600 stat->last_rq_wait_ns = this_rq_wait_ns; in ioc_lat_stat()
Dblk-mq.c3839 if (cb->stat[bucket].nr_samples) in blk_mq_poll_stats_fn()
3840 q->poll_stat[bucket] = cb->stat[bucket]; in blk_mq_poll_stats_fn()
/block/partitions/
Dcore.c227 static DEVICE_ATTR(stat, 0444, part_stat_show, NULL);