projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lfsr: add lfsr_reset()
[fio.git]
/
fio.c
diff --git
a/fio.c
b/fio.c
index 5a99318ed4b4e89fa355b4a80b40082c631dd2ca..24af397a414d27669c6aa7874d3d5170737ea0c2 100644
(file)
--- a/
fio.c
+++ b/
fio.c
@@
-22,19
+22,8
@@
*
*/
#include <unistd.h>
*
*/
#include <unistd.h>
-#include <fcntl.h>
-#include <string.h>
-#include <limits.h>
-#include <signal.h>
-#include <time.h>
#include <locale.h>
#include <locale.h>
-#include <assert.h>
#include <time.h>
#include <time.h>
-#include <sys/stat.h>
-#include <sys/wait.h>
-#include <sys/ipc.h>
-#include <sys/shm.h>
-#include <sys/mman.h>
#include "fio.h"
#include "hash.h"
#include "fio.h"
#include "hash.h"
@@
-42,14
+31,13
@@
#include "verify.h"
#include "trim.h"
#include "diskutil.h"
#include "verify.h"
#include "trim.h"
#include "diskutil.h"
-#include "cgroup.h"
#include "profile.h"
#include "lib/rand.h"
#include "memalign.h"
#include "server.h"
#include "profile.h"
#include "lib/rand.h"
#include "memalign.h"
#include "server.h"
-u
nsigned long
page_mask;
-u
nsigned long
page_size;
+u
intptr_t
page_mask;
+u
intptr_t
page_size;
static int endian_check(void)
{
static int endian_check(void)
{
@@
-91,6
+79,10
@@
int main(int argc, char *argv[], char *envp[])
return 1;
}
return 1;
}
+#if !defined(CONFIG_GETTIMEOFDAY) && !defined(CONFIG_CLOCK_GETTIME)
+#error "No available clock source!"
+#endif
+
arch_init(envp);
sinit();
arch_init(envp);
sinit();
@@
-116,6
+108,8
@@
int main(int argc, char *argv[], char *envp[])
if (parse_options(argc, argv))
return 1;
if (parse_options(argc, argv))
return 1;
+ fio_time_init();
+
if (nr_clients)
return fio_handle_clients();
else
if (nr_clients)
return fio_handle_clients();
else