From patchwork Tue Nov 6 19:14:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 150348 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4274086ljp; Tue, 6 Nov 2018 11:17:24 -0800 (PST) X-Google-Smtp-Source: AJdET5c2d3PzLZi3ybWr1f2keJTaDPsJ5bzQwDXflcUqYXFujQrBzd4RS2R+eB16OjQkmxTuUtnL X-Received: by 2002:a25:f80e:: with SMTP id u14-v6mr26567438ybd.161.1541531844303; Tue, 06 Nov 2018 11:17:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541531844; cv=none; d=google.com; s=arc-20160816; b=tKPz1u5EYq/Pue46j3qRBXp5pswV5JWk4g74grQhQoMw5rQMYtEfyfPnupwkrZNhYa CJFtRwB/h2qujNNmVu/GYLv5uQfrvxr4Fo2Vgw0dWvD1aRVPNwMPduIfgHizsNj+UTDu r1UER/WE8crpGIawHwIonlkNHhUyOgZQZMzCWmsyDFSWB0WytoQZizgcsFchM7559T7u PeKd3cHs7xm/eAXGe/3wRIFtymcq/cCm31DcLUJpr+Xbhzzd6OFttJIG2imzyJYR0+lV Ybe4xwwA4xNFyhCdj0coGMIDXaeIrUPb9YsuYEwOasv4QEQZ+Elt26ZYeEi8vAdFYTLK xVKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:references:in-reply-to:message-id:date:to:from; bh=ppyQLX1uZRa/9Xb2PFbt5cvJ01uS19oNw6/8viRNDBI=; b=t4Unmh+l7l4q6zWh6OtnTBlQLfSx2vgSQF4aUFbiSXp6zzSd1tatz5MDWe1lo1i9Bj 7JeWHKadLnMHJAMfwqwvqE6XZgqKS6JU0QDvi+TzbFL6zUvEbVhe3UCiu4U1XedRT98h +EpOiPoQYx1oba4gef1pFPP4hh0cBodGy9shtoDEPPsd6rkciJxKd98KWuKp9eRof1va 1ew33P+yXudmMU050gNF/O0Sj0RfJ92KFK3t7G724qwPPRzKTpCXXTdXIJQKT6DxrKbC Nb5KaatTGYijOR0pxsUAp/5Qwz+TrrMHJXQLTPK0CUdqwfjVm2oqizcMCe3kONz/ImDK 4h6g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id e3-v6si11266114ybi.266.2018.11.06.11.17.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Nov 2018 11:17:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1gK6oj-0003dS-Qb; Tue, 06 Nov 2018 19:15:13 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1gK6oi-0003cp-GU for xen-devel@lists.xenproject.org; Tue, 06 Nov 2018 19:15:12 +0000 X-Inumbo-ID: 48017f4a-e1f8-11e8-9e65-12d6303a7972 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTP id 48017f4a-e1f8-11e8-9e65-12d6303a7972; Tue, 06 Nov 2018 19:15:11 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CD9FE1596; Tue, 6 Nov 2018 11:15:10 -0800 (PST) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.196.50]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E26DB3F718; Tue, 6 Nov 2018 11:15:09 -0800 (PST) From: Julien Grall To: sstabellini@kernel.org, xen-devel@lists.xenproject.org Date: Tue, 6 Nov 2018 19:14:52 +0000 Message-Id: <20181106191454.22143-7-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181106191454.22143-1-julien.grall@arm.com> References: <20181106191454.22143-1-julien.grall@arm.com> Subject: [Xen-devel] [PATCH 6/8] xen/arm: Initialize trace buffer X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Julien Grall , Benjamin Sanda MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" From: Benjamin Sanda Now that we allow a privileged domain to map tracing buffer, initialize them so a user can effectively trace Xen. Signed-off-by: Benjamin Sanda [julien: rework commit message] Signed-off-by: Julien Grall Reviewed-by: Andrii Anisov --- xen/arch/arm/setup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c index 80f00286d3..7022904cc3 100644 --- a/xen/arch/arm/setup.c +++ b/xen/arch/arm/setup.c @@ -36,6 +36,7 @@ #include #include #include +#include #include #include #include @@ -863,6 +864,8 @@ void __init start_xen(unsigned long boot_phys_offset, heap_init_late(); + init_trace_bufs(); + init_constructors(); console_endboot();