#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
srand(MAGIC1);
#endif
nr = total = 0;
- while (total < 128*1024*1024UL) {
+ while (total < 120*1024*1024UL) {
size = 8 * sizeof(struct elem) + (int) (999.0 * (rand() / (RAND_MAX + 1.0)));
e = smalloc(size);
if (!e) {
int main(int argc, char *argv[])
{
- f_err = stderr;
-
+ arch_init(argv);
sinit();
+ debug_init();
do_rand_allocs();
scleanup();
return 0;
}
-
-void __dprint(int type, const char *str, ...)
-{
-}