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@citrix.com>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
Committed-by: Keir Fraser <keir@xen.org>
This commit is contained in:
Dario Faggioli committed 2012-10-23 04:18:22 -07:00
1 parent 5061a49c4e
commit adb26c09f2
2 files changed
+9

No files matched your search

+5
View File
@@ -753,6 +753,8 @@ csched_alloc_vdata(const struct scheduler *ops, struct vcpu *vc, void *dd)
svc->weight = 0;
}
SCHED_STAT_CRANK(vcpu_init);
return svc;
}
@@ -870,6 +872,8 @@ csched_vcpu_remove(const struct scheduler *ops, struct vcpu *vc)
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",
+4
View File
@@ -332,6 +332,8 @@ static void *sedf_alloc_vdata(const struct scheduler *ops, struct vcpu *v, void
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_schedule(
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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.