projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
solaris: #include <pthread.h>
[fio.git]
/
blktrace.c
diff --git
a/blktrace.c
b/blktrace.c
index 65b600f5cfed020c2008e3c77511829fcd4cf02b..4b791d7eb3f1f0b9b23432840ffcb48ef252ed16 100644
(file)
--- a/
blktrace.c
+++ b/
blktrace.c
@@
-500,10
+500,8
@@
int load_blktrace(struct thread_data *td, const char *filename, int need_swap)
handle_trace(td, &t, ios, rw_bs);
} while (1);
handle_trace(td, &t, ios, rw_bs);
} while (1);
- for (i = 0; i < td->files_index; i++) {
- f = td->files[i];
+ for_each_file(td, f, i)
trace_add_open_close_event(td, f->fileno, FIO_LOG_CLOSE_FILE);
trace_add_open_close_event(td, f->fileno, FIO_LOG_CLOSE_FILE);
- }
fifo_free(fifo);
close(fd);
fifo_free(fifo);
close(fd);