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 448EC328B78; Sat, 28 Feb 2026 17:32:52 +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=1772299972; cv=none; b=M9gCU+rQOE9bbmBlAhmKs4iN0qblE6kXGM6wlcT1E3Qh660ASQbjGf/vmUVa4HQ9dGXEmuwzFfiEO3tjirIcs7d1zC0a0JgrGkFCVBnaPd7XID/KDeFLSzav27S7CIaIcVdHYx/W5Y8nEFyqy8uBJU9hx/nTQaRUIDAE98K1KPM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772299972; c=relaxed/simple; bh=mkR6AfW5Utma/fNsPijcJRYNsIfaMc2bi3R9oseisdI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qDZTg9oTbV4vza1mdw6MgKhZ5F0YD/tWOnvLHkeiHCkiwgRFjq1Zkf9nBSo/WAgaFOQKWMKU/vOI5Am/B7uTsz+hefOMRTNHMc1aP0AZbntvzXEW5Bth7aTEe4h/bstRY8ZYr02ixOPQjybZtbvbwe7huXx5qkokB8lgx1RY9qA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=m1ZtdQcx; 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="m1ZtdQcx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA69FC19423; Sat, 28 Feb 2026 17:32:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772299971; bh=mkR6AfW5Utma/fNsPijcJRYNsIfaMc2bi3R9oseisdI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m1ZtdQcxYR61pv5DZpOvn4ZbrRFJzytREYjtHXn6hJd1PvYhbJAwqLLzjA250yO3W Bsbsq+GkKHnbNmRMM8IUouZbdzLRifGHcswp9fe6zdk0bZQzBbp/1dV9kNZZHS8GxC EJ8VQXL3GsnNwHPkLZqgS8/iCDcv/fBy4fOgzfcfmYW/NgMpXaMy1DYpoNC2j+1Pwk dsOy26Ak1cw/i4gzkSYvphKDicFYSJShqXSsNczIYhwDOUYSRkBfpt2Ypgpbuhzhu+ 1WTghdtdoJbOYPYjp1B+iINhV/CmcRalp+0qCW2FgdIiweDyr2qkOrBhnevl7oUfZX duXyOmY6uJ76g== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Thomas Richter , Ian Rogers , Alexander Gordeev , Heiko Carstens , Jan Polensky , Namhyung Kim , Sumanth Korikkar , Vasily Gorbik , Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH 6.19 004/844] perf test: Fix test case perf evlist tests for s390x Date: Sat, 28 Feb 2026 12:18:37 -0500 Message-ID: <20260228173244.1509663-5-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 b04d2b9199129f4f0c992a518c0fb78c2efc1064 ] Perf test case 78: perf evlist tests fails on s390. The failure is causes by grouping events cycles and instructions because sampling does only support event cycles. Change the group to software events to fix this. Output before: # ./perf test 78 78: perf evlist tests : FAILED! # Output after: # ./perf test 78 78: perf evlist tests : Ok # Fixes: db452961de939225 ("perf tests evlist: Add basic evlist test") Signed-off-by: Thomas Richter Tested-by: Ian Rogers Cc: Alexander Gordeev Cc: Heiko Carstens Cc: Jan Polensky Cc: Namhyung Kim Cc: Sumanth Korikkar Cc: Vasily Gorbik Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Sasha Levin --- tools/perf/tests/shell/evlist.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/perf/tests/shell/evlist.sh b/tools/perf/tests/shell/evlist.sh index 140f099e75c1e..5632be3917109 100755 --- a/tools/perf/tests/shell/evlist.sh +++ b/tools/perf/tests/shell/evlist.sh @@ -38,13 +38,14 @@ test_evlist_simple() { test_evlist_group() { echo "Group evlist test" - if ! perf record -e "{cycles,instructions}" -o "${perfdata}" true 2> /dev/null + if ! perf record -e "{cpu-clock,task-clock}" -o "${perfdata}" \ + -- perf test -w noploop 2> /dev/null then echo "Group evlist [Skipped event group recording failed]" return fi - if ! perf evlist -i "${perfdata}" -g | grep -q "{.*cycles.*,.*instructions.*}" + if ! perf evlist -i "${perfdata}" -g | grep -q "{.*cpu-clock.*,.*task-clock.*}" then echo "Group evlist [Failed to list event group]" err=1 -- 2.51.0