From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AB5F9C7EE24 for ; Tue, 6 Jun 2023 00:47:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=EDkfRWp1XVXoDUxoXmGAw/oYed14U2rznmQthrpHavg=; b=QHVtmq6H4/UGuD OH0dGfe/QQJTbfqO4Xq0LRF1Z+rDuhpD/1kQbB3BOcpEvJWqM7As12qMljriyNLhLSP9xCjfULnLd LocE8GH8u2CjGcXzauAodXPyZnnCygcSoSKzvJDJCl41pvu05XQedkcOVffExW6JvKeYFwyyZ7uOp rDQ0ZMM0RNaf6w/hooILDjArm/p3o+iSvOOsSnkv7PgTzCK/8yFZ54bHcYkJMzWZEjlxMwKI/6gsP OYhNZiXb3N62u3s7hbUIBwrxEXbT225m2qrOWZowuNvDJS18/00SOzN4s/4ExGiY2tQl94BgPpYdp wamBjPqn8FFWbCDyHzlA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q6Kqj-00HG81-04; Tue, 06 Jun 2023 00:47:01 +0000 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q6Kqg-00HG7H-1N for linux-arm-kernel@lists.infradead.org; Tue, 06 Jun 2023 00:46:59 +0000 Received: by mail-pg1-x533.google.com with SMTP id 41be03b00d2f7-53f8da65701so2922353a12.1 for ; Mon, 05 Jun 2023 17:46:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686012415; x=1688604415; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=3yI11++T/L5lBeXkeNTjihRq2YfRTI8fGCX9agASUvk=; b=KhiEIuWwisJ64nb7oADv/W5nqmaBtNa8G1RmqvZUesa4csOL1T/m1/xO3Ro6OXBcQB JM46wGBSgfb3tepOH7zmW44Po9kVidHv3fde6PXWKpHx4wlivJx5wQsSdaX+IlCWqfT0 BpkWjkKmSal2JQH1WoxQXcajnA9fG87qCYoEMGJ/bJbY8xUvb4IbZkEy1ejj3SLdKLMf aLHIj9xNftG16pkkqEKSzoHqNmtYcdy/68Ctc1rY3cYAhEyTuk51nT05S5ojXfx2p2Nt XcAclcy/lUws7WybpPtBjpcQgfE7/Dr2gYwuS2uD236mAbXLV8XW+LiW5VfIUl8HoIm5 XicQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686012415; x=1688604415; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=3yI11++T/L5lBeXkeNTjihRq2YfRTI8fGCX9agASUvk=; b=XbZXfMlf1T+W8TY7Q/u+GA2UEhEjV+H2Yz97/j1NBO1yTTW0ET9B/BOeWlm2Pz5OQQ lpU2MzIkOpjZYQgbHR5QzIKOKIL4bvB4CW7vukeFw9yeJAU9XDk/XBclSLuST0pfonWl +9B0H0Ol190/r+2L+7k4RCe+6VGVGxyVVpOTdxa5yF3h9DwhxOGGPXTXu9SNOTb6cu7E g3ZRao+Fb5vE8FqDP+g/mh2T5+CQTJrlMVy4jnAGowHhJXO+PxRiBKNrAxjB669oXYo0 B5XAWOFBYMGOQNiTGrIEgNsWCpcxIBAMTaCFnCxuMKofT78Kqp3mVmSePmEts4ZSwM5v vMTg== X-Gm-Message-State: AC+VfDzvLARabWOh7c8R1OOgrM7pL4odKLnDnDpj/bI9HOVjydtZuNQS I9cnl0u2M9R5KTiHeiSkOPXZ2w== X-Google-Smtp-Source: ACHHUZ7cyZ3JhDDLWNI9zaNMYxv9oSFHsCJyasxO3QHJZy1+i8dryMEVT93ZWSy5z2tRoQHKLHipyA== X-Received: by 2002:a05:6a20:4428:b0:115:197c:e7d4 with SMTP id ce40-20020a056a20442800b00115197ce7d4mr560388pzb.35.1686012415379; Mon, 05 Jun 2023 17:46:55 -0700 (PDT) Received: from leoy-huanghe ([156.59.96.151]) by smtp.gmail.com with ESMTPSA id jh1-20020a170903328100b001a6cd1e4205sm7136386plb.279.2023.06.05.17.46.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jun 2023 17:46:54 -0700 (PDT) Date: Tue, 6 Jun 2023 08:46:48 +0800 From: Leo Yan To: Arnaldo Carvalho de Melo Cc: James Clark , coresight@lists.linaro.org, denik@chromium.org, Suzuki K Poulose , Mike Leach , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , John Garry , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/4] perf cs-etm: Track exception level Message-ID: <20230606004648.GB18315@leoy-huanghe> References: <20230524131958.2139331-1-james.clark@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230605_174658_462359_D0250108 X-CRM114-Status: GOOD ( 26.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Arnaldo, On Mon, Jun 05, 2023 at 04:44:45PM -0300, Arnaldo Carvalho de Melo wrote: > Em Wed, May 24, 2023 at 02:19:54PM +0100, James Clark escreveu: > > Some fixes to support an issue reported by Denis Nikitin where decoding > > trace that contains different EL1 and EL2 kernels can crash or go into > > an infinite loop because the wrong kernel maps are used for the decode. > > > > This still doesn't support distinguishing guest and host userspace, > > we'd still have to fix the timestamps and do a bit more work to > > correlate that. And I've removed PERF_RECORD_MISC_HYPERVISOR as a > > possible outcome of cs_etm__cpu_mode(). As far as I know this could > > never have been returned anyway because machine__is_host(machine) was > > always true due to session.machines.host being hard coded. And I'm not > > sure of the relevance of the difference between PERF_RECORD_MISC_KERNEL > > and PERF_RECORD_MISC_HYPERVISOR in this scenario. > > > > The first commit is a tidy up, second fixes a bug that I found when > > comparing the exception level and thread of branch records, the third > > is the main fix, and the last commit is some extra error checking. > > > > Applies to acme/perf-tools (4e111f0cf0) > > So there seems to be agreement the first two patches can be applied? May > I go ahead and do that now? Could you pick up the first patch in this series? I would like ask James to refine a bit for the second patch. Thanks, Leo _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel