From patchwork Thu Dec 20 19:23:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 154357 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp50536ljp; Thu, 20 Dec 2018 11:26:01 -0800 (PST) X-Google-Smtp-Source: AFSGD/Ws89H/npvZMFHp0yESSMoMicMKjQmL4pFDbwi6gG0+ERTvwgtCob+Hs127BteHpgYAW4zd X-Received: by 2002:a81:4d06:: with SMTP id a6mr26576393ywb.213.1545333961185; Thu, 20 Dec 2018 11:26:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545333961; cv=none; d=google.com; s=arc-20160816; b=iS3t4YfFouNFHdLkpKHynGlYapocU6mlPbWzdEJBx8diiP2QNFTryRXBRP+UCsZa1h PERgsW7YV9wywbLVN9r2Hg40DCf/vdZtYREBx67kHBjpGTBd+rafVX7819klxDuG7EB8 ySECWarlKClkIPZeLI56gPPOAEJsnWFvh1aC4psbWDl4Flr6SXSDQ0SnA9gRQEQ6UImI RGwdAPAiLlv/ER8TjSR43y+MIZTJfhu0BEhHAvj/WxCL78CelneMxOqPaJ0gAvBssFKs gasrD2P0R2BjyclFovBHbtR6zJqgIeG9MUvo2w8gYA/LBhcWM7BkfM9Nyr7wvAsU0Acu tNRQ== 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=WIIvWIa+B6QpcgwdLO72ucnZMMzu6+LgChRxsR+cak8=; b=jHK2IXLAUsX/V4TIhyWb5FQ7/rhpxTLXIOaJCki9m5B8ld1W7hbrxX90UeM24uOGYj GqbrFg24HqUyfjpvUbAwXrNWxKIPStfki4H7FR35/mcacSSwLZB/1ID/B9yliUNmiWL/ KkR1YJNDQleLICA5toBZicQukjWVXtmEF6Yg18qnaOzYIJ1INq1OUWUF98UIDY0ubbfG ne5iiOb/u3/rS1Kj/NtUI0xfZMmRyteVvqoHVkZOW2H/lQc7m61XkJoac1afklLxRkXO cj+lM8F9v3toxBOMQyJ+gEATpTolxd+BuonpNl0I1x1yEoVhA5UMQsh2eHQlLUtBOLvz gW0Q== 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 g123si13817586ywf.306.2018.12.20.11.26.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Dec 2018 11:26:01 -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 1ga3vJ-0001yV-Lu; Thu, 20 Dec 2018 19:23:57 +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 1ga3vI-0001yE-Gz for xen-devel@lists.xenproject.org; Thu, 20 Dec 2018 19:23:56 +0000 X-Inumbo-ID: caaf4a92-048c-11e9-9c9f-7f12218b3629 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTP id caaf4a92-048c-11e9-9c9f-7f12218b3629; Thu, 20 Dec 2018 19:23:55 +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 32B871596; Thu, 20 Dec 2018 11:23:55 -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 20D3B3F575; Thu, 20 Dec 2018 11:23:53 -0800 (PST) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Thu, 20 Dec 2018 19:23:36 +0000 Message-Id: <20181220192338.17526-7-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181220192338.17526-1-julien.grall@arm.com> References: <20181220192338.17526-1-julien.grall@arm.com> Subject: [Xen-devel] [PATCH for-4.12 v2 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 , sstabellini@kernel.org, Andrii Anisov , 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 Acked-by: Stefano Stabellini --- Changes in v2: - Add Andrii's reviewed-by --- 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 fb923cdf67..444857a967 100644 --- a/xen/arch/arm/setup.c +++ b/xen/arch/arm/setup.c @@ -36,6 +36,7 @@ #include #include #include +#include #include #include #include @@ -899,6 +900,8 @@ void __init start_xen(unsigned long boot_phys_offset, heap_init_late(); + init_trace_bufs(); + init_constructors(); console_endboot();