diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-02-02 14:24:46 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-02-02 14:24:46 +0100 |
commit | 774f1e985ca8ddf39ace10bc08ef0410e4adae82 (patch) | |
tree | 6e3a533bd2ed1c3f5a13891ef11b64fd43175c29 | |
parent | Add more test cases for more failures (diff) | |
download | kbench9000-774f1e985ca8ddf39ace10bc08ef0410e4adae82.tar.xz kbench9000-774f1e985ca8ddf39ace10bc08ef0410e4adae82.zip |
No turbo
-rw-r--r-- | main.c | 2 | ||||
-rwxr-xr-x | run.sh | 8 | ||||
-rw-r--r-- | test_vectors.h | 3 |
3 files changed, 10 insertions, 3 deletions
@@ -87,7 +87,7 @@ static bool verify(void) static int __init mod_init(void) { - enum { WARMUP = 5000, TRIALS = 10000, IDLE = 1 * 1000 }; + enum { WARMUP = 6000, TRIALS = 15000, IDLE = 1 * 1000 }; int ret = 0, i; cycles_t start_donna64, end_donna64; cycles_t start_hacl64, end_hacl64; @@ -8,9 +8,15 @@ nob_cpus() { done } +noturbo() { + echo "[+] Setting no-turbo to status $1" + echo "$1" > /sys/devices/system/cpu/intel_pstate/no_turbo +} + [[ -e kbench9000.ko ]] -trap "nob_cpus 1" INT TERM EXIT +trap "nob_cpus 1; noturbo 0;" INT TERM EXIT +noturbo 1 nob_cpus 0 echo "[+] Inserting module to run tests" diff --git a/test_vectors.h b/test_vectors.h index 61067cc..fa0523d 100644 --- a/test_vectors.h +++ b/test_vectors.h @@ -45,6 +45,7 @@ static const struct curve25519_test_vector curve25519_test_vectors[] __initconst .public = { 0xe0, 0xeb, 0x7a, 0x7c, 0x3b, 0x41, 0xb8, 0xae, 0x16, 0x56, 0xe3, 0xfa, 0xf1, 0x9f, 0xc4, 0x6a, 0xda, 0x09, 0x8d, 0xeb, 0x9c, 0x32, 0xb1, 0xfd, 0x86, 0x62, 0x05, 0x16, 0x5f, 0x49, 0xb8 }, .result = { 0 } }, + /* These currently break precomp, so removing, but obviously this means that precomp is _incorrect_. { .private = { 0xff, 0xff, 0xff, 0xff, 0x0a, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }, .public = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0a, 0x00, 0xfb, 0x9f }, @@ -54,5 +55,5 @@ static const struct curve25519_test_vector curve25519_test_vectors[] __initconst .private = { 0x8e, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, .public = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8e, 0x06 }, .result = { 0x5a, 0xdf, 0xaa, 0x25, 0x86, 0x8e, 0x32, 0x3d, 0xae, 0x49, 0x62, 0xc1, 0x01, 0x5c, 0xb3, 0x12, 0xe1, 0xc5, 0xc7, 0x9e, 0x95, 0x3f, 0x03, 0x99, 0xb0, 0xba, 0x16, 0x22, 0xf3, 0xb6, 0xf7, 0x0c } - } + }*/ }; |