Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7480198rwd; Tue, 6 Jun 2023 11:16:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ZpH2TlRFqqyRhqvRApJSgMUfGC3B5blwaWGilQxui+khG/I7nhLYSqCH+ng/0n4HlDPhy X-Received: by 2002:a05:6359:38f:b0:128:7ef8:805f with SMTP id eg15-20020a056359038f00b001287ef8805fmr475496rwb.6.1686075402625; Tue, 06 Jun 2023 11:16:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686075402; cv=none; d=google.com; s=arc-20160816; b=dRilpCHjpctLWWmpKqQ0I2CJJJVams4ajbGVR+VTMNTIJGTubD3VesecwoqVa2IqRg x89qHuChe8tBDW8+W1xsn5HmXTwuTFPg1HIWRAnxnkkFtn2heovLN297362BoVQcBmDy IrbBdbMtPALzIKCQ78/OJwaybkhXQQ5r6bxaQO7d5+B8Xkn6lIajUs8QvSXgSXkVORTz royYM5zlXDOHKGqVoGeMICUFAW0aHcgdyr6VTWItynjaxqlj59ZOyldjJplC3NaBClEV qUxIzX8LRlhubD4rLHlZJvsqFdX4yRCVaSD4InrT7Qru32XWl8DnEoJyiQDDQtkPO7Jg KwRg== 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=m1UmqrhUHhqWGJc31D53uT40i0sgem/hJFCauaetZvY=; b=TWn7pOz52ewkH9UNWoB6OaWPWB8S/XMHol2I9GdBgOObOW9MsXiUTM5dRoiiDhmdcX AKqAeKbjwpOnK1yOpOOxhNMroUAHNaj0awgVLMEpNJzVTXSVt1oqjRwR25M5rY3zSskb nVwncWR/zL7Ighpwkp2TOJgNdcS2t0GDohIox+4tsv8N3tZHGRP6LZiOrZg80ekCVeN0 XvFVCdgZBBeHS0PKvTatFGB0ZqyGlu4a6PqMSpIFBup3YNlbRPLHFAdbnsMtrwpQnNMd R2gj+QhA0JVIm9X0obLcbvAG5xO00PcAw/JJdr26VkyoiX+WaRhcBOVzQAwGAPvjiN9R 232w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UHHxQUQ4; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a30-20020a63705e000000b0054290a07fbbsi7557561pgn.324.2023.06.06.11.16.09; Tue, 06 Jun 2023 11:16:42 -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=@kernel.org header.s=k20201202 header.b=UHHxQUQ4; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238869AbjFFSHh (ORCPT + 99 others); Tue, 6 Jun 2023 14:07:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238105AbjFFSHg (ORCPT ); Tue, 6 Jun 2023 14:07:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71BBD10DF; Tue, 6 Jun 2023 11:07:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0E7A2635DA; Tue, 6 Jun 2023 18:07:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 432DEC433D2; Tue, 6 Jun 2023 18:07:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686074854; bh=7lLqWH4ip8VH/3WA/LhtLtBwcCFutgrU/RLWoVwcJ40=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UHHxQUQ4V+KV78PfL6CvVJsFoeJAzA5U5czMdfVkZkrWXJsqa4dKgiceE7YSvy2y0 TlTXjyHSDwX4Udet2BCZm8fdoWAFWY0vyRu7Se30RUQkqdboydkcKR8/cB4x5xlNkL nwYvh/YBRiRGSe21I5v+KbMy0W8eMCecZ2zQ25uG4Q52VtOSYbygACO06L2NqwG2pv EBf8pTb5TjxWj+58oDzlKaLhINIFqJjPA0XX7iUHSE+p5nn9q58wftWbvqJKaNzJfi fabQ8qvRyNZw5EvIKZ11BpanKscjth34kkQtACBxPITrwHszk1+EvPChrvP2avDMdh gziMzj3NzRMLA== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 1059A40692; Tue, 6 Jun 2023 15:07:32 -0300 (-03) Date: Tue, 6 Jun 2023 15:07:32 -0300 From: Arnaldo Carvalho de Melo To: Leo Yan 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: References: <20230524131958.2139331-1-james.clark@arm.com> <20230606004648.GB18315@leoy-huanghe> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230606004648.GB18315@leoy-huanghe> X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Em Tue, Jun 06, 2023 at 08:46:48AM +0800, Leo Yan escreveu: > 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. Ok, left just the first patch on my local perf-tools-next branch, will go public when tested. - Arnaldo