From patchwork Fri Feb 5 18:33:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Faggioli X-Patchwork-Id: 8238161 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 052EEBEEE5 for ; Fri, 5 Feb 2016 18:36:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0ECEB20375 for ; Fri, 5 Feb 2016 18:36:23 +0000 (UTC) Received: from lists.xen.org (lists.xenproject.org [50.57.142.19]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 30AD320384 for ; Fri, 5 Feb 2016 18:36:22 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aRlCc-0003pI-Gm; Fri, 05 Feb 2016 18:33:54 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aRlCc-0003p2-1S for xen-devel@lists.xenproject.org; Fri, 05 Feb 2016 18:33:54 +0000 Received: from [85.158.139.211] by server-1.bemta-5.messagelabs.com id 28/07-15353-11BE4B65; Fri, 05 Feb 2016 18:33:53 +0000 X-Env-Sender: raistlin.df@gmail.com X-Msg-Ref: server-11.tower-206.messagelabs.com!1454697232!20643396!1 X-Originating-IP: [74.125.82.65] X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP X-StarScan-Received: X-StarScan-Version: 7.35.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 24165 invoked from network); 5 Feb 2016 18:33:52 -0000 Received: from mail-wm0-f65.google.com (HELO mail-wm0-f65.google.com) (74.125.82.65) by server-11.tower-206.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 5 Feb 2016 18:33:52 -0000 Received: by mail-wm0-f65.google.com with SMTP id r129so4187386wmr.0 for ; Fri, 05 Feb 2016 10:33:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:from:to:cc:date:message-id:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; bh=lOdMH4SYOt9V/cG79mYf1+ZhVcsYMOY/L8m3gQE8xs4=; b=conWDALSe64yg81oUEESBqXMd9ZpRXUF7TDggTw8omWoMVxSyfHHw47osSzyiqUQJH +eXjWVB4+yE7fKjipoVMop7YjZRs4Mkx1ybCM/bFSq5zKJGp55FLnIk1W8AVu3YUi03W qTDk8nXkCSQ6wfo4j99abSruhfib1W/8OKw54PDQUGq6FRxqS7smsFLrG6z812K+bJSp Fxfkw3uGMpK8tOEsEkRyaoxwHG0WH5BuXKWSNhepC8JbNynb7JC9OUg8SzUJ/Nx+s/kL ZFNH+uxNJ+WKYLv4OPK/hHMB6mBzhuAFMQs+Jg/aQhBOvgLyNXcPYh/JWarwlwrkNpBM oQeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:from:to:cc:date:message-id :in-reply-to:references:user-agent:mime-version:content-type :content-transfer-encoding; bh=lOdMH4SYOt9V/cG79mYf1+ZhVcsYMOY/L8m3gQE8xs4=; b=WUAsbPs3K+J4GDTgGBK/yPIllqwDI20/QMhdgIScjwKybKVVmupKODMYf+IvageEJH oJvJrUy/5I1zl8Kaee1iyUgouTZTXFK2UrHAu456zJQcr2VLCWosjacpZhXfArB06p8J yRDRQJ9XbC8Nj7mR5wno//yKi4mtjj98h16D4BdyLHLStNKYpcslAzsDb5ZD4QqgBmb0 r/rp7+J09L8SnDcKvttBaVxW1xIQMw3Tc2PEVnJxyq37P4GKmuoIGyrSJ6j7bU3T8E+8 S1+N0j8imFle4dmU0Npb9+nfdFMskhCQS+GKTK6tmOkmElcaJJVBIKOjuiiKRhD4j3tX IVnw== X-Gm-Message-State: AG10YOQSyZRpWz17aaJ6yP/PEEWTQj7nI1jIr0bht2Jzi/2n6lhlDpvd9nm3ouqqKNhDHQ== X-Received: by 10.28.102.68 with SMTP id a65mr18923110wmc.12.1454697232483; Fri, 05 Feb 2016 10:33:52 -0800 (PST) Received: from Solace.station (net-2-35-170-8.cust.vodafonedsl.it. [2.35.170.8]) by smtp.gmail.com with ESMTPSA id 198sm18542387wml.22.2016.02.05.10.33.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Feb 2016 10:33:51 -0800 (PST) From: Dario Faggioli To: xen-devel@lists.xenproject.org Date: Fri, 05 Feb 2016 19:33:50 +0100 Message-ID: <20160205183349.4543.23589.stgit@Solace.station> In-Reply-To: <20160205183137.4543.56523.stgit@Solace.station> References: <20160205183137.4543.56523.stgit@Solace.station> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Cc: George Dunlap Subject: [Xen-devel] [PATCH 03/14] xen: sched: fi position of TRC_SCHED_DOM_{ADD, REM} X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP so that they actually live in the functions that do the scheduling related domain initialization and destruction. Signed-off-by: Dario Faggioli --- Cc: George Dunlap --- xen/common/domain.c | 1 - xen/common/schedule.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/xen/common/domain.c b/xen/common/domain.c index 425767c..ddc7484 100644 --- a/xen/common/domain.c +++ b/xen/common/domain.c @@ -867,7 +867,6 @@ void domain_destroy(struct domain *d) cpupool_rm_domain(d); /* Delete from task list and task hashtable. */ - TRACE_1D(TRC_SCHED_DOM_REM, d->domain_id); spin_lock(&domlist_update_lock); pd = &domain_list; while ( *pd != d ) diff --git a/xen/common/schedule.c b/xen/common/schedule.c index c87922f..27695e3 100644 --- a/xen/common/schedule.c +++ b/xen/common/schedule.c @@ -241,8 +241,6 @@ int sched_init_vcpu(struct vcpu *v, unsigned int processor) if ( v->sched_priv == NULL ) return 1; - TRACE_2D(TRC_SCHED_DOM_ADD, v->domain->domain_id, v->vcpu_id); - /* Idle VCPUs are scheduled immediately, so don't put them in runqueue. */ if ( is_idle_domain(d) ) { @@ -369,12 +367,14 @@ void sched_destroy_vcpu(struct vcpu *v) int sched_init_domain(struct domain *d) { SCHED_STAT_CRANK(dom_init); + TRACE_1D(TRC_SCHED_DOM_ADD, d->domain_id); return SCHED_OP(DOM2OP(d), init_domain, d); } void sched_destroy_domain(struct domain *d) { SCHED_STAT_CRANK(dom_destroy); + TRACE_1D(TRC_SCHED_DOM_REM, d->domain_id); SCHED_OP(DOM2OP(d), destroy_domain, d); }