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>
svc->weight = 0;
}
+ SCHED_STAT_CRANK(vcpu_init);
+
return svc;
}
if ( ! is_idle_vcpu(vc) )
{
+ SCHED_STAT_CRANK(vcpu_destroy);
+
/* Remove from runqueue */
vcpu_schedule_lock_irq(vc);
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",
INIT_LIST_HEAD(&(inf->extralist[EXTRA_PEN_Q]));
INIT_LIST_HEAD(&(inf->extralist[EXTRA_UTIL_Q]));
+ SCHED_STAT_CRANK(vcpu_init);
+
return inf;
}
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;