Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4924771pxj; Wed, 9 Jun 2021 05:23:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJym0kUs4ScLnbaflaR9SVI8rTUILXA05U/qPdbHl8bkYSgrDAu+PPr3ld2HZG6NG7zuL+V9 X-Received: by 2002:aa7:d5cf:: with SMTP id d15mr30641383eds.342.1623241384890; Wed, 09 Jun 2021 05:23:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623241384; cv=none; d=google.com; s=arc-20160816; b=LgfDA8tqQmNjXhGDOrbh0KuK+NZOOz+AXUaTryneo3KUPsChh0D5myXJYpSNfQzYNK kOfTUTTIZ1HAyM5TqRQiZupdSb4n6nAskeBInwtGi/pWHHJt8CJUlQBfpGXcvcpP7x1b ns0BoW+qR5d3dVjEELUddb/q1f6Fo+90o8EwDP4pfRnRzDbDF54U7K8xZr7T47pJM5V+ +yMWzR5+0KxGd4IzDRkv7t9UzR6qTIYqfeskUdUQJcNPXON/3CuRMoeGudGFeAQtUaZr mxf8QY3i25pDXTBHAz4txrbE9P7QiIx0pFeiZC0JLFPYKsDDNmSPheqZSYXV8kEp9NGu 5dbA== 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=/d3k4uICSgLjCjjIICNIctgXwaLJ2Iz2BJO+iXE+CTE=; b=KqgXkSquP6JiPw17cyQVIAmUbwHBVyUYpI6KXJb+aqgSVozmUoTfwXHqPEZcBwukr+ H8Wj44UrbF435Cw79aas6w2J0nGRcVgtxGNSOGpyQA4dOHNk8FwEsGd1EAjNXtLlxWgH GrNNm1ULXJ28F731LMBNsCI/5G37pPX7lgH6+N/8sEDB9OmiUspXAZ9beTLFoVZl5zRc YWmmuAdEFnDWgl2QLF6QhtqVT4J4yJ1eUMJ6qEpPr8m7jeyDbywMCd5J0KZLrVGSHAAh KAopyhg5kbtPc/TM4469m+RGNnZ5yBkf3sflgmrDqMeKZ8FvyOKEdN1Vp8/kM9Di8oF+ skKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ce1GhVAr; 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 z11si2065246eja.613.2021.06.09.05.22.41; Wed, 09 Jun 2021 05:23:04 -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=Ce1GhVAr; 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 S232157AbhFIBmZ (ORCPT + 99 others); Tue, 8 Jun 2021 21:42:25 -0400 Received: from mail-pj1-f47.google.com ([209.85.216.47]:43762 "EHLO mail-pj1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231344AbhFIBmY (ORCPT ); Tue, 8 Jun 2021 21:42:24 -0400 Received: by mail-pj1-f47.google.com with SMTP id x21-20020a17090aa395b029016e25313bfcso423505pjp.2 for ; Tue, 08 Jun 2021 18:40:15 -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=/d3k4uICSgLjCjjIICNIctgXwaLJ2Iz2BJO+iXE+CTE=; b=Ce1GhVArmiYuuqT3j94UWVmFQjeZPH3AVVC2vYIteA7rQdnD0WFRDvMmtGayLw+riE Sp6so76C+tLWPyEOllGZzFeMuO3ooazJwBFesKhcWXaWAfwVPx1hmzILRlRt1Kbf648j ZhCkC7sb07qz2RjQcnXgzD11+7EvDvyxfJaFQeZNDo5K9zLTfAIRovvm9SqucfB8y8Pg aZ0mEqBWkPv4puVReUYxXzc49m9jaEUKPj2DAUr4oe/hRbmaeBMeyHQZ7yAx9kaHGeFh 1CBxvjDOrMiKF6MaC0CW4475LMcDvZp2k0ew8w/rkX0KgiJgmb916EC+3X1yjlMAPRfu h3QQ== 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=/d3k4uICSgLjCjjIICNIctgXwaLJ2Iz2BJO+iXE+CTE=; b=Mts7GkTryAKzausW2BU+rUm0rg3Wv9FQfbxKKhyznKdxIGr3TcECaa2sg34gxEC/x/ HQ0LHJd8i+Qt4vns0TlMj5RNmAMMxZw3hlbPKKOCiZEjU3rfZJ0TElaGRBLJXuFJQaku uk8s19EVJKpg2zDykX78ghwDFHKDE83ukA6IT8uiKZdBUnZZE1WBLjprR3Sn8I/q3oaQ JjOASgzAS/pG6AiXN4tn4Hp5iY5rCspQGFpDPuj7o7FX9EeYiNptgtBynvLkft3Vzshg aNWGXgLfSju2sndtMdiKXe334cde83bULaNDtJvpHgcCbk3W9iDBAG+UPtesYp2dI+EI KtWw== X-Gm-Message-State: AOAM530GQCvB8ySkBTWZePe8jKMpCuItM/Ke5jp5IgKcWEH1LleDbHUt +Uy30WQPD7Uib88SXRCY82w5Gg== X-Received: by 2002:a17:90a:a393:: with SMTP id x19mr238868pjp.1.1623202755591; Tue, 08 Jun 2021 18:39:15 -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 f17sm12272157pgm.37.2021.06.08.18.39.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jun 2021 18:39:15 -0700 (PDT) Date: Wed, 9 Jun 2021 09:39:09 +0800 From: Leo Yan To: Mathieu Poirier Cc: Arnaldo Carvalho de Melo , Suzuki K Poulose , Mike Leach , Alexander Shishkin , John Garry , Will Deacon , Peter Zijlstra , Ingo Molnar , Jiri Olsa , Namhyung Kim , Daniel Kiss , Denis Nikitin , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: Re: [PATCH v1 1/3] coresight: etm-perf: Correct buffer syncing for snapshot Message-ID: <20210609013909.GE4640@leoy-ThinkPad-X240s> References: <20210528161552.654907-1-leo.yan@linaro.org> <20210528161552.654907-2-leo.yan@linaro.org> <20210608214149.GA331611@p14s> <20210609013555.GD4640@leoy-ThinkPad-X240s> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210609013555.GD4640@leoy-ThinkPad-X240s> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 09, 2021 at 09:35:55AM +0800, Leo Yan wrote: [...] > > The problem with this approach is that if the AUX buffer is 4MB and the CS > > buffer is 1MB then we only record 1MB, but because of N:1 topologies we may not > > be able to do better. I haven't looked at the code yet, something I will do > > tomorrow. > > Yes, the fixing in this patch copies the trace data is limited by the > CoreSight bounce buffer length. So if CoreSight buffer length is > 1MiB, then we have no chance to allocate 4MiB for AUX buffer. Sorry for typo, just correct: if CoreSight buffer length is 1MiB, then we have no chance to *copy* 4MiB trace data for AUX buffer.