From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 B15AF34027B; Sat, 12 Sep 2026 14:15:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789222521; cv=none; b=jyZkuHAwYUu/ym53llZhq2D7Ql1B0PzW6i7qDa02rj/e1M8u9dvQWhfq/1x6eUzDj1O5tGXvs0gKvmxxC9gKNoxEqhbRzq46vUjvLdmNBNUHuejSET4rs+B1wooycXyjZq4cjuPipvuooy1Hbb/6qxpuDVbxyjx4liklR3sA0Ic= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789222521; c=relaxed/simple; bh=itWZyf3AucO1TxKrSSpoW0oxXZpB70hBNna4PTWf9pw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rW0ObARFSLnvJlNothREfLxShQ8s8OSWDD9LeYvS7EbsHdnbkr7ZEVUD6l8cNjM16udQk+Ac1QCPOMvcgR665WBu13E+5ekF6ifrByZBT22sX4jybw35ZggtZYInIuV4gtTsfvwtOlqDKRRlGKVVkP8W6cNY+NZWmfctrt9wV/o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XBn8r1Ey; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="XBn8r1Ey" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 139321F000FF; Sat, 12 Sep 2026 14:15:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789222519; bh=fCO7WJIECQuIDpBQsBMUM5eFuxxyUpUDcyp1v9hxZok=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=XBn8r1EyUOsHsK1CkOS77Sao4KxITUqrOjzbohzcGedRqmPbq+DgTnUvxzSzvAx1S PVL8MxCLpGUVsa4zfVC6bPEbINAf5y/qdZFvHbJ5cX+6egbUiB0ZTPQyZcMUfKR74K DxLyGIz34U0XvUxSF3NoHpd6ITqH/WvX/JenKpgM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Thomas Richter , Namhyung Kim , gor@linux.ibm.com, hca@linux.ibm.com, sumanthk@linux.ibm.com, svens@linux.ibm.com, Sasha Levin Subject: [PATCH 6.6 0603/1424] perf test: raise limit to 20 percent for perf_stat_--bpf-counters_test Date: Sat, 12 Sep 2026 08:50:35 +0200 Message-ID: <20260912065620.798805671@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260912065607.279695368@linuxfoundation.org> References: <20260912065607.279695368@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thomas Richter [ Upstream commit 999eea92e8d7a1ffa83f7dc89c83d8ed1e746fa9 ] This test case often fails on s390 (about 2 out of 10) because the 10% percent limit on the difference between --bpf-counters event counting and s390 hardware counting is more than 10% in all failure cases. Raise the limit to 20% on s390 and the test case succeeds. Signed-off-by: Thomas Richter Acked-by: Namhyung Kim Cc: gor@linux.ibm.com Cc: hca@linux.ibm.com Cc: sumanthk@linux.ibm.com Cc: svens@linux.ibm.com Link: https://lore.kernel.org/r/20240108084009.3959211-1-tmricht@linux.ibm.com Signed-off-by: Namhyung Kim Stable-dep-of: b02027776ac5 ("perf tests: Fix flakiness in BPF counters test on hybrid systems") Signed-off-by: Sasha Levin --- tools/perf/tests/shell/stat_bpf_counters.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/perf/tests/shell/stat_bpf_counters.sh b/tools/perf/tests/shell/stat_bpf_counters.sh index a87bb2814b4c6..2d92098747746 100755 --- a/tools/perf/tests/shell/stat_bpf_counters.sh +++ b/tools/perf/tests/shell/stat_bpf_counters.sh @@ -4,19 +4,19 @@ set -e -# check whether $2 is within +/- 10% of $1 +# check whether $2 is within +/- 20% of $1 compare_number() { first_num=$1 second_num=$2 - # upper bound is first_num * 110% - upper=$(expr $first_num + $first_num / 10 ) - # lower bound is first_num * 90% - lower=$(expr $first_num - $first_num / 10 ) + # upper bound is first_num * 120% + upper=$(expr $first_num + $first_num / 5 ) + # lower bound is first_num * 80% + lower=$(expr $first_num - $first_num / 5 ) if [ $second_num -gt $upper ] || [ $second_num -lt $lower ]; then - echo "The difference between $first_num and $second_num are greater than 10%." + echo "The difference between $first_num and $second_num are greater than 20%." exit 1 fi } -- 2.53.0