Home
last modified time | relevance | path

Searched refs:iocg (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.10/block/
Dblk-iocost.c195 #define TRACE_IOCG_PATH(type, iocg, ...) \ argument
200 cgroup_path(iocg_to_blkg(iocg)->blkcg->css.cgroup, \
202 trace_iocost_##type(iocg, trace_iocg_path, \
209 #define TRACE_IOCG_PATH(type, iocg, ...) do { } while (0) argument
573 struct ioc_gq *iocg; member
693 static struct blkcg_gq *iocg_to_blkg(struct ioc_gq *iocg) in iocg_to_blkg() argument
695 return pd_to_blkg(&iocg->pd); in iocg_to_blkg()
721 static void iocg_commit_bio(struct ioc_gq *iocg, struct bio *bio, in iocg_commit_bio() argument
727 atomic64_add(cost, &iocg->vtime); in iocg_commit_bio()
729 gcs = get_cpu_ptr(iocg->pcpu_stat); in iocg_commit_bio()
[all …]
/Linux-v5.10/include/trace/events/
Diocost.h16 TP_PROTO(struct ioc_gq *iocg, const char *path, struct ioc_now *now,
19 TP_ARGS(iocg, path, now, last_period, cur_period, vtime),
22 __string(devname, ioc_name(iocg->ioc))
37 __assign_str(devname, ioc_name(iocg->ioc));
45 __entry->weight = iocg->weight;
46 __entry->inuse = iocg->inuse;
47 __entry->hweight_active = iocg->hweight_active;
48 __entry->hweight_inuse = iocg->hweight_inuse;
64 TP_PROTO(struct ioc_gq *iocg, const char *path, struct ioc_now *now,
68 TP_ARGS(iocg, path, now, old_inuse, new_inuse,
[all …]
/Linux-v5.10/tools/cgroup/
Diocost_monitor.py141 def __init__(self, iocg): argument
142 ioc = iocg.ioc
143 blkg = iocg.pd.blkg
145 self.is_active = not list_empty(iocg.active_list.address_of_())
146 self.weight = iocg.weight.value_() / WEIGHT_ONE
147 self.active = iocg.active.value_() / WEIGHT_ONE
148 self.inuse = iocg.inuse.value_() / WEIGHT_ONE
149 self.hwa_pct = iocg.hweight_active.value_() * 100 / WEIGHT_ONE
150 self.hwi_pct = iocg.hweight_inuse.value_() * 100 / WEIGHT_ONE
151 self.address = iocg.value_()
[all …]