Home | History | Annotate | Download | only in ffsb-6.0-rc2

Lines Matching refs:ft

35 		     ffsb_thread_t * ft, ffsb_fs_t * fs, syscall_t sys)
40 if (!ft && !fs)
47 if (ft && ft_needs_stats(ft, sys))
48 ft_add_stat(ft, sys, value);
64 char *buf, ffsb_thread_t * ft, ffsb_fs_t * fs)
73 fhread(fd, buf, blocksize, ft, fs);
75 fhread(fd, buf, last, ft, fs);
89 void ffsb_readfile(ffsb_thread_t * ft, ffsb_fs_t * fs, unsigned opnum)
97 char *buf = ft_getbuf(ft);
98 int read_random = ft_get_read_random(ft);
99 uint64_t read_size = ft_get_read_size(ft);
100 uint32_t read_blocksize = ft_get_read_blocksize(ft);
101 uint32_t read_skipsize = ft_get_read_skipsize(ft);
102 int skip_reads = ft_get_read_skip(ft);
103 struct randdata *rd = ft_get_randdata(ft);
108 fd = fhopenread(curfile->name, ft, fs);
148 fhread(fd, buf, read_blocksize, ft, fs);
150 ft, fs);
153 fhread(fd, buf, (uint64_t) last, ft, fs);
161 fhseek(fd, offset, SEEK_SET, ft, fs);
165 ft, fs);
177 fhseek(fd, offset, SEEK_SET, ft, fs);
178 fhread(fd, buf, read_blocksize, ft, fs);
183 fhclose(fd, ft, fs);
185 ft_incr_op(ft, opnum, iterations, read_size);
186 ft_add_readbytes(ft, read_size);
192 void ffsb_readall(ffsb_thread_t * ft, ffsb_fs_t * fs, unsigned opnum)
199 char *buf = ft_getbuf(ft);
200 uint32_t read_blocksize = ft_get_read_blocksize(ft);
201 struct randdata *rd = ft_get_randdata(ft);
206 fd = fhopenread(curfile->name, ft, fs);
209 iterations = readfile_helper(fd, filesize, read_blocksize, buf, ft, fs);
212 fhclose(fd, ft, fs);
214 ft_incr_op(ft, opnum, iterations, filesize);
215 ft_add_readbytes(ft, filesize);
220 static unsigned ffsb_writefile_core(ffsb_thread_t * ft, ffsb_fs_t * fs,
230 char *buf = ft_getbuf(ft);
231 int write_random = ft_get_write_random(ft);
232 uint32_t write_size = ft_get_write_size(ft);
233 uint32_t write_blocksize = ft_get_write_blocksize(ft);
234 struct randdata *rd = ft_get_randdata(ft);
238 fd = fhopenwrite(curfile->name, ft, fs);
251 fhseek(fd, offset, SEEK_SET, ft, fs);
254 buf, ft, fs);
264 fhseek(fd, offset, SEEK_SET, ft, fs);
265 fhwrite(fd, buf, write_blocksize, ft, fs);
277 fhclose(fd, ft, fs);
282 void ffsb_writefile(ffsb_thread_t * ft, ffsb_fs_t * fs, unsigned opnum)
287 iterations = ffsb_writefile_core(ft, fs, opnum, &filesize, 0);
288 ft_incr_op(ft, opnum, iterations, filesize);
289 ft_add_writebytes(ft, filesize);
292 void ffsb_writefile_fsync(ffsb_thread_t * ft, ffsb_fs_t * fs, unsigned opnum)
297 iterations = ffsb_writefile_core(ft, fs, opnum, &filesize, 1);
298 ft_incr_op(ft, opnum, iterations, filesize);
299 ft_add_writebytes(ft, filesize);
304 static unsigned ffsb_writeall_core(ffsb_thread_t * ft, ffsb_fs_t * fs,
313 char *buf = ft_getbuf(ft);
314 uint32_t write_blocksize = ft_get_write_blocksize(ft);
315 struct randdata *rd = ft_get_randdata(ft);
320 fd = fhopenwrite(curfile->name, ft, fs);
324 ft, fs);
333 fhclose(fd, ft, fs);
341 void ffsb_writeall(ffsb_thread_t * ft, ffsb_fs_t * fs, unsigned opnum)
346 iterations = ffsb_writeall_core(ft, fs, opnum, &filesize, 0);
347 ft_incr_op(ft, opnum, iterations, filesize);
348 ft_add_writebytes(ft, filesize);
351 void ffsb_writeall_fsync(ffsb_thread_t * ft, ffsb_fs_t * fs, unsigned opnum)
356 iterations = ffsb_writeall_core(ft, fs, opnum, &filesize, 1);
357 ft_incr_op(ft, opnum, iterations, filesize);
358 ft_add_writebytes(ft, filesize);
361 static unsigned ffsb_appendfile_core(ffsb_thread_t * ft, ffsb_fs_t * fs,
370 char *buf = ft_getbuf(ft);
371 uint32_t write_size = ft_get_write_size(ft);
372 uint32_t write_blocksize = ft_get_write_blocksize(ft);
373 struct randdata *rd = ft_get_randdata(ft);
377 fd = fhopenappend(curfile->name, ft, fs);
384 ft, fs);
392 fhclose(fd, ft, fs);
397 void ffsb_appendfile(ffsb_thread_t * ft, ffsb_fs_t * fs, unsigned opnum)
402 iterations = ffsb_appendfile_core(ft, fs, opnum, &filesize, 0);
403 ft_incr_op(ft, opnum, iterations, filesize);
404 ft_add_writebytes(ft, filesize);
407 void ffsb_appendfile_fsync(ffsb_thread_t * ft, ffsb_fs_t * fs, unsigned opnum)
412 iterations = ffsb_appendfile_core(ft, fs, opnum, &filesize, 1);
413 ft_incr_op(ft, opnum, iterations, filesize);
414 ft_add_writebytes(ft, filesize);
417 static unsigned ffsb_createfile_core(ffsb_thread_t * ft, ffsb_fs_t * fs,
427 char *buf = ft_getbuf(ft);
428 uint32_t write_blocksize = ft_get_write_blocksize(ft);
429 struct randdata *rd = ft_get_randdata(ft);
450 fd = fhopencreate(newfile->name, ft, fs);
451 iterations = writefile_helper(fd, size, write_blocksize, buf, ft, fs);
460 fhclose(fd, ft, fs);
466 void ffsb_createfile(ffsb_thread_t * ft, ffsb_fs_t * fs, unsigned opnum)
471 iterations = ffsb_createfile_core(ft, fs, opnum, &filesize, 0);
472 ft_incr_op(ft, opnum, iterations, filesize);
473 ft_add_writebytes(ft, filesize);
476 void ffsb_createfile_fsync(ffsb_thread_t * ft, ffsb_fs_t * fs, unsigned opnum)
481 iterations = ffsb_createfile_core(ft, fs, opnum, &filesize, 1);
482 ft_incr_op(ft, opnum, iterations, filesize);
483 ft_add_writebytes(ft, filesize);
486 void ffsb_deletefile(ffsb_thread_t * ft, ffsb_fs_t * fs, unsigned opnum)
490 randdata_t *rd = ft_get_randdata(ft);
492 int need_stats = ft_needs_stats(ft, SYS_UNLINK) ||
509 do_stats(&start, &end, ft, fs, SYS_UNLINK);
514 ft_incr_op(ft, opnum, 1, 0);
517 void ffsb_open_close(ffsb_thread_t * ft, ffsb_fs_t * fs, unsigned opnum)
521 randdata_t *rd = ft_get_randdata(ft);
525 fd = fhopenread(curfile->name, ft, fs);
526 fhclose(fd, ft, fs);
528 ft_incr_op(ft, opnum, 1, 0);
531 void ffsb_stat(ffsb_thread_t * ft, ffsb_fs_t * fs, unsigned opnum)
535 randdata_t *rd = ft_get_randdata(ft);
538 fhstat(curfile->name, ft, fs);
541 ft_incr_op(ft, opnum, 1, 0);