Lines Matching refs:ft
51 ffsb_thread_t * ft, ffsb_fs_t * fs, syscall_t sys) in do_stats() argument
56 if (!ft && !fs) in do_stats()
63 if (ft && ft_needs_stats(ft, sys)) in do_stats()
64 ft_add_stat(ft, sys, value); in do_stats()
70 ffsb_thread_t * ft, ffsb_fs_t * fs) in fhopenhelper() argument
74 int need_stats = ft_needs_stats(ft, SYS_OPEN) || in fhopenhelper()
90 do_stats(&start, &end, ft, fs, SYS_OPEN); in fhopenhelper()
96 int fhopenread(char *filename, ffsb_thread_t * ft, ffsb_fs_t * fs) in fhopenread() argument
103 return fhopenhelper(filename, "r", flags, ft, fs); in fhopenread()
106 int fhopenappend(char *filename, ffsb_thread_t * ft, ffsb_fs_t * fs) in fhopenappend() argument
113 return fhopenhelper(filename, "a", flags, ft, fs); in fhopenappend()
116 int fhopenwrite(char *filename, ffsb_thread_t * ft, ffsb_fs_t * fs) in fhopenwrite() argument
123 return fhopenhelper(filename, "w", flags, ft, fs); in fhopenwrite()
126 int fhopencreate(char *filename, ffsb_thread_t * ft, ffsb_fs_t * fs) in fhopencreate() argument
133 return fhopenhelper(filename, "rw", flags, ft, fs); in fhopencreate()
136 void fhread(int fd, void *buf, uint64_t size, ffsb_thread_t * ft, in fhread() argument
141 int need_stats = ft_needs_stats(ft, SYS_READ) || in fhread()
151 do_stats(&start, &end, ft, fs, SYS_READ); in fhread()
162 void fhwrite(int fd, void *buf, uint32_t size, ffsb_thread_t * ft, in fhwrite() argument
167 int need_stats = ft_needs_stats(ft, SYS_WRITE) || in fhwrite()
178 do_stats(&start, &end, ft, fs, SYS_WRITE); in fhwrite()
189 void fhseek(int fd, uint64_t offset, int whence, ffsb_thread_t * ft, in fhseek() argument
194 int need_stats = ft_needs_stats(ft, SYS_LSEEK) || in fhseek()
207 do_stats(&start, &end, ft, fs, SYS_LSEEK); in fhseek()
224 void fhclose(int fd, ffsb_thread_t * ft, ffsb_fs_t * fs) in fhclose() argument
227 int need_stats = ft_needs_stats(ft, SYS_CLOSE) || in fhclose()
237 do_stats(&start, &end, ft, fs, SYS_CLOSE); in fhclose()
241 void fhstat(char *name, ffsb_thread_t * ft, ffsb_fs_t * fs) in fhstat() argument
246 int need_stats = ft_needs_stats(ft, SYS_STAT) || in fhstat()
259 do_stats(&start, &end, ft, fs, SYS_STAT); in fhstat()
264 struct ffsb_thread *ft, struct ffsb_fs *fs) in writefile_helper() argument
273 fhwrite(fd, buf, blocksize, ft, fs); in writefile_helper()
277 fhwrite(fd, buf, last, ft, fs); in writefile_helper()