From: Vincent Fu Date: Tue, 21 Feb 2023 22:53:00 +0000 (+0000) Subject: rand: print out random seeds for debugging X-Git-Tag: fio-3.35~35 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=64b2ba1460687332817655ede202166386af938b;p=fio.git rand: print out random seeds for debugging In order to debug how we handle random seeds let's print out the random seeds we use in the FD_RANDOM debug output. Signed-off-by: Vincent Fu --- diff --git a/init.c b/init.c index a70f749a..1c8df1a7 100644 --- a/init.c +++ b/init.c @@ -1111,6 +1111,10 @@ void td_fill_rand_seeds(struct thread_data *td) init_rand_seed(&td->buf_state, td->rand_seeds[FIO_RAND_BUF_OFF], use64); frand_copy(&td->buf_state_prev, &td->buf_state); + + dprint(FD_RANDOM, "FIO_RAND_NR_OFFS=%d\n", FIO_RAND_NR_OFFS); + for (int i = 0; i < FIO_RAND_NR_OFFS; i++) + dprint(FD_RANDOM, "rand_seeds[%d]=%" PRIu64 "\n", i, td->rand_seeds[i]); } /*