Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp192694rwr; Tue, 25 Apr 2023 20:18:28 -0700 (PDT) X-Google-Smtp-Source: AKy350Ya4EcUajVqmwZTIwBiWUmH20piyCcZxKCDpt69Rc+B8Q3KBvXdxQNMBRII8d9NyCApLU3T X-Received: by 2002:a05:6a20:4410:b0:f3:4da0:a25d with SMTP id ce16-20020a056a20441000b000f34da0a25dmr15839871pzb.13.1682479108109; Tue, 25 Apr 2023 20:18:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682479108; cv=none; d=google.com; s=arc-20160816; b=QPpmJMnC3Ym4Yyr4md6iyrkEDr/Q/gydrI38AQkJJjZ4TVh5zZmS0Zi29jlBnMz6vl 0Pz4kOA+7trOTWnXo2eTZ1ZbVBIFwe5dpTgmFI7/1SIl7P5qNjHGbhiGFZaIV2GqW9vw LNG/rhrOL78X9sPwUrlqSVvOb7NXw3/f6YdB3PN1J2itEwvUcMZpmYiZ+2NEdi3OAMnx +3R2BVFt+3baoSoPhnwxD0M0HZcyS2tOmMZHHLfprvWTIZeej6uD7BWsJUnC28s13h6J HzWpCsuj+HKm2oAMLCXGXHVSt9VFDNirgmm8euRMveGukp7Bg02rBen80CA1wbxM/7sX Ozxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=AVir08Cbf9wJskp2wop7rm5AfA4zMnJc8JlkRWqm+pY=; b=IMIfuyP1gGpviKvHVd75YFjDrUKIOWZvIsJT9faZ1vh7ZEGRoGw4iM/yJDtEFC4aNS nnagDtDsUCskKUK61I32PINgkvSvPcLo9cpiGF0IvwGTSS4kqUlaWlHhpkQ5AzWAtUdA LWCJ+Mk704m8Q/D+dov8XetifTi1QYWGMbT0722qgh+yGrXdsbQ0NrVkBboWlWgdogpG 4d8jWx+5A/q53GwqEJ6TiZMK5Oq52oF18Y0tSvaFMlh42ZRyQFMaKrOlib1VuZnlbWqF 9Y2CWGpJ9MjGnLMHoqIrQXlS5yHhxVALQTXZDrYYlqfJnqlBEP0UdYIG2AB5W+4Vvd6n lNuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=lcqbSU1b; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i26-20020a056a00005a00b0063b1421d10fsi15878943pfk.222.2023.04.25.20.18.13; Tue, 25 Apr 2023 20:18:28 -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; dkim=pass header.i=@chromium.org header.s=google header.b=lcqbSU1b; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232378AbjDZDQb (ORCPT + 99 others); Tue, 25 Apr 2023 23:16:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234013AbjDZDQ3 (ORCPT ); Tue, 25 Apr 2023 23:16:29 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C5DE30DA for ; Tue, 25 Apr 2023 20:16:28 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3f1950f5628so52668435e9.3 for ; Tue, 25 Apr 2023 20:16:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1682478986; x=1685070986; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=AVir08Cbf9wJskp2wop7rm5AfA4zMnJc8JlkRWqm+pY=; b=lcqbSU1bG+4NDu22Nfl5xbh11Rzsat+yZY+zXVIK7uSCeYcmpb1ALuZkXGpRd43C9/ a4B4ON8ASn0+nVAgJrptnG8PaMw54nQvpwQ/Rgw/tFPUXylSWrgRYvLcnl8qsGSqMTKj 2nm2/eXv8QIOX7us8XIKhPgJxpClghibDTNJI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682478986; x=1685070986; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AVir08Cbf9wJskp2wop7rm5AfA4zMnJc8JlkRWqm+pY=; b=Vw+/y+QDX1sToeuOmbJSvzzKJxB6F7wXQjTiHUyXjYQfKaOI6F6j73sS7JQxSUT8nN UIMXog4M0O2F3RqArvUEjHlG8HYlrXfP3uD6PCtie9hdnERL7dsrvKPMOuCCkzAkJist 3QLotPchxHNs9a6izEa9wF+5kEApTBqeO5/taF8Bzl454+vLO+WIKUa7NFTytAQDcA1K APWHoRamt/5owtQ8q483Y9+vP20XyjcvbdkvMwwbwn502YucXuHQ08JBYsu3lcrsHQuM i30Vm31spl01AM6moNypWlQFIksYsBLlFE31Jiuz70EJ8fhdjhLAdvoSJDLU+Lr7FDYI ngyw== X-Gm-Message-State: AAQBX9fAtyTXr0IEn8I9v2QIjzv/tqNOE7jaOx7pmBYLSZdE4xJT0Ibp p+dsodnux8iynFgZzKv+ADKUhjdBeKIwdQYsubEJvA== X-Received: by 2002:a5d:560e:0:b0:2ef:ae66:c0e3 with SMTP id l14-20020a5d560e000000b002efae66c0e3mr12991855wrv.12.1682478986478; Tue, 25 Apr 2023 20:16:26 -0700 (PDT) MIME-Version: 1.0 References: <20230424134748.228137-1-james.clark@arm.com> In-Reply-To: <20230424134748.228137-1-james.clark@arm.com> From: Denis Nikitin Date: Tue, 25 Apr 2023 20:16:15 -0700 Message-ID: Subject: Re: [PATCH 0/7] perf: cs-etm: Fixes around timestamped and timeless decoding To: James Clark Cc: linux-perf-users@vger.kernel.org, coresight@lists.linaro.org, shy828301@gmail.com, denik@google.com, Mathieu Poirier , Mike Leach , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Thanks James! Some of the patches failed to apply on ToT. Acked-by: Denis Nikitin - Denis On Mon, Apr 24, 2023 at 6:48=E2=80=AFAM James Clark w= rote: > > 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 > > _______________________________________________ > CoreSight mailing list -- coresight@lists.linaro.org > To unsubscribe send an email to coresight-leave@lists.linaro.org