From patchwork Thu Jun 1 17:34:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Faggioli X-Patchwork-Id: 9760707 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E444A6038E for ; Thu, 1 Jun 2017 17:36:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CF5F828518 for ; Thu, 1 Jun 2017 17:36:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C2CDD2851B; Thu, 1 Jun 2017 17:36:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_SORBS_SPAM,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 501942851A for ; Thu, 1 Jun 2017 17:36:15 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dGTz6-0008SE-1G; Thu, 01 Jun 2017 17:34:08 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dGTz4-0008RJ-4C for xen-devel@lists.xenproject.org; Thu, 01 Jun 2017 17:34:06 +0000 Received: from [193.109.254.147] by server-4.bemta-6.messagelabs.com id 50/9E-02956-D0050395; Thu, 01 Jun 2017 17:34:05 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrDIsWRWlGSWpSXmKPExsXiVRvkpMsTYBB psG2FhcX3LZOZHBg9Dn+4whLAGMWamZeUX5HAmrHq9hTGgs98FQf+rmBsYPzG2cXIxSEkMINR YlvPQWYQh0VgJavE3g2TWUEcCYHzrBKr119h62LkBHLiJC5PugiU4ACyqyWW/bcHCQsJqEjc3 L6KCWLSIiaJjycXMoIkhAX0JI4c/cEOYbtJdKzqYAGx2QQMJN7s2MsKYosIKEncWzWZCcRmEV CV+DpvLlg9r4CPxKW9PWBxTgFfiUmnzjBCLPOR+PZrAlhcVEBOYuXlFlaIekGJkzOfsIDcxiy gKbF+lz5ImFlAXmL72znMExiFZyGpmoVQNQtJ1QJG5lWMGsWpRWWpRbrGRnpJRZnpGSW5iZk5 uoYGZnq5qcXFiempOYlJxXrJ+bmbGIFhzgAEOxhPrws8xCjJwaQkyrtA3iBSiC8pP6UyI7E4I 76oNCe1+BCjDAeHkgTvBT+gnGBRanpqRVpmDjDiYNISHDxKIrwpIGne4oLE3OLMdIjUKUZjjg 2r139h4ph0YPsXJiGWvPy8VClx3qUgpQIgpRmleXCDYIngEqOslDAvI9BpQjwFqUW5mSWo8q8 YxTkYlYR5V4JM4cnMK4Hb9wroFCagU15s0wc5pSQRISXVwDhHOob177GvPecVTzZ0Z++1yo3U eq3eX1XPfMgkOW+e0Xz3jM13y9/UiNT+2rFuXZFzhPThFtdOe6PuQPcYcfdvqyOKC3TsNPlOB 1wX8Gt5MEv1RAj3pqji/GOH5/u93eMqXTe5sEOwQ1l87bviJNXCto4Td2/IZzP13cm4/y7hut Qf0yxzJZbijERDLeai4kQAn0M0MP8CAAA= X-Env-Sender: raistlin.df@gmail.com X-Msg-Ref: server-14.tower-27.messagelabs.com!1496338444!93213131!1 X-Originating-IP: [74.125.82.66] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.19; banners=-,-,- X-VirusChecked: Checked Received: (qmail 6314 invoked from network); 1 Jun 2017 17:34:04 -0000 Received: from mail-wm0-f66.google.com (HELO mail-wm0-f66.google.com) (74.125.82.66) by server-14.tower-27.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 1 Jun 2017 17:34:04 -0000 Received: by mail-wm0-f66.google.com with SMTP id k15so13060867wmh.3 for ; Thu, 01 Jun 2017 10:34:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:from:to:date:message-id:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=FrbzbZnCoW6r492dP0SzFvym8JDE3Bz2uMbQ99jguEY=; b=KUzzwQlsW28Pe5ghhuP/p9aRXO1FXsdqcJ4G2+qv5j8Ojvq9fDGu/wmlCvEb+0aXFA V1TUAqM4vffbXxCTv8vEj2vTkVjIoF6qEQxPZmX5VqqCvDTzrpOfQpTbY+wQw0RDGEXd FnPKBBhvjccw92l0CN/wj4ZTnuk1tJp63ZI5w0BJGV2gCARPlj5R3osqYhUZWpxGijzN sBjSYJjjvNXB/22dh1PRFnArWCwS5p+TkmWfcdadgdMBuqshboi4iSQdNns7sAKitWUr G9AV2SxHSQU/GHHusyiu7/V8GRuuNfoMcN50osxXx2FbsPRqF0DdxcMuEgyVQoVHpbMg rFwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:from:to:date:message-id :in-reply-to:references:user-agent:mime-version :content-transfer-encoding; bh=FrbzbZnCoW6r492dP0SzFvym8JDE3Bz2uMbQ99jguEY=; b=uNQr6Fc5ZvMiOnRhT8jD6WroI4NmxXWG96Emc3/P+vpMufn0Lb3QGFcg2YqGrtXgbM RRBW7BXs4halzKYx5pcioB9fBDbjgSFhVTUs/dZ15W1lEGE7xO3w94pKZd4UxhokTHs9 V5Ieo/yzknVtRttQq0JAFqBjhyfHOSNgj7jtnDwptyWdYMlKBVntHEw2bhD36kNjMSJK a8unKbprMZJ1radAz64/hPJGizRXbcNWkcj0EGnnToGgyrajjDEu0qFEc7BLyILtKd0B IOFxWsajJNUvxOVPNm3kQ6zq3b4q0/ayuREhyaDgMqK8ZcgEGdFt0z2rqVw0LR7hGm8M f8IQ== X-Gm-Message-State: AODbwcDyL8iVZLdM5kJygrzUyusvfwQdBrGa5irWpeVTfE8RLf6IX+V6 P1rOUdBeCin2D1/p X-Received: by 10.223.160.148 with SMTP id m20mr2169196wrm.176.1496338444337; Thu, 01 Jun 2017 10:34:04 -0700 (PDT) Received: from Solace.fritz.box ([80.66.223.25]) by smtp.gmail.com with ESMTPSA id l8sm13139wmd.8.2017.06.01.10.34.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jun 2017 10:34:03 -0700 (PDT) From: Dario Faggioli To: xen-devel@lists.xenproject.org Date: Thu, 01 Jun 2017 19:34:02 +0200 Message-ID: <149633844271.12814.12806115164198367799.stgit@Solace.fritz.box> In-Reply-To: <149633614204.12814.14390287626133023934.stgit@Solace.fritz.box> References: <149633614204.12814.14390287626133023934.stgit@Solace.fritz.box> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Subject: [Xen-devel] [PATCH 04/15] tools: xenalyze: fix dumping of PM_IDLE events. X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP In fact, not all the information present in the trace record were used and printed. Signed-off-by: Dario Faggioli Reviewed-by: George Dunlap --- George Dunlap Ian Jackson Wei Liu --- tools/xentrace/xenalyze.c | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/tools/xentrace/xenalyze.c b/tools/xentrace/xenalyze.c index 063eee7..3c2f600 100644 --- a/tools/xentrace/xenalyze.c +++ b/tools/xentrace/xenalyze.c @@ -8269,9 +8269,10 @@ void pm_process(struct pcpu_info *p) { break; case TRC_PM_IDLE_ENTRY: if (opt.dump_all ) - printf(" %s pm_idle_start c%d\n", + printf(" %s pm_idle_start c%d, pm_tick=%u, exp=%dus, pred=%dus\n", ri->dump_header, - ri->d[0]); + ri->d[0], ri->d[1], + ri->d[2], ri->d[3]); if ( ri->d[0] <= CSTATE_MAX ) { p->power_state=ri->d[0]; @@ -8280,9 +8281,22 @@ void pm_process(struct pcpu_info *p) { break; case TRC_PM_IDLE_EXIT: if (opt.dump_all ) - printf(" %s pm_idle_end c%d\n", - ri->dump_header, - ri->d[0]); + { + int i; + + printf(" %s pm_idle_end c%d pm_tick=%u", + ri->dump_header, ri->d[0], ri->d[1]); + printf(", irr_status=%d", ri->d[2]); + for (i = 3; i <= 5; i++) + { + if (ri->d[i] == 0) + break; + printf(",%d", ri->d[i]); + } + if (i == 6) + printf(",..."); + printf("\n"); + } if ( p->power_state != ri->d[0] && p->power_state != CSTATE_INVALID ) printf("Strange, pm_idle_end %d, power_state %d!\n",