Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5730261pxv; Wed, 21 Jul 2021 12:30:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwH6Y64H2wksBDCJXkgVmUXjws8cQR/Q4/NDsZg9Y+VXGkIhTXF2apRGHeHeiv+T7uRrDYF X-Received: by 2002:a05:6602:2e11:: with SMTP id o17mr18845000iow.55.1626895723601; Wed, 21 Jul 2021 12:28:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626895723; cv=none; d=google.com; s=arc-20160816; b=yaFGjd7b8kXyiWVhPt1HxBT4Lv7L96ty9yxK6ybfwkufyjwPNduNrPXAsVzUQSkwyP CG2yDY9ZoN+hqB1dlur8ixqiydpyTUvRDViuGa95C4y5/nB97TFJxpEm2TipdPji+f/h 9TuK8ieDTlFRsQfd2JnYflKJo+/Fa86EjUAWXTg1CKGVWiq8OLaMw/z/Ot0ZBXhVgPgu wL93wSUO9v/WVn9rOGCeeV3nhC3wc9QhTluJdNPhsGtiJv+oDmZy20KvRp4VhXT4QWVz GfwemndpA0KG1nGRiOV9BF7vjQJJ42r2JbODvb2Zt05XCzwkB5xxxgxPiG0Bh8AZDXIb XCVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=DvVxZJMSWKSLhrds/d47D9RV6xpYCDloyy7ZvgI6Ogk=; b=cuieKyDXdfhLEw5HZ9uslM9rO+2UNFU/p7EyhFbGRykU7Ihv4U8U7/T09vYEgWNmbD cfU3MOJmIzwrQ3n2QtabnwE2UyaAnBx3wfrzXgwTmYOW22swJWNQK+sfH7Jyiu5poBLj 9HaEH1qt/rqligxQDoMG06faDgzWdyxRMLiaP0h5Lzu2EX4B+gusSsFAtZ2fgy4LyB2w pCTBz+eSYOSZOBbaturdbWJcS1KYTSoDTV2b53zMTH8tIksCF85fmNhRWtcZZUTUxygF 8ZQdjYFjjymtglrll2TlZqmqkPH5GSZIGl/jt0hWa2wJ/0y5FUI0rVHlnAKqa54X1QyD zvuw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x14si28016744jab.2.2021.07.21.12.28.32; Wed, 21 Jul 2021 12:28:43 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239579AbhGUOXp (ORCPT + 99 others); Wed, 21 Jul 2021 10:23:45 -0400 Received: from foss.arm.com ([217.140.110.172]:56846 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239499AbhGUOVj (ORCPT ); Wed, 21 Jul 2021 10:21:39 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5DB6A1FB; Wed, 21 Jul 2021 08:02:10 -0700 (PDT) Received: from e121896.arm.com (unknown [10.57.39.43]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id BBFA73F73D; Wed, 21 Jul 2021 08:02:07 -0700 (PDT) From: James Clark To: acme@kernel.org, mathieu.poirier@linaro.org, coresight@lists.linaro.org Cc: leo.yan@linaro.org, al.grant@arm.com, suzuki.poulose@arm.com, anshuman.khandual@arm.com, mike.leach@linaro.org, James Clark , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , John Garry , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/6] perf cs-etm: Support TRBE (unformatted decoding) Date: Wed, 21 Jul 2021 16:01:56 +0100 Message-Id: <20210721150202.32065-1-james.clark@arm.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset consists of refactoring to allow the decoder to be created in advance when the AUX records are iterated over. The AUX record flags are used to communicate whether the data is formatted or not which is the reason this refactoring is required. These changes result in some simplifications, removal of early exit conditions etc. A change was also made to --dump-raw-trace code to allow the formatted/unformatted status to persist and for the decoder to not be continually deleted and recreated. The changes apply on top of the previous patchset "[PATCH v7 0/2] perf cs-etm: Split Coresight decode by aux records". Changes since v1: * Change 'decoders_per_cpu' variable name to 'decoders' and add a comment * Add a warning that piped mode is best effort, suggested by Suzuki James Clark (6): perf cs-etm: Refactor initialisation of kernel start address perf cs-etm: Split setup and timestamp search functions perf cs-etm: Only setup queues when they are modified perf cs-etm: Suppress printing when resetting decoder perf cs-etm: Use existing decoder instead of resetting it perf cs-etm: Pass unformatted flag to decoder .../perf/util/cs-etm-decoder/cs-etm-decoder.c | 14 +- tools/perf/util/cs-etm.c | 185 +++++++++--------- 2 files changed, 97 insertions(+), 102 deletions(-) -- 2.28.0