Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5622064rwr; Mon, 24 Apr 2023 06:55:29 -0700 (PDT) X-Google-Smtp-Source: AKy350ZqP9YYkLZmd9HzbGkb7KfDQzxvwLFhb4/u6dpnO9bflvPB3mA5QiZduCYjPR3oPJhbghnr X-Received: by 2002:a17:902:d510:b0:1a9:631b:7d68 with SMTP id b16-20020a170902d51000b001a9631b7d68mr8364367plg.8.1682344529433; Mon, 24 Apr 2023 06:55:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682344529; cv=none; d=google.com; s=arc-20160816; b=uPkzcvVZA7NY0Pc5UerIg19ncRCnJphfJcc/d/odR1L/jUamWWg5nD7bWAuB6BxwRw C1RdfDo0AY0iNQmAbJIVFIup800XqfER6ZhXaw9t6/Fh+L2wfSNpJ8GdzNmDxaLcyym5 L/aVyhsgK51UdI0C3l2HAQk35gfD7qhRjBJGxTfaikpvaXCG/PL0GYZVuOy9PbwOt9DJ ibBHxPwVW+8jKXJeRE9vIcUhBt54pV5GKw3IuqyLBZeRaiu8OVn+omr4ldSg4ODgftzx Vj+GLfl83k0ZsNGb1nt3P8GXF7fP7Gz6wDTHPYrujynU+jbiWKRqO4JSNWzNpBC5rEJl u7ug== 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=j03Zl9gPNg+ZspAXj7l2pMKVjfg/qzRMVKxdcWsgmzU=; b=m4QhaiHDnhAbc3b8K4DgQI/HXBg3JhmyyheAXAJzORQF+ByI4GKwcSawpDwqHoX3G9 erbrGSfBxDTURCcWVoJn3o9aLqLE0YXQhiRxULsXAwFRDdG5/TYUO+UUWEcSYX4dFAhh BMzVxp2nCRv78JYhOBnNTeYUjb7Hm0CPi6wz9WyacGXKgqGqkBFKXCTYUgiIgkXDEF49 N785mDs1pYYts5ATPgYUuvzHtlLOVh316VqfMGjZTJ8IicRNBEeYpIyfsoIRiuAd7vMW E6Y4UWbzXaXaO2eKNRw3awGTNmg+aLexkNQk5YVOniVALu2DWVEKDps3AYJSUoNbYhtZ 6cNA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cm5-20020a17090afa0500b0024728b38038si13910600pjb.72.2023.04.24.06.55.17; Mon, 24 Apr 2023 06:55:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232048AbjDXNsC (ORCPT + 99 others); Mon, 24 Apr 2023 09:48:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231695AbjDXNsB (ORCPT ); Mon, 24 Apr 2023 09:48:01 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 123F17AA4; Mon, 24 Apr 2023 06:48:00 -0700 (PDT) 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 AA890D75; Mon, 24 Apr 2023 06:48:43 -0700 (PDT) Received: from e127643.arm.com (unknown [10.57.58.229]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 943673F64C; Mon, 24 Apr 2023 06:47:56 -0700 (PDT) From: James Clark To: linux-perf-users@vger.kernel.org, coresight@lists.linaro.org, shy828301@gmail.com Cc: denik@google.com, James Clark , Mathieu Poirier , Suzuki K Poulose , Mike Leach , Leo Yan , John Garry , Will Deacon , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/7] perf: cs-etm: Fixes around timestamped and timeless decoding Date: Mon, 24 Apr 2023 14:47:40 +0100 Message-Id: <20230424134748.228137-1-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The first commit contains a fix for a recently introduced regression, but was always a shortcoming in the Coresight code anyway. The following commits are a tidyup in preparation for the last commit, which is a fairly major change to the decode logic that's also indirectly related to the regression so I thought it would be good time to fix that now. Applies to perf/core (9be6ab181b7b) James Clark (7): perf: cs-etm: Fix timeless decode mode detection perf tools: Add util function for overriding user set config values perf: cs-etm: Don't test full_auxtrace because it's always set perf: cs-etm: Validate options after applying them perf: cs-etm: Allow user to override timestamp and contextid settings perf: cs-etm: Use bool type for boolean values perf: cs-etm: Add separate decode paths for timeless and per-thread modes tools/perf/arch/arm/util/cs-etm.c | 223 +++++++++--------- tools/perf/arch/arm/util/pmu.c | 2 + tools/perf/arch/arm64/util/arm-spe.c | 26 +- tools/perf/arch/x86/util/intel-pt.c | 22 +- tools/perf/tests/shell/test_arm_coresight.sh | 24 ++ .../perf/util/cs-etm-decoder/cs-etm-decoder.h | 8 +- tools/perf/util/cs-etm.c | 200 +++++++++++----- tools/perf/util/cs-etm.h | 6 +- tools/perf/util/evsel.c | 29 +++ tools/perf/util/evsel.h | 3 + 10 files changed, 325 insertions(+), 218 deletions(-) -- 2.34.1