From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF81E450902; Sat, 28 Feb 2026 17:33:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772300005; cv=none; b=ascej5Etsqs9kBPrjMmw9AASeSQPzo9E4/Z67eY53YdutFbuWfuuwheqOR/V4JB+IQaXuf53ENAt120VWndtwGzDKGmyC+RP9IslndcKE/aNZil8dw7TG1rq9nbVlx/Ipp3WuRouF4FClXscMnL6W/INrSXIBqqlAjn7ZOw08yY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772300005; c=relaxed/simple; bh=z/kL/bJWc08kyBG3h3vrZ//IIQRb6+jQdKuzcY2PTKI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=q6RkQtBNwa2gWMrxDD18w+zMCdPCUgz2WHzQiaBlmzPU/zJJEJX11bWOoAFqs2UtHvm3wLA846wDG4HAZT8P3aGXYx1n/O0LK1nVIneNdKDu3Rwu9QG8KurhFvr8lipF/724EZfxgJ6cg2fwcFodiqt+ic5CguW50k1+hiE+/Wg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ff8zy+Yr; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ff8zy+Yr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4512AC19425; Sat, 28 Feb 2026 17:33:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772300005; bh=z/kL/bJWc08kyBG3h3vrZ//IIQRb6+jQdKuzcY2PTKI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ff8zy+YrMR+vuJkecCOCZhao97aPV9/qCtj8b71N7fWMrLSNEnbpHMDqfRLufUkFY hdejQ8NDO33wE5esv/iN7D+HARDlqjNtxNtKknMCd6j1ouXCT1cZCfFtKq6/aIjMIi BR9BWTvDm/AZYDLPoATNMhsjdvICoInViz9mlpGkAMql2NjmjLPW23mElwVV1PiQwE 756K3c4hSyC2hMbv4TyGXSn/68fo6MIuIY/RSmzyHdoz/hueBtPH3qfWrKu8VF5VbR WFBs0yrFr136m6F6HNt512kY25g9V8qJp6z0iR17prdW+juEhfpsZOzu6sA6kSjjQ0 Lhurniv6dbK2w== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Thomas Richter , Ian Rogers , Jan Polensky , Alexander Gordeev , Heiko Carstens , Namhyung Kim , Sumanth Korikkar , Vasily Gorbik , Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH 6.19 022/844] perf test: Fix test perf evlist for z/VM s390x Date: Sat, 28 Feb 2026 12:18:55 -0500 Message-ID: <20260228173244.1509663-23-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260228173244.1509663-1-sashal@kernel.org> References: <20260228173244.1509663-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Thomas Richter [ Upstream commit 008603bda19b29687edce533e4c09acff68c1077 ] Perf test case 'perf evlist tests' fails on z/VM machines on s390. The failure is causes by event cycles. This event is not available on virtualized machines like z/VM on s390. Change to software event cpu-clock to fix this. Output before: # ./perf test 78 79: perf evlist tests : FAILED! # Output after: # ./perf test 78 79: perf evlist tests : Ok # Fixes: b04d2b9199129f4f ("perf test: Fix test case perf evlist tests for s390x") Reviewed-by: Ian Rogers Reviewed-by: Jan Polensky Signed-off-by: Thomas Richter Tested-by: Jan Polensky Cc: Alexander Gordeev Cc: Heiko Carstens Cc: Namhyung Kim Cc: Sumanth Korikkar Cc: Thomas Richter Cc: Vasily Gorbik Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Sasha Levin --- tools/perf/tests/shell/evlist.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/tests/shell/evlist.sh b/tools/perf/tests/shell/evlist.sh index 5632be3917109..8a22f4171c07c 100755 --- a/tools/perf/tests/shell/evlist.sh +++ b/tools/perf/tests/shell/evlist.sh @@ -21,13 +21,13 @@ trap trap_cleanup EXIT TERM INT test_evlist_simple() { echo "Simple evlist test" - if ! perf record -e cycles -o "${perfdata}" true 2> /dev/null + if ! perf record -e cpu-clock -o "${perfdata}" true 2> /dev/null then echo "Simple evlist [Failed record]" err=1 return fi - if ! perf evlist -i "${perfdata}" | grep -q "cycles" + if ! perf evlist -i "${perfdata}" | grep -q "cpu-clock" then echo "Simple evlist [Failed to list event]" err=1 -- 2.51.0