From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796298470; b=I7eGFTrvpvm35GWyUHZP67bQcXn/WVCmj8635FUkFS0QPYmxVrB2IQC6m2ag9/Fm0fw/ tsjFBtn+CPT6ZMkc08kj2+xfcF+Llau+WWoiZP4+upNsEre7NmWKWUZA+D/R9Kef1BZ0i NdK/Jij87/m0uvvmEn/HQiFWZ1YqxMldcWiIEuAEO3skKY/gQGBWZTAoFB1uwg2d6CEbx F1/IvexHYZPMkGoqFVhtRJNmUdidHccnprUw8NbiMK+L1X3iFjrbLb7foGIstWRkagQna WOMA/JpEPzV4H+gseGHWSAP0zZrlCpRz6CmKGJQkxNf+9Fj1r1nKYrMtuP2NJh/2uqw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796298470; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=Ur8uw3sENmCj4uIWgFHM8N77fpXF/NRr1tDQcdxL4eo=; b=rcr1aDSQfGaFHlBwOMUeyTKZkgugcaI509y34oJggRpfWFP4++wFo+8I+iCF8yI/wtYa fDTH70/QtK6cyIrknq4SxrLqiy9qRwiI7iiU1qXOKl2Q9xf5qkcMIr4rsAoJQQ0YifUvI Ydvn2nfhoG+8KC6dhWiSCD1M5ycUqCRO7MzioWCJ6tZvWC0FxqjqSbLv5B+HfjAqgXeUn KYteHqSfL1ni4z0Cp1rJhv361VQsXZAcKvqo6Vl0lcYryrOaZlDCRbrja7ZgrX1WKPVpR R/pB5wE8wUWK9+0CwmymHnZr3HBRJxnolLoNr1HwkW866a5KsXF3WEaz9Phb5A6QEBQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Ar1JlkYE; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 06E5F606A32D for ; Thu, 3 Dec 2026 11:47:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Ar1JlkYE Received: by smtp.kernel.org (Postfix) with ESMTPSA id BEC241F00893; Thu, 3 Dec 2026 11:47:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796298469; bh=Ur8uw3sENmCj4uIWgFHM8N77fpXF/NRr1tDQcdxL4eo=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=Ar1JlkYERrqhw2eb5Y0nH0hA2DNHzbI5Fn98Rp0459PaBdH2UnH7duC2SyIzd7dOn 44YXS+9QW9WnpVkxDrWKR1/9Yy4ISib0Y4E49Zjc9dTaMhMY2CeC0FvWpOdD3qGhkB 6tt18YaFvgTyrkt4iktEJ9Bg7UnSNRCxB61kBCKIbJH1Xi1D/FOfu/WZdFUOEEwJy5 mtLNR8IuVoLgpE7ypXtbsa+dXFDJk1sRThQeFbTdvx5esTtZ1mzdcKE9zqJLfjuyVo lruJtS/t/H83CrsXtLPiachzXQe0dxIiAkbNuP0vTcqfjt8nQZKaF5HEcavhmzGx08 Cg7kHbIr4IGCA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] perf tests x86: Fail the topdown test when event iteration fails Reply-To: sashiko-reviews@lists.linux.dev To: lirongqing , linux-perf-users@vger.kernel.org In-Reply-To: <20261203114335.1776-1-lirongqing@baidu.com> References: <20261203114335.1776-1-lirongqing@baidu.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 11:47:49 +0000 X-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > From: Li RongQing >=20 > The event callback returns -ENOMEM if it cannot allocate an evlist, > without updating the test result. The caller only breaks the PMU loop > on an iteration error and can return its initial TEST_OK value despite > having aborted the checks. >=20 > Return TEST_FAIL when iteration fails, retaining the callback result > for successful iterations. Identified and fixed with Comate assistance. >=20 > Fixes: 5b546de9cc17 ("perf topdown: Use attribute to see an event is a to= pdown metic or slots") > Signed-off-by: Li RongQing Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203114335.1776= -1-lirongqing@baidu.com?part=3D1