Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3566541pxj; Mon, 21 Jun 2021 01:24:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGkGRO33MjYygP/DjLIpAEMS/bkIfp8tlMUaWQ9pCeXQOe5Zk6407r1SxfDRhjCarFbZxS X-Received: by 2002:a02:90cb:: with SMTP id c11mr16285296jag.53.1624263867329; Mon, 21 Jun 2021 01:24:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624263867; cv=none; d=google.com; s=arc-20160816; b=VhferGVYaGjRxWwAm89wo9nytWfKYIdQGApoYsCW9MLEiZHcmdFKvYRieQ+AmtWs+e ohvuQy1jM7ndd9qxGZ5N85IavEwVEkSUQIM95LxH8x07GZU6FSq0vcGOoDndBFgPzq8f WEiU0QmDezb3w8O5GfthKoahxgjsm5m4L7IOL6nsl6iFKY/3smtUxi2LspEf/4fW0b9W 8RxHPwZ+D9J1Xj/GchHbiPV4/XKYM4K7D2nsOQBHXMEmkW9X3E3KYT4pVhL028z3y12s YRf99zE9TVb8M699lJR/XuaeBr9GdOylGLfzJkx2QX5zR76AbNnziWMXBvECXD/TIJ5T 6EBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Gqd3O4ne1dNUetj8IOBDVEDjIC1vEw62dq7UiJ0rgTM=; b=rguO9BGMbkCA05uZHz393bA0xzsiPi2hurJ6/k+TdlhuxLrURZUGCTWeq0EVQk/L5b rPot/WADs9Sp0KiV0cJ7+TXKr7W7JjvQBv+hBnQCffkcl5Q5CxLAuc1ozxSdX2tRdUJF dG4jG32tde50TEdKtpzW6nIMbD8kF12YzYg93vpsOqLBZsesf6gRTJP+Gq7BSqgQMF51 1lGh8b+PgH7Fqbs3SFntDxEwVeCcL96xzEU67d3SyRqjivAheFAg1x8Uq0OxMBXk6n4z sTH7Uzoe0WQ9ZmCVLBgyf4uKfIUI1AUspsDGxmiAx4DG7n+Wf/ZHbn419l4FTQlBfKDu +3DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=P5DIJiYc; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p14si14329291ils.62.2021.06.21.01.24.14; Mon, 21 Jun 2021 01:24:27 -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=@google.com header.s=20161025 header.b=P5DIJiYc; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229618AbhFUIYb (ORCPT + 99 others); Mon, 21 Jun 2021 04:24:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230229AbhFUIY3 (ORCPT ); Mon, 21 Jun 2021 04:24:29 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FF62C061760 for ; Mon, 21 Jun 2021 01:22:15 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id k5so9499981pjj.1 for ; Mon, 21 Jun 2021 01:22:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Gqd3O4ne1dNUetj8IOBDVEDjIC1vEw62dq7UiJ0rgTM=; b=P5DIJiYcaFv2PfJZNbczzivYyCCQ9u7w3i/vH90+0mTyRL8r0HLL2Pd7w/RbaVUAZG ucSIEnU4YgKWml+P3z4z4Gc3qujHL7jSo/JfLdH1jGjlMXfQuZNoWbPF8gWWqly7PDSa aFaROk04qJwKB56IRCweNyqXZCaqIPlAP9CI0u2tm3mxZNnw6exFVtzEOvUvaBXwBqxb wu+hLeum0CH3GVeEAtUJ81WGcSMx8vXl7oEL3V1+mrQEaS/JtjL/5vYj5T+BtAzizdL4 toDaLFGkRDYIHX8yL7Dfdm7yUra6/gzzVOpQGabfKhy1gGKPie9uDp3UxOKTmuJIgiby d1vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Gqd3O4ne1dNUetj8IOBDVEDjIC1vEw62dq7UiJ0rgTM=; b=oZfs5Le6Sge6bFwwqQeEzye1+6/B+uDxL83E4EDlTlJtamD+o5DcoQdJtT1J6x5km8 F/iYjddulw1nzHgQo9gfMS3D9ISZNW+YHqw9wmG7mN/nSEOaTZjdHor9AhFCB7dwlDeT 2GzsLmyEZYsmPFk2JmvPHO83qiiFFLwi6FoyleJyLLRbWJ5CPzTZBR6ScJO0bOBeUZhg wvrE2CiMO0lib+GcXJ/usYyQs6T9jOfWYIM8rZLXI2uhqU9WLTZHHHEIw7hrjpsOYvpv kDUkzMZbTU9hynCaKe8Lot/acFhQ61nVKy6yAQ+j+xfWsSFJeIzaTrInbYkhau4HfA8v LRBg== X-Gm-Message-State: AOAM531wh7s4ljcVN0Vh/2gYAGvVLTSCXb3EENemAi2vpBEhdicsGd/7 sVGvuYU+qJPZ/AjBXIyDErzaavRil3p2zexAznG1IQ== X-Received: by 2002:a17:90b:300c:: with SMTP id hg12mr28711402pjb.46.1624263734484; Mon, 21 Jun 2021 01:22:14 -0700 (PDT) MIME-Version: 1.0 References: <20210528161552.654907-1-leo.yan@linaro.org> <5cf3effb-fccc-9385-6328-6d1e2e5ccdf3@arm.com> <20210612032721.GB36748@leoy-ThinkPad-X240s> In-Reply-To: <20210612032721.GB36748@leoy-ThinkPad-X240s> From: Denis Nikitin Date: Sun, 20 Jun 2021 22:21:57 -1000 Message-ID: Subject: Re: [PATCH v1 0/3] coresight: Fix for snapshot mode To: Leo Yan 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Leo, On Fri, Jun 11, 2021 at 5:27 PM Leo Yan wrote: > > 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. I evaluated AutoFDO profiles with benchmarks but I was only focused on the system-wide mode. And as I understood patch 1 fixes the issue in non system-wide mode. Currently I'm OoO so I won't be able to do further evaluation. - Denis > > > Thanks a lot for Denis' testing and insight review from Suzuki! > > Leo