Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1452876lqa; Mon, 29 Apr 2024 08:52:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUwjRBAV9AzMarFPbpTBnvwpeiDjHLq9S22RZpjR0Xc9auwv1pl2tVcBfq4vmpf9yewvE5ppIlHYD1yJUT+v3SVUU9sTqHEHehetQVgLA== X-Google-Smtp-Source: AGHT+IEqcqkn7hVwU1BzHaZU52mfognK1nmC5RAO3VV/VsOOJct1Kweh12nq3teiPbePOrJkQhjE X-Received: by 2002:a05:6a20:6a24:b0:1aa:8aff:4695 with SMTP id p36-20020a056a206a2400b001aa8aff4695mr13318191pzk.42.1714405922887; Mon, 29 Apr 2024 08:52:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714405922; cv=pass; d=google.com; s=arc-20160816; b=zG2Ml8fjs0vrNvrJ4U8RmY1A/FRHfWgUSM2kqrMgXViXZJyZYm0sYP5NdIxOC1MJOt IxxTk7f5cZVElxRG4NOh9ulc2ckg2FDD367ewGSBXk855JuQiQLIZ2B5YweBS8R+U0Tq zbfvIA09dtNxTP9viyw49/FA2jOS/e10f0wOgqieQPTjMbFK4Fh6ZgO2v6QCmXi4g+Uz B4IHhsUvZpXxxIVi+quIi6nf/6nrn+fuRp5wRfeC+9NmioEjbWPmOwvStF8J9BFPENDM ZIOTIIDCZMm+8xCEp45coSVFWKCthIIhwJZ7rSU5GkOxxv0Xwo82xCQGs3I2nYsOBA42 3BrQ== 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=eTkjUs/l3a9lPpUjmicKO4brnHa0D6Qg87n5LIjfzgo=; b=Jwug6+GVHav49gKXtCsfdnpQ2nd0jgiTlBe4NzLjt9kpw+B+UeYWa1WS8FizeNF9pC 9Ha9CXI3s3wqLhTr/lB2SpH+Y/Kxp3/Iq+rU7lVDOGhQVBLv0mwEUnIxAUQONKVxjxRK 0BXQ6XU8biGzClMvYIv91wNyDi0L4zztOeS8L1WIusi33aZrZRT/fyd2v4eLNnt53eDL Blqdhp3ItSn2JqtUCGbsP+Juhjfa+Frwo7cgRUrB7MenzKs6OmhmsrWkPAA5ALpP0a9O NRHRlqZBPyXVJHiR6KvLisszkXBIgwD1SgJ/qCCewNAnk9KsyUWMtds7nJ6/tKLuMQ8U XIgg==; 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-162568-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162568-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d13-20020a63d64d000000b005cdc5c9d6a2si20528204pgj.576.2024.04.29.08.52.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 08:52:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162568-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; 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-162568-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162568-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 7D284B2CA4F for ; Mon, 29 Apr 2024 15:24:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2559A82D62; Mon, 29 Apr 2024 15:23:46 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 17F248172A; Mon, 29 Apr 2024 15:23:43 +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=1714404225; cv=none; b=KhGHv+wWhxjjJTBL6bq18GOwsOFoLyOWBc5R0t3Hyr30YtR3+lnWDP1ZFu4aH0HDs+qkPdHBbWekiHQEZlhWRD98WbL8cX9qUYv0+GKTHC/y4QdwzcEWuyYcUomy1qa0P4ZCLUmr72lSUyjT1KuKftXc5O36DdBkzQkyq3dYYkE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714404225; c=relaxed/simple; bh=NZYQS9DoJX1Ne9ARwerYzJ7WRfVLN4BYuXhHYJnCE2k=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=XBj1Loyt5FvCc6aBvsz0izbjB4mNSdytbgVqbLXUPXEku+B3YbSiu0hmObjzy2zDB73lIVCh7qx402IEvmf4rR6U07UIs/LK6GTQqxUnJTB2Q9oV64RJCm8bOXKnHe8AwilPWr4JjTJW7jVZ7fzyz0w2dteUfhpv8BJONHAfH4o= 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 2A97A339; Mon, 29 Apr 2024 08:24:10 -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 512CA3F793; Mon, 29 Apr 2024 08:23:40 -0700 (PDT) From: James Clark To: linux-perf-users@vger.kernel.org, gankulkarni@os.amperecomputing.com, scclevenger@os.amperecomputing.com, coresight@lists.linaro.org, suzuki.poulose@arm.com, mike.leach@linaro.org 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 , Leo Yan , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH 01/17] perf cs-etm: Print error for new PERF_RECORD_AUX_OUTPUT_HW_ID versions Date: Mon, 29 Apr 2024 16:21:46 +0100 Message-Id: <20240429152207.479221-2-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240429152207.479221-1-james.clark@arm.com> References: <20240429152207.479221-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