projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove use of OS provided random functions
[fio.git]
/
fio.c
diff --git
a/fio.c
b/fio.c
index 9a6c31a65d912ba39a44f2cae1ce9ec8378146a6..9adc29aee47bbbfe9198a67458fc17c5d8b456b1 100644
(file)
--- a/
fio.c
+++ b/
fio.c
@@
-26,26
+26,25
@@
#include <time.h>
#include "fio.h"
#include <time.h>
#include "fio.h"
-#include "hash.h"
#include "smalloc.h"
#include "smalloc.h"
-#include "verify.h"
-#include "trim.h"
-#include "diskutil.h"
-#include "profile.h"
-#include "lib/rand.h"
-#include "memalign.h"
-#include "client.h"
-#include "server.h"
int main(int argc, char *argv[], char *envp[])
{
if (initialize_fio(envp))
return 1;
int main(int argc, char *argv[], char *envp[])
{
if (initialize_fio(envp))
return 1;
+#if !defined(CONFIG_GETTIMEOFDAY) && !defined(CONFIG_CLOCK_GETTIME)
+#error "No available clock source!"
+#endif
+
if (parse_options(argc, argv))
return 1;
if (parse_options(argc, argv))
return 1;
+ fio_time_init();
+
if (nr_clients) {
if (nr_clients) {
+ set_genesis_time();
+
if (fio_start_all_clients())
return 1;
return fio_handle_clients(&fio_client_ops);
if (fio_start_all_clients())
return 1;
return fio_handle_clients(&fio_client_ops);