From patchwork Tue Feb 16 18:13:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Faggioli X-Patchwork-Id: 8330601 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A5A019F399 for ; Tue, 16 Feb 2016 18:15:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D0F17202A1 for ; Tue, 16 Feb 2016 18:15: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 F14DA20295 for ; Tue, 16 Feb 2016 18:15: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 1aVk81-0004Si-VJ; Tue, 16 Feb 2016 18:13:37 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aVk80-0004RS-Ea for xen-devel@lists.xenproject.org; Tue, 16 Feb 2016 18:13:36 +0000 Received: from [85.158.139.211] by server-4.bemta-5.messagelabs.com id 0C/01-12635-FC663C65; Tue, 16 Feb 2016 18:13:35 +0000 X-Env-Sender: raistlin.df@gmail.com X-Msg-Ref: server-6.tower-206.messagelabs.com!1455646415!22538206!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 28254 invoked from network); 16 Feb 2016 18:13:35 -0000 Received: from mail-wm0-f65.google.com (HELO mail-wm0-f65.google.com) (74.125.82.65) by server-6.tower-206.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 16 Feb 2016 18:13:35 -0000 Received: by mail-wm0-f65.google.com with SMTP id g62so21909898wme.2 for ; Tue, 16 Feb 2016 10:13:35 -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=LQ/NinKpnDTvZ2j5PXliFS9HZW3X5uW0YZH2SLP4Tbk=; b=pABY6W7Si8FtUFdcDpL4bbZL/Q+iejwZO6FfC0sAd3SZmUputmCTn9wCj08uJGVo3M fVy2lLI79PRwnzPlZPKmEDiDekxmP9rIilBeVu0RMIjOWqpdh1cRuai7d07CuCk7k84t B3Cx6jZjj8NlhxXILf9smT3soqo1AkPriAgloJpmEd6FpssvcQOkecy0jtp5lhSECdwP z8Xc4CqKwNXs2CtnOOqQXM5xI2j8bRinLJpvdNGDalonv6Q2YBtrOF1ABl/6kLHP44iu 9f4iuteTv6pVK1ZcD0e1Zu7VuhoLxwr55qzJ/f560fFsad26NiAJWjmvYtwDvydcD9d+ Tsfg== 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=LQ/NinKpnDTvZ2j5PXliFS9HZW3X5uW0YZH2SLP4Tbk=; b=eKg1V8pBmdwg8aWv52HP73tNN+CItZw0bOPRNAKq8Zod7xNYbt7HGv/4CZjUGCL+lS UAyZZb+wVhQc293b8RBb6tLKM29kxwLjkNF/US5xQRe1XfaKb/2k71tTsQr78S6N4q4l 7gMvG8qp1w5W3825GaRoYeCNHLtByT7qnO1GekAbrX1baT/30flD7mOdgLFWKC/ww/2u EMVzZtZF6VLyS0hU4U3XfxLdi6YtVruUsHDi6gz+L15pLlGb07Qd02pFMxChSvN014LG TP/akgKuDmVTpH2Qauc9yGp1c6LcR/Q2I0YvC8Li+sMKcG0B3iShC4NAd3IHOZbHXmdp /V/A== X-Gm-Message-State: AG10YOS80rlZ3bUZfkXSHvmtQ7gyG6yfZE3P+Acjkq/u0jO9GgzfowBc+NgAapj7MWt4qw== X-Received: by 10.194.185.144 with SMTP id fc16mr23898154wjc.123.1455646415036; Tue, 16 Feb 2016 10:13:35 -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 hh8sm12574668wjc.42.2016.02.16.10.13.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Feb 2016 10:13:33 -0800 (PST) From: Dario Faggioli To: xen-devel@lists.xenproject.org Date: Tue, 16 Feb 2016 19:13:31 +0100 Message-ID: <20160216181331.27876.31120.stgit@Solace.station> In-Reply-To: <20160216180550.27876.22680.stgit@Solace.station> References: <20160216180550.27876.22680.stgit@Solace.station> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Cc: Olaf Hering , Wei Liu , Ian Campbell , George Dunlap , Ian Jackson Subject: [Xen-devel] [PATCH v2 16/16] xenalyze: handle DOM0 operaions 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 (i.e., domain creation and destruction) so the trace will show properly decoded info, rather than just a bunch of hex codes. --- Cc: George Dunlap Cc: Ian Jackson Cc: Ian Campbell Cc: Wei Liu Cc: Olaf Hering Cc: Konrad Rzeszutek Wilk --- Changes from v1: * new patch in the series. --- tools/xentrace/xenalyze.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/tools/xentrace/xenalyze.c b/tools/xentrace/xenalyze.c index dd21229..267f932 100644 --- a/tools/xentrace/xenalyze.c +++ b/tools/xentrace/xenalyze.c @@ -8452,6 +8452,30 @@ void hw_process(struct pcpu_info *p) } } + +#define TRC_DOM0_SUB_DOMOPS 1 +void dom0_process(struct pcpu_info *p) +{ + struct record_info *ri = &p->ri; + + switch(ri->evt.sub) + { + case TRC_DOM0_SUB_DOMOPS: + if(opt.dump_all) { + struct { + unsigned int domid; + } *r = (typeof(r))ri->d; + + printf(" %s %s domain d%u\n", ri->dump_header, + ri->event == TRC_DOM0_DOM_ADD ? "creating" : "destroying", + r->domid); + } + break; + default: + process_generic(&p->ri); + } +} + /* ---- Base ----- */ void dump_generic(FILE * f, struct record_info *ri) { @@ -9288,6 +9312,8 @@ void process_record(struct pcpu_info *p) { hw_process(p); break; case TRC_DOM0OP_MAIN: + dom0_process(p); + break; default: process_generic(ri); }