selftests/seccomp: Improve calibration loop
authorKees Cook <keescook@chromium.org>
Sat, 6 Jun 2020 16:37:17 +0000 (09:37 -0700)
committerKees Cook <keescook@chromium.org>
Fri, 10 Jul 2020 23:01:52 +0000 (16:01 -0700)
commit81a0c8bc82be7c15dbf3e54832334552e6b76e2b
treedae27aec7e1896cf74ab46667f120c8b7cdf51ea
parentbc32c9c86581abf7baacf71342df3b0affe367db
selftests/seccomp: Improve calibration loop

The seccomp benchmark calibration loop did not need to take so long.
Instead, use a simple 1 second timeout and multiply up to target. It
does not need to be accurate.

Signed-off-by: Kees Cook <keescook@chromium.org>
tools/testing/selftests/seccomp/seccomp_benchmark.c