aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-06-22 23:07:34 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-06-22 23:07:34 +0000
commitb5a714c7284c09ab623b1d9d00f0f077f217db56 (patch)
treeca9fb9627238d682b378b2118cf9376d8236c47b
parent9cfe051c34ac5e907d872ef18bf15605164f619e (diff)
parent7d1dce30fb4168598700e77770997d66607cedce (diff)
downloadltp-b5a714c7284c09ab623b1d9d00f0f077f217db56.tar.gz
Snap for 10367856 from 7d1dce30fb4168598700e77770997d66607cedce to udc-d1-release
Change-Id: Idb15bb3833ef016beb97079cf7e27edd9a3ead08
-rw-r--r--testcases/kernel/syscalls/perf_event_open/perf_event_open02.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/testcases/kernel/syscalls/perf_event_open/perf_event_open02.c b/testcases/kernel/syscalls/perf_event_open/perf_event_open02.c
index defe13c62..20dbb6133 100644
--- a/testcases/kernel/syscalls/perf_event_open/perf_event_open02.c
+++ b/testcases/kernel/syscalls/perf_event_open/perf_event_open02.c
@@ -23,8 +23,8 @@
* that can count instructions. If the task clock counters in the groups
* don't stop when their group gets taken off the PMU, the ratio will
* instead be close to N+4. The program will declare that the test fails
- * if the ratio is greater than N (actually, N + 0.0001 to allow for FP
- * rounding errors).
+ * if the ratio is greater than N (actually, N + 0.0005 to allow for FP
+ * rounding errors and RT throttling overhead).
*/
#define _GNU_SOURCE
@@ -318,7 +318,7 @@ static void verify(void)
ratio = (double)vtsum / vt0;
tst_res(TINFO, "ratio: %lf", ratio);
- if (ratio > nhw + 0.0001) {
+ if (ratio > nhw + 0.0005) {
tst_res(TFAIL, "test failed (ratio was greater than %d)", nhw);
} else {
tst_res(TPASS, "test passed");