diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-06-22 23:07:38 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-06-22 23:07:38 +0000 |
commit | 2447c9fb8e62124570f9c9107031d4d847bd0243 (patch) | |
tree | ca9fb9627238d682b378b2118cf9376d8236c47b | |
parent | 9c0ca41c146daed57f804723f1a038df33114f41 (diff) | |
parent | c52b9da7d6e24cf7d35a7c66d62efef1ca13f247 (diff) | |
download | ltp-android14-platform-release.tar.gz |
Snap for 10367700 from c52b9da7d6e24cf7d35a7c66d62efef1ca13f247 to udc-releaseandroid-vts-14.0_r1android-security-14.0.0_r9android-security-14.0.0_r8android-security-14.0.0_r7android-security-14.0.0_r6android-security-14.0.0_r5android-security-14.0.0_r4android-security-14.0.0_r3android-security-14.0.0_r2android-platform-14.0.0_r7android-platform-14.0.0_r6android-platform-14.0.0_r5android-platform-14.0.0_r4android-platform-14.0.0_r3android-platform-14.0.0_r2android-platform-14.0.0_r1android-cts-14.0_r1android-14.0.0_r28android-14.0.0_r2android-14.0.0_r15android-14.0.0_r14android-14.0.0_r13android-14.0.0_r1android14-security-releaseandroid14-s2-releaseandroid14-s1-releaseandroid14-releaseandroid14-platform-release
Change-Id: Id69d485ea045202803898883e20afbf785d56883
-rw-r--r-- | testcases/kernel/syscalls/perf_event_open/perf_event_open02.c | 6 |
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"); |