Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1111997pxu; Fri, 16 Oct 2020 04:20:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQV8qom12eFBhKig6MUk4ZIcJXRxnIor6N9UCoUuLq7tJgAatkGaS26gG7TRwY3QrRziyP X-Received: by 2002:a17:906:3751:: with SMTP id e17mr3034203ejc.241.1602847218754; Fri, 16 Oct 2020 04:20:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602847218; cv=none; d=google.com; s=arc-20160816; b=thjlDlJAExPzIBFFiAXYGWdyTyKOXhne+8LJmfAyMlE7HIuUm4U/pGZzaeY/2ksl1b 6JdDZl1smpHOOtCPaT5kq6+sIoz1MC5U4LLIukIxG8mpj0WsxrIb2SiGJqxelJ3rk+oZ leLEcDxcyWFVax0kTdIymeLjn6alO/byxw17+GXh7U/EQdkVc4YKi5jQUHw1D+uaanW4 XRxUt/9XfClCEpMTTSMs4KtOCdaOvrY7fHNH7y8V6fB1fivhX8pgPGrXf7ZiZGTGC4F8 EPtbzZaYqhiwcVIS5YvcWckOdMxJV9eEoMfEaaXxquFgTgt6lw09yyIDyWdkgrHMIwem qQ5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=ustTZbEcMftmhOslkOBYdaqAQIg6oVuX//5E6Jl/XX0=; b=wdxNCj53JdDVtbrure0ZB9iRkK/i2e3Gl2idEAKqdfBF8A6bNdqLLaygnHLA1VpJS5 uU21s1NGh7Y79l4WlMFi3F7gyHV+QDCcKST0IUG7aAlsU/aT+oxM5x+WielgZCjzmF/S 0uWUQpjZsxJHK2EJZQWvr7ePfmTV5A7OZ2izcwq4/IoMFjEh0LqPDTk9AsRsTe3V0z0u NdqdtZW4av5zQbx+8U2yABJ0sNW7vba1ONRQBINM7CfETsJkxsL0hTHpj3NabKtK7vN0 UPUpix6oz/bl7/T4VOsSMVcqsLDPZDnoj1bOnci5YH1Tf/hGIZ4J+stvkn6vLLdGL/3l t10A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=n9oHo5Py; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h10si1321644edk.242.2020.10.16.04.19.54; Fri, 16 Oct 2020 04:20:18 -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=@mg.codeaurora.org header.s=smtp header.b=n9oHo5Py; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394685AbgJPIku (ORCPT + 99 others); Fri, 16 Oct 2020 04:40:50 -0400 Received: from m42-4.mailgun.net ([69.72.42.4]:48025 "EHLO m42-4.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394681AbgJPIkt (ORCPT ); Fri, 16 Oct 2020 04:40:49 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1602837648; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=ustTZbEcMftmhOslkOBYdaqAQIg6oVuX//5E6Jl/XX0=; b=n9oHo5Py32FjgxQ4hPi1z6qlhlHB3fZICZRsWgD9vlmXtbWYdY8yDpUYrqWdzQf/GZ4Z6K/A /2WxOgpIs/fdzOs76IlhIABopiDLmwt8tKuLBuaGcU7xeLYXZQZIi1N5uOAM1SUrEVRHb+L2 gEfCgVRSxydzjvEaloNqzhDEQZ4= X-Mailgun-Sending-Ip: 69.72.42.4 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n03.prod.us-west-2.postgun.com with SMTP id 5f895c9057b88ccb561d24bf (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 16 Oct 2020 08:40:48 GMT Sender: saiprakash.ranjan=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 6E2EDC433CB; Fri, 16 Oct 2020 08:40:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: saiprakash.ranjan) by smtp.codeaurora.org (Postfix) with ESMTPSA id D9BD3C433F1; Fri, 16 Oct 2020 08:40:47 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 16 Oct 2020 14:10:47 +0530 From: Sai Prakash Ranjan To: Leo Yan Cc: 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 , Suzuki K Poulose Subject: Re: [PATCH] coresight: etm4x: Add config to exclude kernel mode tracing In-Reply-To: <20201016072401.GC4646@leoy-ThinkPad-X240s> References: <20201015124522.1876-1-saiprakash.ranjan@codeaurora.org> <20201015160257.GA1450102@xps15> <20201016072401.GC4646@leoy-ThinkPad-X240s> Message-ID: X-Sender: saiprakash.ranjan@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Leo, On 2020-10-16 12:54, Leo Yan wrote: > On Thu, Oct 15, 2020 at 11:40:05PM -0700, Denis Nikitin wrote: >> Hi Mathieu, >> >> I think one of the use cases could be VMs. >> Is there isolation between EL1 guest kernels which we can control from >> perf >> in a system wide mode? > > Sorry for suddenly jumping in. > > For KVM, I think we need to implement mechanism for saving/restoring > CoreSight context for every guest OS, the CPU PMUs has implemented > related features [1]. > > Thanks, > Leo > > [1] > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/kvm/pmu.c > What happens to the sysfs mode of tracing? For that we would still need a config right to exclude kernel mode tracing completely. Thanks, Sai -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation