|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xen: sched: introduce a couple of counters in credit2 and SEDF
# HG changeset patch
# User Dario Faggioli <dario.faggioli@xxxxxxxxxx>
# Date 1350991102 25200
# Node ID 4ae12a96ec697f942600a78057bcb567f3312dca
# Parent af87fb17adf38fcf8b2aec38356d9bc8cdcf3ebd
xen: sched: introduce a couple of counters in credit2 and SEDF
Mainly for consistency with credit, at least for the events that are
general enough, like vCPU initialization/destruction and calls
to the specific scheduling function.
Signed-off-by: Dario Faggioli <dario.faggioli@xxxxxxxxxx>
Acked-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
Committed-by: Keir Fraser <keir@xxxxxxx>
---
diff -r af87fb17adf3 -r 4ae12a96ec69 xen/common/sched_credit2.c
--- a/xen/common/sched_credit2.c Tue Oct 23 04:17:16 2012 -0700
+++ b/xen/common/sched_credit2.c Tue Oct 23 04:18:22 2012 -0700
@@ -753,6 +753,8 @@ csched_alloc_vdata(const struct schedule
svc->weight = 0;
}
+ SCHED_STAT_CRANK(vcpu_init);
+
return svc;
}
@@ -870,6 +872,8 @@ csched_vcpu_remove(const struct schedule
if ( ! is_idle_vcpu(vc) )
{
+ SCHED_STAT_CRANK(vcpu_destroy);
+
/* Remove from runqueue */
vcpu_schedule_lock_irq(vc);
@@ -1587,6 +1591,7 @@ csched_schedule(
struct csched_vcpu *snext = NULL;
struct task_slice ret;
+ SCHED_STAT_CRANK(schedule);
CSCHED_VCPU_CHECK(current);
d2printk("sc p%d c d%dv%d now %"PRI_stime"\n",
diff -r af87fb17adf3 -r 4ae12a96ec69 xen/common/sched_sedf.c
--- a/xen/common/sched_sedf.c Tue Oct 23 04:17:16 2012 -0700
+++ b/xen/common/sched_sedf.c Tue Oct 23 04:18:22 2012 -0700
@@ -332,6 +332,8 @@ static void *sedf_alloc_vdata(const stru
INIT_LIST_HEAD(&(inf->extralist[EXTRA_PEN_Q]));
INIT_LIST_HEAD(&(inf->extralist[EXTRA_UTIL_Q]));
+ SCHED_STAT_CRANK(vcpu_init);
+
return inf;
}
@@ -763,6 +765,8 @@ static struct task_slice sedf_do_schedul
struct sedf_vcpu_info *runinf, *waitinf;
struct task_slice ret;
+ SCHED_STAT_CRANK(schedule);
+
/* Idle tasks don't need any of the following stuf */
if ( is_idle_vcpu(current) )
goto check_waitq;
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |