]> xenbits.xensource.com Git - people/gdunlap/xen.git/commitdiff
sched: honour generic perf conuters in the RTDS scheduler
authorDario Faggioli <dario.faggioli@citrix.com>
Tue, 17 Mar 2015 09:55:49 +0000 (10:55 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 17 Mar 2015 09:55:49 +0000 (10:55 +0100)
more specifically, about vCPU initialization and destruction events,
in line with adb26c09f26e ("xen: sched: introduce a couple of counters
in credit2 and SEDF").

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Reviewed-by: Meng Xu <mengxu@cis.upenn.edu>
Reviewed-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/common/sched_rt.c

index df4adacbcc87f21502ad1752ac8ba512e8a42720..58dd64690866500b0dcc30c386221d10be880af7 100644 (file)
@@ -525,6 +525,8 @@ rt_alloc_vdata(const struct scheduler *ops, struct vcpu *vc, void *dd)
     if ( !is_idle_vcpu(vc) )
         svc->budget = RTDS_DEFAULT_BUDGET;
 
+    SCHED_STAT_CRANK(vcpu_init);
+
     return svc;
 }
 
@@ -574,6 +576,8 @@ rt_vcpu_remove(const struct scheduler *ops, struct vcpu *vc)
     struct rt_dom * const sdom = svc->sdom;
     spinlock_t *lock;
 
+    SCHED_STAT_CRANK(vcpu_destroy);
+
     BUG_ON( sdom == NULL );
 
     lock = vcpu_schedule_lock_irq(vc);