Lines Matching refs:type
106 int64_t bytes, enum BlockAcctType type) in block_acct_start() argument
108 assert(type < BLOCK_MAX_IOTYPE); in block_acct_start()
112 cookie->type = type; in block_acct_start()
159 int block_latency_histogram_set(BlockAcctStats *stats, enum BlockAcctType type, in block_latency_histogram_set() argument
162 BlockLatencyHistogram *hist = &stats->latency_histogram[type]; in block_latency_histogram_set()
214 assert(cookie->type < BLOCK_MAX_IOTYPE); in block_account_one_io()
216 if (cookie->type == BLOCK_ACCT_NONE) { in block_account_one_io()
222 stats->failed_ops[cookie->type]++; in block_account_one_io()
224 stats->nr_bytes[cookie->type] += cookie->bytes; in block_account_one_io()
225 stats->nr_ops[cookie->type]++; in block_account_one_io()
228 block_latency_histogram_account(&stats->latency_histogram[cookie->type], in block_account_one_io()
232 stats->total_time_ns[cookie->type] += latency_ns; in block_account_one_io()
236 timed_average_account(&s->latency[cookie->type], latency_ns); in block_account_one_io()
241 cookie->type = BLOCK_ACCT_NONE; in block_account_one_io()
254 void block_acct_invalid(BlockAcctStats *stats, enum BlockAcctType type) in block_acct_invalid() argument
256 assert(type < BLOCK_MAX_IOTYPE); in block_acct_invalid()
263 stats->invalid_ops[type]++; in block_acct_invalid()
271 void block_acct_merge_done(BlockAcctStats *stats, enum BlockAcctType type, in block_acct_merge_done() argument
274 assert(type < BLOCK_MAX_IOTYPE); in block_acct_merge_done()
277 stats->merged[type] += num_requests; in block_acct_merge_done()
287 enum BlockAcctType type) in block_acct_queue_depth() argument
291 assert(type < BLOCK_MAX_IOTYPE); in block_acct_queue_depth()
294 sum = timed_average_sum(&stats->latency[type], &elapsed); in block_acct_queue_depth()