projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] Link in known io engines
[fio.git]
/
engines
/
fio-engine-sync.c
diff --git
a/engines/fio-engine-sync.c
b/engines/fio-engine-sync.c
index 43f42ca2ffcace7068656a0ebd4453453af69d7b..5919830edcc6cf0a4fe91e57d20fbabad6e7d4bc 100644
(file)
--- a/
engines/fio-engine-sync.c
+++ b/
engines/fio-engine-sync.c
@@
-7,8
+7,9
@@
#include <unistd.h>
#include <errno.h>
#include <assert.h>
#include <unistd.h>
#include <errno.h>
#include <assert.h>
-#include "fio.h"
-#include "os.h"
+
+#include "../fio.h"
+#include "../os.h"
struct syncio_data {
struct io_u *last_io_u;
struct syncio_data {
struct io_u *last_io_u;
@@
-97,7
+98,7
@@
static int fio_syncio_init(struct thread_data *td)
return 0;
}
return 0;
}
-struct ioengine_ops ioengine = {
+st
atic st
ruct ioengine_ops ioengine = {
.name = "sync",
.version = FIO_IOOPS_VERSION,
.init = fio_syncio_init,
.name = "sync",
.version = FIO_IOOPS_VERSION,
.init = fio_syncio_init,
@@
-108,3
+109,13
@@
struct ioengine_ops ioengine = {
.cleanup = fio_syncio_cleanup,
.flags = FIO_SYNCIO,
};
.cleanup = fio_syncio_cleanup,
.flags = FIO_SYNCIO,
};
+
+static void fio_init fio_syncio_register(void)
+{
+ register_ioengine(&ioengine);
+}
+
+static void fio_exit fio_syncio_unregister(void)
+{
+ unregister_ioengine(&ioengine);
+}