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 EA21D455162; Sat, 12 Sep 2026 16:02:52 +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=1789228974; cv=none; b=tps620iQVF1xLTM2eUfosi6NpbHBq4bRjwT6Own8nDRSRMbcEfhXl2xSDM5JGJQVjsAISdY/1kI/uvajhfCEbXvKNqWK7iJRV43uMsdn058wZXnh5I5ziaYhsm5I4YZ/9s43PlvUnnn++WeA67nHbPssDypCo+1k8Yhc4Brg1ZE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789228974; c=relaxed/simple; bh=dXuGhtoTpU6WsvyBeIjEUuKWDEjHLfm8JelO5kKCGfU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hyAbV51eBofQz8tf7WNvte+BJO63i51OAio33kA1tygJ7xpwJJ3Z95aePm/S1Z2A5fo+whalj2lbCOaouxCQNRjGo6eBb9iw0117VBG3GH6TRx6xJ0tc+zwSyRQi1BF/tgb8GVgmv6ooXJXFgr/OJcLpAKthdiCbyfx/CzfdwvA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qjdQSi4z; 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="qjdQSi4z" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 13F3B1F000FF; Sat, 12 Sep 2026 16:02:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789228972; bh=ZXT2LmfzRF3le85QQfl10JG4T3zO42oWiogTvyrnKoE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=qjdQSi4zdJlZND7ckl4zbgQgi9KIK/cjf13U+z7OpfFJHDxm5MGUx3oxjLnlsTpmn wBBncss6u8MsRfDXmlfo4WBlcLlS2EAL6ScMQ/GclnqA7G6KatBD9ej40/aov+shby 9zShWNQBxlvTauPwaymBmoNtJoDoleriyzHlyaKs= 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.1 0494/1191] perf test: raise limit to 20 percent for perf_stat_--bpf-counters_test Date: Sat, 12 Sep 2026 08:53:42 +0200 Message-ID: <20260912065559.327253311@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260912065548.086904252@linuxfoundation.org> References: <20260912065548.086904252@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.1-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