mdbx-test: refine internals (delays, logging).

Change-Id: Ife19e3bc1b124629891ba03fd9e1bf3b2ad3e301
This commit is contained in:
Leonid Yuriev 2019-07-09 01:39:32 +03:00
parent 53563e75bb
commit 421f4b01e6
2 changed files with 4 additions and 4 deletions

View File

@ -77,9 +77,9 @@ bool testcase_ttl::run() {
const unsigned window_width = edge2window(salt, window_max);
unsigned head_count = edge2count(salt, count_max);
log_info("ttl: step #%zu (serial %" PRIu64
", window %u, count %u) salt %" PRIu64,
nops_completed, serial, window_width, head_count, salt);
log_verbose("ttl: step #%zu (serial %" PRIu64
", window %u, count %u) salt %" PRIu64,
nops_completed, serial, window_width, head_count, salt);
if (window_width) {
while (fifo.size() > window_width) {

View File

@ -353,7 +353,7 @@ void jitter_delay(bool extra) {
cpu_relax();
if (dice > 2) {
unsigned us = entropy_white() &
(extra ? 0xfffff /* 1.05 s */ : 0x3ff /* 1 ms */);
(extra ? 0xffff /* 656 ms */ : 0x3ff /* 1 ms */);
log_trace("== jitter.delay: %0.6f", us / 1000000.0);
osal_udelay(us);
}