Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1070996pxj; Fri, 11 Jun 2021 20:29:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNIe2Hx87ynQNvYDzRK3DJlbE6bnYtR2nph6tx5ER392KvN6SveFqk4hv68XKw5c0SWxrf X-Received: by 2002:a17:906:8318:: with SMTP id j24mr6258686ejx.375.1623468595848; Fri, 11 Jun 2021 20:29:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623468595; cv=none; d=google.com; s=arc-20160816; b=ebIqBEeH/UFBl6wgSgSS5aP8u330zAKWLl3NLqhKGj63H7TX+y1ojbqC/pJJYKOCu1 lDxv5+0flwJKcCW4yNNdjeHVitDQtU2/aAjaMivgmpgSGz1q9pquG9ygPnFr3OZ1tgVI AaurxaAzhyRqA22E9QP9/l74WDUqogZpBYf4pjyev17D5VNbbrrq0YA2zxDSDxnAB2+w PQUj+R3n8DDl96US+TZ3/tN7XhKLOidfG1YddUTNWk7zVtOvpgobV3IgLslD+/bs4rLm hBo5Sa04bGdU4srDMQGacY7doo/FEFTL3kEbHo1qo0EZuI6b/3RFF6CC5Mmej5gsUdDg YPMg== 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=wMbJzEFA4rizeAED4h0yeaNqBh4tC+L5roFT//ohrj0=; b=lJ2DvguJhVresfUSxCQeqc+uLWDqjSDDl4qIywwiXeGZtODkIsRwA3Z/wXKEMnWIwo IqfZ+7burofAafPDJ/+5+exLYa/1KAPuekOi+FbTLQhHlveFuP+xdMVfGOtJjkJ8E0sk MrUmKnJH3G1M3ScntIBMH2vSCnkp+9vs18LNkcmxG5osUu8j9OTGIY877be657bPjSwV HblJptifnrf8G8aeqHwYyQK6LpLC9+w5Q15wY0MTVY6Gc1T3lNPaOvlmFMTSF86S5S23 Vxu4tirNORs/x3Zgdl20XXjsHtUJzLrtZ3TMWzy0yO79i41XMPOYFgIbNm6KFIXC50ji Uwtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X5FQFhk4; 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 s8si6412388ejs.329.2021.06.11.20.29.33; Fri, 11 Jun 2021 20:29:55 -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=X5FQFhk4; 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 S229985AbhFLDal (ORCPT + 99 others); Fri, 11 Jun 2021 23:30:41 -0400 Received: from mail-pj1-f45.google.com ([209.85.216.45]:54880 "EHLO mail-pj1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229874AbhFLDal (ORCPT ); Fri, 11 Jun 2021 23:30:41 -0400 Received: by mail-pj1-f45.google.com with SMTP id g24so6709361pji.4 for ; Fri, 11 Jun 2021 20:28:28 -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; bh=wMbJzEFA4rizeAED4h0yeaNqBh4tC+L5roFT//ohrj0=; b=X5FQFhk4+/SkVAlz4VPwkLe6H0Ir6Dir/Hy625SgB2RA0op3Kd/4UsRqRLCbAKCoOx DuV67LDfpukyDdxC8Sv6272FEQqvkMjjjwRYm+M6Ck/g4NXuWx/3aMIBX9NTLSp3kXFf 8y21X5nKs4ZtFw4Hzdx/0f2/j8FD1OeA8/tsF2JatUOrGExLVPhnKBQXaSrg2ZUIrAuM 2U01NxNYsn70PIaNHN+XSl+HepOqAqvuBXf5aEOT0ffP+aadqkAJ7FGtkWiefLBhbDAL csMZ4qWtK2g2/2BzDzdd7jCZPiyeJpys5Xg5xNnz7BMavZkBxz01MhkKOBWDJl7XqVwj MKwg== 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; bh=wMbJzEFA4rizeAED4h0yeaNqBh4tC+L5roFT//ohrj0=; b=Dsj7KdunngBX5RDWHckKraS47qcgD3hjU/VxXoXf89/HNVAibNDf0ayoEqc/pFMZF/ y2mourZ/2jtxCEEcO+KfQtnVCs3gRrLE99WG5kuJ9cbp2loUfu5cpYs2tGnXzQHs0DKF otxABBnIYyRVqe2tROCh1Yo+/ENgNMBLdLuHVsU5B+F9NA2cjVE3pfg/a8pi4WtKKwPp gfoT2PaAMqnW4lkcgVdv5iiai46r3IeQPthBiW1GX84sqTQkn3ycnS6DQqphOTz867JY uFTTlWOyF4wq0fK9QIGm1XZ3MN8xpOHc/ifYMa39bZogOqgF7GkaOu1mL0jLESW/dO45 qzRA== X-Gm-Message-State: AOAM531Bh3EZKCoup4iZWjRtK9Jq8mk0nsmWiHJlFxjaTEeUOM4r8/EO wUg8sDK152hwKw3pTp3Mue1FCQ== X-Received: by 2002:a17:90a:f291:: with SMTP id fs17mr12148977pjb.8.1623468447896; Fri, 11 Jun 2021 20:27:27 -0700 (PDT) Received: from leoy-ThinkPad-X240s (ec2-18-167-84-74.ap-east-1.compute.amazonaws.com. [18.167.84.74]) by smtp.gmail.com with ESMTPSA id c130sm6176886pfc.51.2021.06.11.20.27.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jun 2021 20:27:27 -0700 (PDT) Date: Sat, 12 Jun 2021 11:27:21 +0800 From: Leo Yan To: Denis Nikitin Cc: Suzuki K Poulose , Arnaldo Carvalho de Melo , Mathieu Poirier , Mike Leach , Alexander Shishkin , John Garry , Will Deacon , Peter Zijlstra , Ingo Molnar , Jiri Olsa , Namhyung Kim , Daniel Kiss , Coresight ML , linux-arm-kernel , Linux Kernel Mailing List , linux-perf-users@vger.kernel.org Subject: Re: [PATCH v1 0/3] coresight: Fix for snapshot mode Message-ID: <20210612032721.GB36748@leoy-ThinkPad-X240s> References: <20210528161552.654907-1-leo.yan@linaro.org> <5cf3effb-fccc-9385-6328-6d1e2e5ccdf3@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 11, 2021 at 01:31:41AM -0700, Denis Nikitin wrote: > Hi Suzuki, > > On Thu, Jun 10, 2021 at 9:04 AM Suzuki K Poulose wrote: > > > [...] > > > > Are you able to confirm if the patch 3 alone fixes the above issue ? > > I am not convinced that Patch 1 is necessary. > > > > Yes. "perf cs-etm: Remove callback cs_etm_find_snapshot()" alone fixes > the issue. Based on current testing result, we should give high priority for patches 2 and 3. The patch 1 is controversial for how to handle the trace data kept in multiple AUX buffers; essentially it's up to how we understand the snapshot definition. I confirmed Intel-PT and CoreSight have the same behaviour for capturing trace data from multiple AUX ring buffers when snapshot occurs. I'd like to leave patch 1/3 out, and resend it if we get conclusion. At the meantime, @Denis, if you have observed any profiling result (or profiling quality) difference caused by patch 1, the feedback would be very valuable. Thanks a lot for Denis' testing and insight review from Suzuki! Leo