From: Keir Fraser Date: Fri, 24 Dec 2010 08:32:43 +0000 (+0000) Subject: credit2: On debug keypress print load average as a fraction X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~11023 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=52c139177c9cfb0941abf21bb7db775b9745002d;p=xen.git credit2: On debug keypress print load average as a fraction Signed-off-by: George Dunlap --- diff --git a/xen/common/sched_credit2.c b/xen/common/sched_credit2.c index f3a7ab1a05..916e00bf49 100644 --- a/xen/common/sched_credit2.c +++ b/xen/common/sched_credit2.c @@ -1774,14 +1774,20 @@ csched_dump(const struct scheduler *ops) CSCHED_DEFAULT_WEIGHT); for_each_cpu_mask(i, prv->active_queues) { + s_time_t fraction; + + fraction = prv->rqd[i].avgload * 100 / (1ULL<load_window_shift); + printk("Runqueue %d:\n" "\tncpus = %u\n" "\tmax_weight = %d\n" - "\tload = %d\n", + "\tinstload = %d\n" + "\taveload = %3ld\n", i, cpus_weight(prv->rqd[i].active), prv->rqd[i].max_weight, - prv->rqd[i].load); + prv->rqd[i].load, + fraction); } /* FIXME: Locking! */