projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
client: bool conversion
[fio.git]
/
t
/
stest.c
diff --git
a/t/stest.c
b/t/stest.c
index 0da8f2cf8670aad2cef31de9b0abedd5e86f1f93..0e0d8b0b4785998546f437fb336a2038ec34ce41 100644
(file)
--- a/
t/stest.c
+++ b/
t/stest.c
@@
-4,10
+4,8
@@
#include "../smalloc.h"
#include "../flist.h"
#include "../smalloc.h"
#include "../flist.h"
-
-FILE *f_err;
-struct timeval *fio_tv = NULL;
-unsigned int fio_debug = 0;
+#include "../arch/arch.h"
+#include "debug.h"
#define MAGIC1 0xa9b1c8d2
#define MAGIC2 0xf0a1e9b3
#define MAGIC1 0xa9b1c8d2
#define MAGIC2 0xf0a1e9b3
@@
-33,7
+31,7
@@
static int do_rand_allocs(void)
srand(MAGIC1);
#endif
nr = total = 0;
srand(MAGIC1);
#endif
nr = total = 0;
- while (total < 12
8
*1024*1024UL) {
+ while (total < 12
0
*1024*1024UL) {
size = 8 * sizeof(struct elem) + (int) (999.0 * (rand() / (RAND_MAX + 1.0)));
e = smalloc(size);
if (!e) {
size = 8 * sizeof(struct elem) + (int) (999.0 * (rand() / (RAND_MAX + 1.0)));
e = smalloc(size);
if (!e) {
@@
-72,9
+70,9
@@
static int do_specific_alloc(unsigned long size)
int main(int argc, char *argv[])
{
int main(int argc, char *argv[])
{
- f_err = stderr;
-
+ arch_init(argv);
sinit();
sinit();
+ debug_init();
do_rand_allocs();
do_rand_allocs();
@@
-84,7
+82,3
@@
int main(int argc, char *argv[])
scleanup();
return 0;
}
scleanup();
return 0;
}
-
-void __dprint(int type, const char *str, ...)
-{
-}