projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
man page: manpagify things that look like syscalls.
[fio.git]
/
verify.c
diff --git
a/verify.c
b/verify.c
index daa2f04a7419146dbf98b74b68fcf432860a0abe..0d38c0e92e77444d49e3d1906a37c210325c9bb6 100644
(file)
--- a/
verify.c
+++ b/
verify.c
@@
-124,7
+124,7
@@
static void hexdump(void *buffer, int len)
}
/*
}
/*
- * Prepare for sep
e
ration of verify_header and checksum header
+ * Prepare for sep
a
ration of verify_header and checksum header
*/
static inline unsigned int __hdr_size(int verify_type)
{
*/
static inline unsigned int __hdr_size(int verify_type)
{
@@
-273,6
+273,7
@@
static void dump_verify_buffers(struct verify_header *hdr, struct vcont *vc)
dummy.buf = buf;
dummy.rand_seed = hdr->rand_seed;
dummy.buf_filled_len = 0;
dummy.buf = buf;
dummy.rand_seed = hdr->rand_seed;
dummy.buf_filled_len = 0;
+ dummy.buflen = io_u->buflen;
fill_pattern_headers(td, &dummy, hdr->rand_seed, 1);
fill_pattern_headers(td, &dummy, hdr->rand_seed, 1);
@@
-595,8
+596,7
@@
int verify_io_u_async(struct thread_data *td, struct io_u *io_u)
td->cur_depth--;
io_u->flags &= ~IO_U_F_IN_CUR_DEPTH;
}
td->cur_depth--;
io_u->flags &= ~IO_U_F_IN_CUR_DEPTH;
}
- flist_del(&io_u->list);
- flist_add_tail(&io_u->list, &td->verify_list);
+ flist_add_tail(&io_u->verify_list, &td->verify_list);
io_u->flags |= IO_U_F_FREE_DEF;
pthread_mutex_unlock(&td->io_u_lock);
io_u->flags |= IO_U_F_FREE_DEF;
pthread_mutex_unlock(&td->io_u_lock);
@@
-1006,6
+1006,14
@@
int get_next_verify(struct thread_data *td, struct io_u *io_u)
return 1;
}
return 1;
}
+void fio_verify_init(struct thread_data *td)
+{
+ if (td->o.verify == VERIFY_CRC32C_INTEL ||
+ td->o.verify == VERIFY_CRC32C) {
+ crc32c_intel_probe();
+ }
+}
+
static void *verify_async_thread(void *data)
{
struct thread_data *td = data;
static void *verify_async_thread(void *data)
{
struct thread_data *td = data;
@@
-1044,8
+1052,8
@@
static void *verify_async_thread(void *data)
continue;
while (!flist_empty(&list)) {
continue;
while (!flist_empty(&list)) {
- io_u = flist_entry(list.next, struct io_u, list);
- flist_del
_init(&io_u->
list);
+ io_u = flist_entry(list.next, struct io_u,
verify_
list);
+ flist_del
(&io_u->verify_
list);
ret = verify_io_u(td, io_u);
put_io_u(td, io_u);
ret = verify_io_u(td, io_u);
put_io_u(td, io_u);