Home | History | Annotate | Download | only in fio

Lines Matching refs:log

188  * log a successful write, so we can unwind the log for verify
479 * Set up a log for storing io patterns.
494 * That's it for writing, setup a log buffer and we're done.
526 * Otherwise assume it's a normal log file and load that.
541 void setup_log(struct io_log **log, unsigned long avg_msec, int log_type)
549 l->log = malloc(l->max_samples * sizeof(struct io_sample));
551 *log = l;
580 void __finish_log(struct io_log *log, const char *name)
588 perror("fopen log");
594 for (i = 0; i < log->nr_samples; i++) {
596 (unsigned long) log->log[i].time,
597 (unsigned long) log->log[i].val,
598 log->log[i].ddir, log->log[i].bs);
603 free(log->log);
604 free(log);
607 static int finish_log_named(struct thread_data *td, struct io_log *log,
613 snprintf(file_name, sizeof(file_name), "%s_%s.log", prefix, postfix);
622 fio_send_iolog(td, log, file_name);
623 free(log->log);
624 free(log);
626 __finish_log(log, file_name);
632 static int finish_log(struct thread_data *td, struct io_log *log,
635 return finish_log_named(td, log, td->o.name, name, trylock);
638 static int write_this_log(struct thread_data *td, struct io_log *log,
643 if (!log)
647 ret = finish_log_named(td, log, log_file, name, try);
649 ret = finish_log(td, log, name, try);