Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6394875rwd; Mon, 5 Jun 2023 18:04:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ72sabElesQV8+BOaISFAbsB0AMU2cr8JkYSDLWN5RYVmfjOLCol2WYdjJTZmNlKHMkEWFG X-Received: by 2002:a17:90a:1a52:b0:256:2ef:92ec with SMTP id 18-20020a17090a1a5200b0025602ef92ecmr233800pjl.1.1686013491223; Mon, 05 Jun 2023 18:04:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686013491; cv=none; d=google.com; s=arc-20160816; b=ExVSPU1aF3MR5l78DvnKZtsT7+qrhOzzMWXcXDjaefV3sisMu6APBNbFGCwRiA4EOf kvGJIA1qRohgfGxpgy8dCcdCMuQbGMqFLcZLGZIMw7bVKwhW8UlOQpuET7+YIYakQyO3 4Y169L/4ldqFF8W6gKxPKqOSeO8BjW7TUMO76UqodIFdo+XdnT6791z4QTBxLfiGWBJa qZDENBXi/vs0xAhAR8HLYzt3maSc6lY6YXnfFv72G8emcPjHnw4+17OlfzPLEKY4vNTa 15S0hLhq4w1aP1l4HbUVoMrfpvkllTfSltQWz1PsSZ/nRNhbjk0Cu7OKCeAeEYTTx891 OV1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3yI11++T/L5lBeXkeNTjihRq2YfRTI8fGCX9agASUvk=; b=L+nHksgqyx81PJcRkqxaXy9TDed/1YQXg5TtD+wZfbFrHYdN747PTKcGEMDOPF4/eM eXQMi8scdsmFHBAgPmJ1BUZizH5rzjXbsnD1+ZBjopg+Jh8qoOf+9Ho9drYw/+SREPf8 UzFWOyCCqReaQwOwyZaz1/rDuvh8JdDtVfEHR3vH9csLczPpfNpd8fTAV1Upt0Y/H2WW w8vnjbbspc3NS9bpYc/wF/WG3yye9QJ4vzLuWkc1AqS5sg+megScZ4DdZA4C8hkHB8/w UsD1zsgea0ul16xM4QeUyeg5XQOfuOv46AjSM7owm+qgHh9lJHnAou5UHbaURxjR/dpi M9Dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KhiEIuWw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k7-20020a633d07000000b0053ef547263esi6103048pga.169.2023.06.05.18.04.38; Mon, 05 Jun 2023 18:04:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KhiEIuWw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231378AbjFFAq6 (ORCPT + 99 others); Mon, 5 Jun 2023 20:46:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbjFFAq4 (ORCPT ); Mon, 5 Jun 2023 20:46:56 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF2EABE for ; Mon, 5 Jun 2023 17:46:55 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-650bacd6250so3125879b3a.2 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=eSkn0tv7yoWODrj08joMlXR/3ddThbOrztNmvhd4b7ElWv0jIPd68JqkwIx1MKRCPU GE4Uq2ZKLF0JO7beALD3wZDSWoezay5qZp+5RPCM5bwbmKlntPZymXFehN7u1ZaO73zF Vr21TKva53vjofHR/IRQ8rbES3mSKvkb8pT9xTB8ehJ8HbWu4ns2X3nrwjZs4h2JRiWX 0pDKpyfWOVNYZpLdLrbphQhCXZgVemUW538Z/jNohhNuT93gWbhyjwcMzm3235GO/ZQH e+0oXuw4B8eceG1yOGXYaKUtB6PuyPfpEJyls9wFVPhnz8b1SYrdfoFKGiDWMg42Moux nX7Q== X-Gm-Message-State: AC+VfDwfvcF+jLfObaZnN8TN2wx85GdCdIPACKAzws+hyfPZlC0PkaPr BHwxaQvWH3ltKRgAM2dZtSP4rA== 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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