From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Dunlap Subject: Re: [PATCH v2 1/4] xen: sched: honour generic perf conuters in the RTDS scheduler Date: Mon, 16 Mar 2015 17:01:46 +0000 Message-ID: <55070C7A.1040700@eu.citrix.com> References: <20150227163925.32500.15985.stgit@Solace.station> <20150227165054.32500.58066.stgit@Solace.station> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20150227165054.32500.58066.stgit@Solace.station> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dario Faggioli , Xen-devel Cc: Keir Fraser , Meng Xu , Meng Xu , Jan Beulich List-Id: xen-devel@lists.xenproject.org On 02/27/2015 04:50 PM, Dario Faggioli wrote: > 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 > Cc: George Dunlap > Cc: Meng Xu > Cc: Jan Beulich > Cc: Keir Fraser > Reviewed-by: Meng Xu Reviewed-by: George Dunlap > --- > 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); >