From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: [PATCH 4 of 6 v2] xen: tracing: report where a VCPU wakes up Date: Wed, 12 Dec 2012 03:52:54 +0100 Message-ID: <7a199dea34425e890b31.1355280774@Solace> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xensource.com Cc: Keir Fraser , George Dunlap , Ian Campbell List-Id: xen-devel@lists.xenproject.org When looking at traces, it turns out to be useful to know where a waking-up VCPU is being queued. Yes, that is always the CPU where it ran last, but that information can well be lost in past trace records! Signed-off-by: Dario Faggioli diff --git a/xen/common/schedule.c b/xen/common/schedule.c --- a/xen/common/schedule.c +++ b/xen/common/schedule.c @@ -371,7 +371,7 @@ void vcpu_wake(struct vcpu *v) vcpu_schedule_unlock_irqrestore(v, flags); - TRACE_2D(TRC_SCHED_WAKE, v->domain->domain_id, v->vcpu_id); + TRACE_3D(TRC_SCHED_WAKE, v->domain->domain_id, v->vcpu_id, v->processor); } void vcpu_unblock(struct vcpu *v)