diff options
Diffstat (limited to 'testcases/kernel/syscalls')
-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"); |