From patchwork Tue Oct 10 23:17:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Meng Xu X-Patchwork-Id: 9998135 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 1CB9B603FF for ; Tue, 10 Oct 2017 23:20:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0EE7B287F9 for ; Tue, 10 Oct 2017 23:20:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 03A2D28801; Tue, 10 Oct 2017 23:20:43 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED 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 A9A6828809 for ; Tue, 10 Oct 2017 23:20:42 +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 1e23mq-00056u-A8; Tue, 10 Oct 2017 23:18: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 1e23mp-00056R-36 for xen-devel@lists.xenproject.org; Tue, 10 Oct 2017 23:18:07 +0000 Received: from [85.158.143.35] by server-3.bemta-6.messagelabs.com id 9C/36-14867-E255DD95; Tue, 10 Oct 2017 23:18:06 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrKLMWRWlGSWpSXmKPExsUyr8m9UVc39G6 kweobRhbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8am57OYCrYJV3S1zmNvYHzB18XIxSEk0M8k 0TBrIXsXIycHm4CKxPENj1hBbBEBJYl7qyYzgRQxC6xklFhxaxcLSEJYwFOi6fonMJtFQFVi3 f1mZhCbV8BZYs6/U2C2hICcxMljk8EGcQq4SDT/O8YIYgsB1TzZfQSqJlRizeLzTDD1jx8+YJ zAyLOAkWEVo0ZxalFZapGukYleUlFmekZJbmJmjq6hgZlebmpxcWJ6ak5iUrFecn7uJkag5xm AYAfjvo+RhxglOZiURHlfq9+NFOJLyk+pzEgszogvKs1JLT7EKMPBoSTBqxYClBMsSk1PrUjL zAGGIExagoNHSYTXBiTNW1yQmFucmQ6ROsVozHFs0+U/TBwdN+/+YRJiycvPS5US5/0cDFQqA FKaUZoHNwgWG5cYZaWEeRmBThPiKUgtys0sQZV/xSjOwagkzMsHspAnM68Ebt8roFOYgE4RTb sDckpJIkJKqoGRZc7FS3vOH+5f/zt7GlfR00dBt8uLFu87YHlSyapvfzTnrtTnMx6bTJBsbng WxRGimvpXxnxn/lThX+u7dj21aZQ5vHPXBMnThzWTbmjd3zSrf5lFR3tgceK86fsl3BJnGChM 3PXhvOSbt2HfH0wJ3FTeFHbn4ta21YL2W3bNFbr971f6WqPNTUosxRmJhlrMRcWJAKfzQw6IA gAA X-Env-Sender: mengxu@cis.upenn.edu X-Msg-Ref: server-4.tower-21.messagelabs.com!1507677485!70102971!1 X-Originating-IP: [158.130.71.129] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 33142 invoked from network); 10 Oct 2017 23:18:05 -0000 Received: from renard.seas.upenn.edu (HELO fox.seas.upenn.edu) (158.130.71.129) by server-4.tower-21.messagelabs.com with SMTP; 10 Oct 2017 23:18:05 -0000 Received: from panda-6c.cis.upenn.edu (SEASnet-48-12.cis.upenn.edu [158.130.48.13]) (authenticated bits=0) by fox.seas.upenn.edu (8.15.2/8.14.5) with ESMTPSA id v9ANHpAI008233 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT); Tue, 10 Oct 2017 19:17:54 -0400 From: Meng Xu To: xen-devel@lists.xenproject.org Date: Tue, 10 Oct 2017 19:17:44 -0400 Message-Id: <1507677465-3840-5-git-send-email-mengxu@cis.upenn.edu> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1507677465-3840-1-git-send-email-mengxu@cis.upenn.edu> References: <1507677465-3840-1-git-send-email-mengxu@cis.upenn.edu> X-Proofpoint-Virus-Version: vendor=nai engine=5600 definitions=5800 signatures=585085 X-Proofpoint-Spam-Reason: safe Cc: wei.liu2@citrix.com, george.dunlap@eu.citrix.com, ian.jackson@eu.citrix.com, raistlin@linux.it, Meng Xu , xumengpanda@gmail.com Subject: [Xen-devel] [PATCH v3 4/5] xentrace: enable per-VCPU extratime flag for RTDS 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: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Change repl_budget event output for xentrace formats and xenalyze Signed-off-by: Meng Xu --- No changes from v2 Changes from v1 Add this changes from v1 --- tools/xentrace/formats | 2 +- tools/xentrace/xenalyze.c | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/xentrace/formats b/tools/xentrace/formats index d6e7e3f..7d3a209 100644 --- a/tools/xentrace/formats +++ b/tools/xentrace/formats @@ -75,7 +75,7 @@ 0x00022801 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:tickle [ cpu = %(1)d ] 0x00022802 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:runq_pick [ dom:vcpu = 0x%(1)08x, cur_deadline = 0x%(3)08x%(2)08x, cur_budget = 0x%(5)08x%(4)08x ] 0x00022803 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:burn_budget [ dom:vcpu = 0x%(1)08x, cur_budget = 0x%(3)08x%(2)08x, delta = %(4)d ] -0x00022804 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:repl_budget [ dom:vcpu = 0x%(1)08x, cur_deadline = 0x%(3)08x%(2)08x, cur_budget = 0x%(5)08x%(4)08x ] +0x00022804 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:repl_budget [ dom:vcpu = 0x%(1)08x, priority_level = 0x%(2)08d cur_deadline = 0x%(4)08x%(3)08x, cur_budget = 0x%(6)08x%(5)08x ] 0x00022805 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:sched_tasklet 0x00022806 CPU%(cpu)d %(tsc)d (+%(reltsc)8d) rtds:schedule [ cpu[16]:tasklet[8]:idle[4]:tickled[4] = %(1)08x ] diff --git a/tools/xentrace/xenalyze.c b/tools/xentrace/xenalyze.c index 79bdba7..2783204 100644 --- a/tools/xentrace/xenalyze.c +++ b/tools/xentrace/xenalyze.c @@ -7946,12 +7946,14 @@ void sched_process(struct pcpu_info *p) if(opt.dump_all) { struct { unsigned int vcpuid:16, domid:16; + unsigned int priority_level; uint64_t cur_dl, cur_bg; } __attribute__((packed)) *r = (typeof(r))ri->d; - printf(" %s rtds:repl_budget d%uv%u, deadline = %"PRIu64", " - "budget = %"PRIu64"\n", ri->dump_header, - r->domid, r->vcpuid, r->cur_dl, r->cur_bg); + printf(" %s rtds:repl_budget d%uv%u, priority_level = %u," + "deadline = %"PRIu64", budget = %"PRIu64"\n", + ri->dump_header, r->domid, r->vcpuid, + r->priority_level, r->cur_dl, r->cur_bg); } break; case TRC_SCHED_CLASS_EVT(RTDS, 5): /* SCHED_TASKLET */