From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ADE05C4743D for ; Wed, 9 Jun 2021 02:11:08 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 73D2461287 for ; Wed, 9 Jun 2021 02:11:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 73D2461287 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2Sz2UWnAtRg6owiDxmCHwHcOv1tfk+F6VejsKabgm2A=; b=gmoBIUui4I8Tj0 yHAZX0cP6vXhQHtlXa6w825Bmj1r8waNned0pBMGyNVHquYnra8W6vsN7wPFivjkc2pYzUyf+/mNn 6r90X810QtFeJzp1x8ruxED1cDsxDi6JXvJDSnJC0oajhBbFgtI7YrgyBJSNhSZd2dWW/NGOh5T17 z4AxKgGkh4N0R4IPFJDd0pHVCjQ3FTLyJUcXnXkkN2lWwfIS4fjJXUxdXF2bh6AvGWrupGzoM94yv Pf6dgzeklrf8xkJWbpH/tIISVRZBSJFB2pKwx4jhXCMD4Do4co62zIwFHFlT8rDBd9DGVuDtEbDbu tBe/+LBLEvrIu0BZH4qA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqnc9-00BMJD-J9; Wed, 09 Jun 2021 02:06:44 +0000 Received: from mail-pl1-f172.google.com ([209.85.214.172]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqnCa-00BC1O-II for linux-arm-kernel@lists.infradead.org; Wed, 09 Jun 2021 01:40:17 +0000 Received: by mail-pl1-f172.google.com with SMTP id e7so11687316plj.7 for ; Tue, 08 Jun 2021 18:40:16 -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=M/owLg08bguZHzqpQqaktJoz64/ZUGsqyxHKpAdG66g/t0qrGl85I7ZHwlSGqsKAoJ MYfl6lZUj9S3sTPKDCRlx1zYgfBB7X7lduUd93WJ1ZRXUSNWcoXUR7KOBkebIzjUMtMh 7315rkg960MHByTaNKK5eaCZsqFXT4BDbCBYlNGdshv0ksDF47Gu/TBmMqU+t7aeHZIz 7ARnr1JnGZvrChQll2VSjxApZerzg4SLvwGt/TpOvGgCsLyWo1YcexYh6qxgFt4tN37P YRe9JR5rL8HYHAhmefHutJxe2cxPw1xRRqpc6H0ry/dzjK5CXX5DRzQ9VFixRRq08foC 8rNA== X-Gm-Message-State: AOAM531LnQ1fRS9mH3dtj9dDxTlbbLkbQlceZ+WHzHX+2ETFwsTGdZy5 qi7+VcWPSuTkVTcb3J5dFntfBw== X-Google-Smtp-Source: ABdhPJy0fGqUCQQPXLN28cPcP97FKbCAmwU7xD+S4UOlHjhmhegG8QJK9GpXyIrEx+rq3flbIZuqvg== 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-Disposition: inline In-Reply-To: <20210609013555.GD4640@leoy-ThinkPad-X240s> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210608_184016_644475_A975F0E7 X-CRM114-Status: GOOD ( 16.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel