Skip to contentSkip to conversation

fio: flush log files on test end

PATCH In review [email protected] 1 participant 1 message Feb 20, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 7/9 fio: flush log files on test end

*Resend with hopefully non mangled patches*
References: <[email protected]>
Content-Disposition: inline; filename=flush_log.diff

From: Peter Oberparleiter <[email protected]>

Ensure proper flushing of all logs at the end of tests.

---
[diffstat]

 backend.c |    1 
 iolog.h   |    1 
 stat.c    |   73 ++++++++++++++++++++++++++++++++++++++++----------------------
 3 files changed, 50 insertions(+), 25 deletions(-)
backend.c +1 -0
@@ -1461,6 +1461,7 @@ static void *thread_main(void *data)
 	fio_unpin_memory(td);
 
 	fio_mutex_down(writeout_mutex);
+	finalize_logs(td);
 	if (td->bw_log) {
 		if (o->bw_log_file) {
 			finish_log_named(td, td->bw_log,
iolog.h +1 -0
@@ -117,6 +117,7 @@ extern void write_iolog_close(struct thr
 /*
  * Logging
  */
+extern void finalize_logs(struct thread_data *td);
 extern void add_lat_sample(struct thread_data *, enum fio_ddir, unsigned long,
 				unsigned int);
 extern void add_clat_sample(struct thread_data *, enum fio_ddir, unsigned long,
stat.c +48 -25

89 lines not on this page · raw message