Recent changes (master)
The following changes since commit 544992f770de2b98481b980e463e0492c2f2763e:
smalloc: add zeroing scalloc() variant (2014-11-06 15:19:31 -0700)
are available in the git repository at:
git://git.kernel.dk/fio.git master
for you to fetch changes up to 988d97bac90c9ff3ee40a8ccd588fdf78f19320d:
client/server: percentile_precision wasn't net converted (2014-11-07 18:47:41 -0700)
----------------------------------------------------------------
Jens Axboe (3):
Add time_since_genesis()
iolog: fix intermittent crash on exit with verify enabled client/server: percentile_precision wasn't net converted
client.c | 1 + fio_time.h | 1 + iolog.c | 2 +- server.c | 1 + time.c | 5 +++++ 5 files changed, 9 insertions(+), 1 deletion(-)
---
Diff of recent changes:
client.c +1 -0
@@ -805,6 +805,7 @@ static void convert_ts(struct thread_stat *dst, struct thread_stat *src) dst->minf =le64_to_cpu (src->minf); dst->majf =le64_to_cpu (src->majf); dst->clat_percentiles =le64_to_cpu (src->clat_percentiles); + dst->percentile_precision =le64_to_cpu (src->percentile_precision);for (i =0 ; i <FIO_IO_U_LIST_MAX_LEN ; i++) {fio_fp64_t *fps = &src->percentile_list[i];
fio_time.h +1 -0
@@ -7,6 +7,7 @@ extern uint64_t utime_since_now(const struct timeval *);extern uint64_t mtime_since (const struct timeval *,const struct timeval *);extern uint64_t mtime_since_now (const struct timeval *);extern uint64_t time_since_now (const struct timeval *); +extern uint64_t time_since_genesis (void );extern uint64_t mtime_since_genesis (void );extern uint64_t utime_since_genesis (void );extern void usec_spin (unsigned int );
iolog.c +1 -1
@@ -173,7 +173,7 @@ void prune_io_piece_log(struct thread_data *td) }while (!flist_empty (&td->io_hist_list)) { - ipo = flist_entry(&td->io_hist_list, struct io_piece, list); + ipo = flist_first_entry(&td->io_hist_list, struct io_piece, list);flist_del (&ipo->list);remove_trim_entry (td, ipo); td->io_hist_len--;
server.c +1 -0
@@ -1040,6 +1040,7 @@ void fio_server_send_ts(struct thread_stat *ts, struct group_run_stats *rs) p.ts.minf =cpu_to_le64 (ts->minf); p.ts.majf =cpu_to_le64 (ts->majf); p.ts.clat_percentiles =cpu_to_le64 (ts->clat_percentiles); + p.ts.percentile_precision =cpu_to_le64 (ts->percentile_precision);for (i =0 ; i <FIO_IO_U_LIST_MAX_LEN ; i++) {fio_fp64_t *src = &ts->percentile_list[i];
time.c +5 -0
@@ -53,6 +53,11 @@ void usec_sleep(struct thread_data *td, unsigned long usec) }while (!td->terminate); } +uint64_t time_since_genesis (void ) +{ +return time_since_now (&genesis); +} +uint64_t mtime_since_genesis (void ) {return mtime_since_now (&genesis);