[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 1/4] xen: sched: honour generic perf conuters in the RTDS scheduler



Not sure if I should comment with Reviewed-by, I will just do it. Please just ignore if I should not add Reviewed-by.Â

2015-02-26 8:36 GMT-05:00 Dario Faggioli <dario.faggioli@xxxxxxxxxx>:
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@xxxxxxxxxx>
Cc: Meng Xu <xumengpanda@xxxxxxxxx>
Cc: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
Cc: Jan Beulich <JBeulich@xxxxxxxx>
Cc: Keir Fraser <keir@xxxxxxx>
---
Âxen/common/sched_rt.c |Â Â 4 ++++
Â1 file changed, 4 insertions(+)

diff --git a/xen/common/sched_rt.c b/xen/common/sched_rt.c
index df4adac..58dd646 100644
--- a/xen/common/sched_rt.c
+++ b/xen/common/sched_rt.c
@@ -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);


âReviewed-by: Meng Xu <mengxu@xxxxxxxxxxxxx

âThanks,

Mengâ



-----------
Meng Xu
PhD Student in Computer and Information Science
University of Pennsylvania
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.