From patchwork Fri Sep 1 15:58:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Meng Xu X-Patchwork-Id: 9934725 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 0662260216 for ; Fri, 1 Sep 2017 16:01:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EE4FA25D9E for ; Fri, 1 Sep 2017 16:01:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D9D9F26E4E; Fri, 1 Sep 2017 16:01:41 +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 E617F25D9E for ; Fri, 1 Sep 2017 16:01:30 +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 1dnoLn-000297-Dw; Fri, 01 Sep 2017 15:59:19 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dnoLm-00028d-HX for xen-devel@lists.xen.org; Fri, 01 Sep 2017 15:59:18 +0000 Received: from [85.158.143.35] by server-6.bemta-6.messagelabs.com id 75/2A-03423-5D389A95; Fri, 01 Sep 2017 15:59:17 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrLLMWRWlGSWpSXmKPExsUyr8m9Ufdq88p Ig6eHBCyWfFzM4sDocXT3b6YAxijWzLyk/IoE1oxdq5oZCxYJV+xY79zAeJOvi5GLQ0hgBpPE 7K8LGbsYOTnYBFQkjm94xApiiwhIS1z7fBksziywgVHi9tkYEFtYwFNi1/FONhCbRUBV4uK3p UwgNq+As8TazzPBbAkBOYmTxyaDzeEUcJE41n4PbI4QUM3KpXfYIGpCJdYsPg9X//jhA8YJjD wLGBlWMWoUpxaVpRbpGpnpJRVlpmeU5CZm5ugaGpjp5aYWFyemp+YkJhXrJefnbmIEep0BCHY wnlkQeIhRkoNJSZS32n9FpBBfUn5KZUZicUZ8UWlOavEhRhkODiUJ3uqmlZFCgkWp6akVaZk5 wPCDSUtw8CiJ8LqDpHmLCxJzizPTIVKnGHU5Nqxe/4VJiCUvPy9VSpx3BkiRAEhRRmke3AhYL FxilJUS5mUEOkqIpyC1KDezBFX+FaM4B6OSMO9UkCk8mXklcJteAR3BBHTEv88rQI4oSURIST UwBjwUXRj86tytgP3NizM1XhyQ2izbXCHYYGLKLtl10eBHlgdvw+JT7LcLzr+61dIodJfjz9c Tu9weO80R0o1hEbvcdt/s6kRTke+97/NOXwufElgsqvPXrcHjm+/tzG6+k0b5524U79vYGbDu bSFDbn373qSLyZki2kUTPpmytue7/5EMUVVWYinOSDTUYi4qTgQA1T0o8IACAAA= X-Env-Sender: mengxu@cis.upenn.edu X-Msg-Ref: server-8.tower-21.messagelabs.com!1504281556!80586778!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 32729 invoked from network); 1 Sep 2017 15:59:17 -0000 Received: from renard.seas.upenn.edu (HELO fox.seas.upenn.edu) (158.130.71.129) by server-8.tower-21.messagelabs.com with SMTP; 1 Sep 2017 15:59:17 -0000 Received: from panda-catbroadwell.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 v81Fx0Zw003760 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT); Fri, 1 Sep 2017 11:59:10 -0400 From: Meng Xu To: xen-devel@lists.xen.org Date: Fri, 1 Sep 2017 11:58:51 -0400 Message-Id: <1504281532-3766-5-git-send-email-mengxu@cis.upenn.edu> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1504281532-3766-1-git-send-email-mengxu@cis.upenn.edu> References: <1504281532-3766-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: george.dunlap@eu.citrix.com, dario.faggioli@citrix.com, ian.jackson@eu.citrix.com, xumengpanda@gmail.com, Meng Xu , wei.liu@citrix.com Subject: [Xen-devel] [PATCH v2 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 --- 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 f39182a..470ac5c 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 39fc35f..6fb952c 100644 --- a/tools/xentrace/xenalyze.c +++ b/tools/xentrace/xenalyze.c @@ -7944,12 +7944,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 */