Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1196082pxu; Fri, 16 Oct 2020 06:22:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAlS4t+kyhWhtWtx3+nbAcGS/d1sO68KbakgpBGAMlk3JtESaGwF37IhoZhzTzeNddgBQ3 X-Received: by 2002:a17:906:2604:: with SMTP id h4mr3620713ejc.26.1602854566282; Fri, 16 Oct 2020 06:22:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602854566; cv=none; d=google.com; s=arc-20160816; b=WvqUrmQPzvoTwJoA3k9LtimEwT6kSDlub8mYr6NSloPtpEcAyDuG33lYrFXcvyVZQ3 HTtf8qasfopIM5+zA17Kqbsz8Ir4VqHphygMIURHq/OsCuoDqBe8qitwcQUQIeI5U1UK DGX7lEsaYDLxHlQCTugYpikiV2t/nMb5uoWZ6rcs3YaOiS4lBQ8XCcSC/iUCAZuQXrW7 uZDjAhm62R2GWq9iaLco5itaFMpOMF/LWSRZ+E9Fd86YlKd5YoKJtmDGaY9ZisfIKqpr mxAPKtxNUUyIcK+Fb9HuxY+v2oea50YugLTcoC4ZJVkTSz8xNs9W24O5Moh2lmqUK8vQ PUhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=2v//XZb9addO+YnQGTuZ1rtYAQE5PbqfnjEF9yMyDoc=; b=ozNbrcnZE1j5oAJimeiTtIcDSuIOYoMor4o/kySrfLYubCXGccsYm8qAwsvAAJakkY 7nxFYlGV437gJFAZoKNG3TZGM9RELw9v3nNu6FgG6LP8y8KEtEfKoj4SlQrjgvj7M8M8 yYTP8aI4xUCMtQ0HpBwtkzTqfl+Paj0+uHrvfbRQt15JpulyIYCZQJn298FL8Y43oXBV GWL1rB7tMZHrTnEipWE8E6Ri9w2MHX3oP+JeylSE7hMSp0CL9mJsHIndwQYaISKBT5Jk ySsKCZEi1+s/EO8QQ1t6DcQp9V7GkgKuKsOY5ALcRdoMADW831q83ZNyaZEYuDl0whZP UvAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CpB0A1qL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dv2si1639758ejb.145.2020.10.16.06.22.23; Fri, 16 Oct 2020 06:22:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CpB0A1qL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407016AbgJPNOX (ORCPT + 99 others); Fri, 16 Oct 2020 09:14:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2395334AbgJPNON (ORCPT ); Fri, 16 Oct 2020 09:14:13 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D3F3C0613D3 for ; Fri, 16 Oct 2020 06:14:13 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id y14so1465896pfp.13 for ; Fri, 16 Oct 2020 06:14:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=2v//XZb9addO+YnQGTuZ1rtYAQE5PbqfnjEF9yMyDoc=; b=CpB0A1qLkDsgmfvKFlr7UWapLdP1M00owIA2ts+xR/6P+6yK9aTnPfr/6RsH0lcJ+l rX5wPDmXPApN0QW7GUw/tRwsktOJgkS2wcU59h0u8CN8GJnM/Jtowgu1lUiN63H8RIKc wx3+f+RTXRcFKXiqmhSmnjdxEoPbQN1uj5++a3/5ThnGYl42h1HmtPI3AcKCgMbUrAjb vIIfwN2kfj2evVmwQ/OaNQDq4nl+TmJaTRNxpwtggZR8txOeD9QdwZhx2n1ZlKVL4k2R Gx3S4zpiFqE7TM9VVfbXNrvpt3gpBIWZeiJmmYFzZstDxfviyixPE2I7Gn+DXEbmaFli 3tcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=2v//XZb9addO+YnQGTuZ1rtYAQE5PbqfnjEF9yMyDoc=; b=K/BWq56so8ct9CuP0ci0XA9srpSLZ8ZG7WwmtQ80e/MVoLJSvlV5+rlwyLsVuql65P zhjRHzrbeLk8Pjf8QBx/m/magKzYJdl0b4UzH0yvpTpsLvGNsX/Y6qrnqzULurQK6Vq5 NnCmlf62Fm24yMI7tvMQHWyA2GhWIg8c+JqsOyVDI2uKfSfqpDXrmetjY7RrCX2SrcT8 Yenq77l0ueVts6DhbnYC+a4gVGFvl6+bjFE/ed1sy1X/njIoQ+mDYSH52BmcjIrC9AM3 FxnLG/iZ0k7p3xmmIzGZS0fo1RSClA0Nc/uqyLLGBY4GktWCut9Ak62yMDAflg4jv3f9 0ieg== X-Gm-Message-State: AOAM533VEQ3/hyHXE+nD9033/PbC7krrRraTKeSxuGsNLG8T+50LAdTX 7XiiRlABSzdwraeMLIH17bjLUQ== X-Received: by 2002:a63:1865:: with SMTP id 37mr3186358pgy.322.1602854052978; Fri, 16 Oct 2020 06:14:12 -0700 (PDT) Received: from leoy-ThinkPad-X240s ([64.120.119.108]) by smtp.gmail.com with ESMTPSA id e5sm3587979pjd.0.2020.10.16.06.14.09 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Oct 2020 06:14:12 -0700 (PDT) Date: Fri, 16 Oct 2020 21:14:07 +0800 From: Leo Yan To: Suzuki Poulose Cc: Sai Prakash Ranjan , Denis Nikitin , Mathieu Poirier , linux-arm-msm@vger.kernel.org, coresight@lists.linaro.org, linux-kernel@vger.kernel.org, Stephen Boyd , linux-arm-kernel@lists.infradead.org, Mike Leach Subject: Re: [PATCH] coresight: etm4x: Add config to exclude kernel mode tracing Message-ID: <20201016131407.GA31839@leoy-ThinkPad-X240s> References: <20201015124522.1876-1-saiprakash.ranjan@codeaurora.org> <20201015160257.GA1450102@xps15> <20201016072401.GC4646@leoy-ThinkPad-X240s> <20201016092450.GG4646@leoy-ThinkPad-X240s> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 16, 2020 at 12:38:47PM +0100, Suzuki Kuruppassery Poulose wrote: [...] > > > What happens to the sysfs mode of tracing? For that we would still > > > need a config right to exclude kernel mode tracing completely. > > > > IIUC, sysfs mode and perf mode both can apply the same approach, the > > guest OS runs a thread context for the host, so when a guest OS is > > switched in or out, the hypervisor can save/restore the context for > > the guest OS; thus every guest OS will have its dedicated context and > > trace data ideally. > > I don't think Guest Context is something we can support as mentioned > above, at least for systems without sysreg access for ETMs (and virtualizing > ETRs is a different story !) Thanks for sharing thoughts, Suzuki. I missed the device virtulisation. Here should virtualize all devices (includes CoreSight ETM/funnel/ETR/ETF)? Or only need to virtualize ETRs? Obviously, this is a difficult task :) Thanks, Leo