Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp146234lqb; Tue, 4 Jun 2024 07:31:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV6uOovIqaz/M06tYLAUqP/rnuLgh0E8pcGj1Lwqr/nUU6qGy9/vy+sgZp9rHzfZP5A26aHOqoAcgDxuau5zRXhhZbvdn8NM415xrNi9A== X-Google-Smtp-Source: AGHT+IHtrb4/YBSlbAHEtd4hDZS1gD4ZGK3oCjHa3fk8DW3MOcZAYUkXGkdVbLNayz8cjK2aVCgI X-Received: by 2002:a17:906:6bd5:b0:a69:2011:7119 with SMTP id a640c23a62f3a-a69201175c2mr313282166b.41.1717511512376; Tue, 04 Jun 2024 07:31:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717511512; cv=pass; d=google.com; s=arc-20160816; b=MrKn+2UzqZQrr0UzXga/rIJiDVJa95G5Ez+x7vIubYg6JA9nB37U97siWbAB6gkXO3 exmDEp4nvOtpgvtV8tJUXF3GN/FvUmvPS6FppzY2n4LkQpcmd1ixAfqWKcC850EV6Y53 sceYnm+EfWSedJlZYpmpx2gJmm3PNCWSCxV0YWdohZw5jVEd6dloLS1Pkgvxnnt2EuX6 PFeszG8MQj7cv6ha/i0h7wu/tuYqHuhFhpmNFO5aMI8D6oTDQJfPtPQZ7OaN3+8g8obG C8AP5a4Oi+3hmHwqGRfb/NZ5ukCyjP/bIxARHmFKW2jKJTv9NH17C7YcR2Ic05OyL6vF aMRg== 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:references:in-reply-to:message-id :date:subject:cc:to:from; bh=Nw3bnVYumpnGLPiEAPTXoBH4uvsENtZVwlyG2Rpuzew=; fh=PS2xZ37x6i1et2MxEVJy4TSpqrJZGNwd6DyYCR5/2fw=; b=PD4ndqiV2xNlyOgeSYcEU3ESmYYMBwbVcBjmNF/UqIAvJmEVikRYX4FKJy3Ofcqb7e GZzsHDricg0jwMb5eO9Uuhj2kW4fwtnP4aDEuZ4d3VNbK8MOa822B8MEYhL1b4TjUjsE eIYLPvX61zYpfhFQ3iIYsQiU0Cf36pGWuX9hkVOzEZRo2QMUihF1m0631A7OeoA7vvlB OQ3UNGz2hrpCxnNqXoFkET7+Jdq22JxWotTnpTpEdhKYnQQw6/OSBnSGUKnz2ldVaOAN ZyZJ44MAN3VZwRmpShOgY6JcGwFu99oxTd4OqM9wT94eJ1vPjZwFaW+dTupspc4Fvo7i JxUw==; 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-200819-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200819-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a68a0f610b6si409430966b.939.2024.06.04.07.31.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 07:31:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200819-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; 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-200819-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200819-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1E7141F22449 for ; Tue, 4 Jun 2024 14:31:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7DBE713C69C; Tue, 4 Jun 2024 14:31:28 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AD5B6C13B; Tue, 4 Jun 2024 14:31:26 +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=1717511488; cv=none; b=sBgNfNiQKd1oOIOxS4yctVZneLmjLKJ6GvC1PoJmweyYTckwubbHX1mzr16Kabfp6tsvTWqE/agGxd2M2mVU3Dvq8QZwm0lxjCtHuKIf7MjeHu0v3iovYLKxN4o6QVrOBTwGXxP2yTBpyoAXqKScGK4yGz6E830kqbPQeeTJ28s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717511488; c=relaxed/simple; bh=NZYQS9DoJX1Ne9ARwerYzJ7WRfVLN4BYuXhHYJnCE2k=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=B7Ftq7FOLB9cXHmnjnaRTsrneGBnHC3UVCa3wuicsv7Z/vD+OqJPkPHLxZWf5qO68tFx2G3CD8BR2Yd3RVzBydA0IktnbcqR79OWXTR8Bq0ZSrz6NDQj1GRxF0vwO4btnoir1lAv2L+AXwocRS9sNlYL//hTL0i3T85x6e0ewmw= 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 59C9B1042; Tue, 4 Jun 2024 07:31:50 -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 EBBB03F64C; Tue, 4 Jun 2024 07:31:22 -0700 (PDT) From: James Clark To: coresight@lists.linaro.org, suzuki.poulose@arm.com, gankulkarni@os.amperecomputing.com, mike.leach@linaro.org, leo.yan@linux.dev, anshuman.khandual@arm.com Cc: James Clark , Alexander Shishkin , Maxime Coquelin , Alexandre Torgue , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Jiri Olsa , Ian Rogers , Adrian Hunter , John Garry , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-perf-users@vger.kernel.org Subject: [PATCH v2 01/16] perf cs-etm: Print error for new PERF_RECORD_AUX_OUTPUT_HW_ID versions Date: Tue, 4 Jun 2024 15:30:10 +0100 Message-Id: <20240604143030.519906-2-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240604143030.519906-1-james.clark@arm.com> References: <20240604143030.519906-1-james.clark@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The likely fix for this is to update Perf so print a helpful message. Signed-off-by: James Clark --- tools/perf/util/cs-etm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/cs-etm.c b/tools/perf/util/cs-etm.c index d65d7485886c..32818bd7cd17 100644 --- a/tools/perf/util/cs-etm.c +++ b/tools/perf/util/cs-etm.c @@ -335,8 +335,11 @@ static int cs_etm__process_aux_output_hw_id(struct perf_session *session, trace_chan_id = FIELD_GET(CS_AUX_HW_ID_TRACE_ID_MASK, hw_id); /* check that we can handle this version */ - if (version > CS_AUX_HW_ID_CURR_VERSION) + if (version > CS_AUX_HW_ID_CURR_VERSION) { + pr_err("CS ETM Trace: PERF_RECORD_AUX_OUTPUT_HW_ID version %d not supported. Please update Perf.\n", + version); return -EINVAL; + } /* get access to the etm metadata */ etm = container_of(session->auxtrace, struct cs_etm_auxtrace, auxtrace); -- 2.34.1