Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp487809lqm; Wed, 1 May 2024 06:59:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUM0IOpRTQtRYrgbnE3pAmP9pT6S3oXl2YkWuuFpVAUBv5V2VqlNaVFJ1L3/dcgTR6MElXvUsg9bDILrV5udznXuLv2292fqO1Oab6F9w== X-Google-Smtp-Source: AGHT+IEr9ULkd/5/RdetRzarg+ArNIYGfZQrNVzR9rErAgxPpP7Q69yh5xz47tSsuChnpVTA7SWJ X-Received: by 2002:ad4:4ee3:0:b0:6a0:8c9f:a42f with SMTP id dv3-20020ad44ee3000000b006a08c9fa42fmr3089160qvb.32.1714571986671; Wed, 01 May 2024 06:59:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714571986; cv=pass; d=google.com; s=arc-20160816; b=lUSNc9f21vdHIsYaQdo5kCUJbf5E3ugHsDR/tep1+k9g/Wm8BWS3hZj4/NZQ0BkhaN FReRLh3k0v9Yq5RLuvtGY57MSz1Z2aWOjCSfa3bNpmduV0pK1gzkBcnFvHtoSt4FsMAr z/kRhqyg1O+tsL3Ne4JNr4+TLucIDiRbhEeXSDI8pGdTk4nyat8TYAlzsLhOKHUXWKAD DUD4LyennEv+ROCDObdl1SAsE6BlJ8lwsSr8oqHa50uX3EIMRaMU/hhGPgNBZtfMpgop Fca/mOKXEIP43JcgSZaXIu+D8g00tBpgEsZhyibf3t5/oL09jjMD02SsX1LsmPPVhlnA txMA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=T5tN+SgXN6ONNUZ0hf6+ZSwM1X0W9cVDf2BIPX8Oktc=; fh=AzqiLW8J4OoUv/Te03S6iLlhS5zfpwhFClSszY/K5oI=; b=od876h5I/t60Jm3oNjBfe2Z22P1aZ4FyQ7nupsxiqyg5VobHq7UxB4YMnS6M3xb+AW 5DQ+PCtcx1C54aeycOotywJZSUEs9C8Z9qSb1/9KlUUGEj3rW+JmsRZTzU0j+h+Mon7c vlxSithdrl/M2oItR+mGpruetm5qfEbTLWeaRKJwEaYa0CrNojDRWV1aWM/pK7Tttn9w w4L6wlaiEPjeS2H1EqymCNpP/JGyssqHWDU/ZHY+Un1NXJW5jTnAln9S8unpRLtIF5uk 5vMa0PNara6nxDKDn6QAwwKf/kZdvDGABd7Hsb3vKc2+h6z1rEYYzb5gAdRujZD4mjPA TH2Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-165346-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165346-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id gi15-20020a056214248f00b006a0cd13fb79si7421776qvb.433.2024.05.01.06.59.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 06:59:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165346-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-165346-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165346-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 60AF21C2224B for ; Wed, 1 May 2024 13:59:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D16EF12F58E; Wed, 1 May 2024 13:59:22 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0A63712F583; Wed, 1 May 2024 13:59:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714571962; cv=none; b=kJt9iFipJXWHqmn+oqWkDEbRxY3mScti3kQMCc5KhUms/QxkrOME23+wX/N6pricbAY6w0p4FkBn9QtyK2Drw0k/w4+59LOjq/ogfm9P1wWbV3RXA/BZuS1n4hi12VHFM6sC7zBU+C28ddjRbsfQOZfbfiuLvyaCYqhjfmBmFBY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714571962; c=relaxed/simple; bh=kh+yXs/vps5ZxI7eRsLo2rWdX2HrIuuYfU3JQKjNXQA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=dXY+d51shnDq4eRjGFe1enssDmSm2+tQZrWQSSTw1eIXFBXp9QgzOe6JRuwJglxMRfY7spUdllv8Sg1GNZlC/ncPLVE9fNvnZbsnH5JlfSuZtjAtq7ovc8E6BzlcDPIlfQ+Qc2sHgIW2hfRltIHaGHEn1Gy2PF/7hZoyhQ7rqpU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com 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 1483A2F4; Wed, 1 May 2024 06:59:45 -0700 (PDT) Received: from e127643.broadband (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 4D8ED3F71E; Wed, 1 May 2024 06:59:16 -0700 (PDT) From: James Clark To: linux-perf-users@vger.kernel.org, coresight@lists.linaro.org, leo.yan@linux.dev, irogers@google.com Cc: James Clark , Suzuki K Poulose , Mike Leach , John Garry , Will Deacon , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , "Liang, Kan" , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/3] perf cs-etm: Improve version detection and error reporting Date: Wed, 1 May 2024 14:57:50 +0100 Message-Id: <20240501135753.508022-1-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Changes since v1: * Add a commit to use struct perf_cpu in place of some of the ints * Add a commit to remove repeated fetches of the ETM PMU James Clark (3): perf cs-etm: Use struct perf_cpu as much as possible perf cs-etm: Remove repeated fetches of the ETM PMU perf cs-etm: Improve version detection and error reporting tools/perf/arch/arm/util/cs-etm.c | 287 +++++++++++++++--------------- 1 file changed, 139 insertions(+), 148 deletions(-) -- 2.34.1