From patchwork Fri Feb 5 18:34:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Faggioli X-Patchwork-Id: 8238171 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 28E79BEEED for ; Fri, 5 Feb 2016 18:36:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 412F42034A for ; Fri, 5 Feb 2016 18:36:24 +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 4CAEF20392 for ; Fri, 5 Feb 2016 18:36:23 +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 1aRlD9-00042W-Nl; Fri, 05 Feb 2016 18:34:27 +0000 Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aRlD8-00041l-7q for xen-devel@lists.xenproject.org; Fri, 05 Feb 2016 18:34:26 +0000 Received: from [85.158.143.35] by server-2.bemta-4.messagelabs.com id 53/50-08977-13BE4B65; Fri, 05 Feb 2016 18:34:25 +0000 X-Env-Sender: raistlin.df@gmail.com X-Msg-Ref: server-14.tower-21.messagelabs.com!1454697264!14232658!1 X-Originating-IP: [74.125.82.66] 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 55528 invoked from network); 5 Feb 2016 18:34:24 -0000 Received: from mail-wm0-f66.google.com (HELO mail-wm0-f66.google.com) (74.125.82.66) by server-14.tower-21.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 5 Feb 2016 18:34:24 -0000 Received: by mail-wm0-f66.google.com with SMTP id g62so4177006wme.2 for ; Fri, 05 Feb 2016 10:34:24 -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=d3jh11/AtMJQJA/nfPMA96WAovustkW1uU9zVUp4f6c=; b=z3fWs+DfzvgLkThPwf1zz7qQoxDluITyQaSg+f82B75rtwAXsTCuqz0gnCCE8yl4Hv er3qI26yQ0HesWR0zvpudJpHQtyC/pJFomfTIXMWSUFw597i/u18GTCips6ea+XZas3N 5zHeujYjoZRfFXy74n5t3Lm7dVaFeWfS2vaEP9ICh+IA5DkoGVPO8YRVnsj+DXMfMkH5 C9gM8YkpKRqa2kCVMpWsAuwA13OrbTSJmn1ncJQqyjNyb+g7JTUiD8NA0QGzhZg9oqzT 8pNZKigsjWpCmIj38GcDwK2ScRIR+pWnz4X8MYFnbu7M7l/idCxYPkAeUdN9JInhtE7r YdHw== 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=d3jh11/AtMJQJA/nfPMA96WAovustkW1uU9zVUp4f6c=; b=boOCgoeyve/OHaa+el6S47qoL9ADzKZACHJV6NSEHdAzsT3MkOe0vueDLfx6OnMjKk +GW5/P6VVADQ6GfV+pGZ2WzC3Kcv+p8M+Q90TbVTP8IVAD/LoW+LKNYFoJ7/pu6nRm6x i2hmw14PTq9AC1jmwj7a0XU+/2tVOUQcTRBF3+VP0MwrFcDgarbCi8qXuKqg4Y+RC4OX YB6sCfpoMF7Bt9SHSvLXdF2/91Gp85OKD21PfPu2FFXa3U7oYoZzsCb/I22a3etJBBBP /idd3XIyhNWhJJ5Z9fgOlIHhF2TQoNPiQxEHzPQYW3hwSl5GSfuoH/lvZoIfX1r56UaK uzPA== X-Gm-Message-State: AG10YOTDu0cG+Pi/f7+cIbe8Y7w6fytJHQThOCkRRN7kl7czvNRBuarcN4ReNhtf25u7bA== X-Received: by 10.28.19.76 with SMTP id 73mr18592762wmt.24.1454697264576; Fri, 05 Feb 2016 10:34:24 -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 e198sm18579205wmd.0.2016.02.05.10.34.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Feb 2016 10:34:23 -0800 (PST) From: Dario Faggioli To: xen-devel@lists.xenproject.org Date: Fri, 05 Feb 2016 19:34:18 +0100 Message-ID: <20160205183418.4543.5548.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: Olaf Hering , Tianyang Chen , Meng Xu , George Dunlap Subject: [Xen-devel] [PATCH 06/14] xen: sched: tracing: enable TSC tracing for all events 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 it is enabled for pretty much all of them already. There were just a few that had it disabled. When tracing a scheduler, timing information is really important, so enable it everywhere scheduling related. Note that this was not really a problem if looking at the traces with xenalyze, but it was if using xentrace_format. Signed-off-by: Dario Faggioli --- Cc: George Dunlap Cc: Meng Xu Cc: Tianyang Chen Cc: Olaf Hering --- xen/common/sched_credit.c | 2 +- xen/common/sched_credit2.c | 6 +++--- xen/common/sched_rt.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/xen/common/sched_credit.c b/xen/common/sched_credit.c index 5279b92..bd2f37f 100644 --- a/xen/common/sched_credit.c +++ b/xen/common/sched_credit.c @@ -476,7 +476,7 @@ static inline void __runq_tickle(struct csched_vcpu *new) { /* Avoid TRACE_*: saves checking !tb_init_done each step */ for_each_cpu(cpu, &mask) - __trace_var(TRC_CSCHED_TICKLE, 0, sizeof(cpu), &cpu); + __trace_var(TRC_CSCHED_TICKLE, 1, sizeof(cpu), &cpu); } /* Send scheduler interrupts to designated CPUs */ diff --git a/xen/common/sched_credit2.c b/xen/common/sched_credit2.c index cf40f68..2934e26 100644 --- a/xen/common/sched_credit2.c +++ b/xen/common/sched_credit2.c @@ -456,7 +456,7 @@ runq_insert(const struct scheduler *ops, unsigned int cpu, struct csched2_vcpu * d.dom = svc->vcpu->domain->domain_id; d.vcpu = svc->vcpu->vcpu_id; d.pos = pos; - trace_var(TRC_CSCHED2_RUNQ_POS, 0, + trace_var(TRC_CSCHED2_RUNQ_POS, 1, sizeof(d), (unsigned char *)&d); } @@ -564,7 +564,7 @@ tickle: unsigned cpu:16, pad:16; } d; d.cpu = ipid; d.pad = 0; - trace_var(TRC_CSCHED2_TICKLE, 0, + trace_var(TRC_CSCHED2_TICKLE, 1, sizeof(d), (unsigned char *)&d); } @@ -1721,7 +1721,7 @@ csched2_schedule( */ if ( tasklet_work_scheduled ) { - trace_var(TRC_CSCHED2_SCHED_TASKLET, 0, 0, NULL); + trace_var(TRC_CSCHED2_SCHED_TASKLET, 1, 0, NULL); snext = CSCHED2_VCPU(idle_vcpu[cpu]); } else diff --git a/xen/common/sched_rt.c b/xen/common/sched_rt.c index 53de6d6..33ac9de 100644 --- a/xen/common/sched_rt.c +++ b/xen/common/sched_rt.c @@ -985,7 +985,7 @@ out: } d; d.cpu = cpu_to_tickle; d.pad = 0; - trace_var(TRC_RTDS_TICKLE, 0, + trace_var(TRC_RTDS_TICKLE, 1, sizeof(d), (unsigned char *)&d); }