Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5308055pxv; Wed, 21 Jul 2021 02:16:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbs9I0fQ9EWwDgURpV86R5O5GdF3J4FZ9Og2cnUcOQ42g9qXw/FizLyaIPSSQtfrkO9QgI X-Received: by 2002:a05:6638:c4a:: with SMTP id g10mr30141128jal.21.1626858980278; Wed, 21 Jul 2021 02:16:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626858980; cv=none; d=google.com; s=arc-20160816; b=XdwmVFdNt4ohsV8+3R2PwNeKG/gJ4l0j9ULz1CLE486rFs1Az5fkvZOXT34h80shU4 pIEDnVY8cuVeC9dzUE5vIHiZQJvocPkaikNI7xeE77sMMsw5IiD/Ro8IS0eSygLmUusg fMdjLHp/VxRCtNbQJX4xfibIXqfF+YAFbfuCXRKqyH8QhHFcahrqc8ukSHVjxY5+PzkH a4Ep7wR/qQxTgWp2XBAOiOS+lwrXAh2xseixGBjjCPsi4Plckc2PA3aqaKUrkrYDSfD1 LnJho5kLmJGS+W3bs/BD8vVh9iOGsbOTphngmNJGYnCwSvu2yo7vDvw7f3b4aY3oqkmC Hz1g== 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=3QYv+2FjcyHT7c6OtAmnI4iwvijpaBJ4zvsHwWI/3fE=; b=EJKpSomA+S6iK+QjF/twzUsueRvqJCR5SwnpI+dpyRpiLXm4mCvk7wE2Wc2eGE+U7Q dvA9aZhY6P8obL3dRPBx5NfhP/ai9DVPT+ZoQUnF8EkCYN7Slo2+S0xgwZQSOuKBl9T+ FmCO7Y0Ic5UtngDoizOBm5p/r4hiz5aq144FkOQykkmFGD1E9mua1/sDgmTeIcHHv5sk kl+gOimP8GsJ3JoII/VRf6eupLljRYsh9NOoWDd0nJAlZ5jA5xtAknYQ632UIDfvVVLX 4R8Z66iY32mDBm/fBuQkHELkEzK1H02YOQpsGPlTiGnoNpvz83nxUFae9QKR4DycVl4H +3XA== 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 d6si15581403ilm.75.2021.07.21.02.16.08; Wed, 21 Jul 2021 02:16:20 -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 S236018AbhGUIbt (ORCPT + 99 others); Wed, 21 Jul 2021 04:31:49 -0400 Received: from foss.arm.com ([217.140.110.172]:49196 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235290AbhGUI0l (ORCPT ); Wed, 21 Jul 2021 04:26:41 -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 9A3DB31B; Wed, 21 Jul 2021 02:07:18 -0700 (PDT) Received: from e121896.arm.com (unknown [10.57.38.215]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id EF2BF3F694; Wed, 21 Jul 2021 02:07:15 -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 , John Garry , Will Deacon , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: [PATCH 0/6] Support ETE decoding Date: Wed, 21 Jul 2021 10:06:59 +0100 Message-Id: <20210721090706.21523-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 Decoding ETE already works because it is a superset of ETMv4, but if any new packet types are found then they will be ignored by the decoder. This patchset creates an ETE decoder which can output the new packets and saves a new register that is required. No new packet types are handled by perf yet, as this can be added in the future. This set applies on top of "perf cs-etm: Support TRBE (unformatted decoding)" on perf/core. James Clark (6): perf cs-etm: Refactor initialisation of decoder params. perf cs-etm: Initialise architecture based on TRCIDR1 perf cs-etm: Save TRCDEVARCH register perf cs-etm: Update OpenCSD decoder for ETE perf cs-etm: Create ETE decoder perf cs-etm: Print the decoder name tools/build/feature/test-libopencsd.c | 4 +- tools/perf/arch/arm/util/cs-etm.c | 13 +- .../perf/util/cs-etm-decoder/cs-etm-decoder.c | 151 ++++++++---------- .../perf/util/cs-etm-decoder/cs-etm-decoder.h | 8 + tools/perf/util/cs-etm.c | 54 ++++++- tools/perf/util/cs-etm.h | 6 +- 6 files changed, 147 insertions(+), 89 deletions(-) -- 2.28.0