diff options
Diffstat (limited to 'include/sys')
-rw-r--r-- | include/sys/spa.h | 1 | ||||
-rw-r--r-- | include/sys/zfs_context.h | 10 |
2 files changed, 9 insertions, 2 deletions
diff --git a/include/sys/spa.h b/include/sys/spa.h index cb3ce11bc..13c9672aa 100644 --- a/include/sys/spa.h +++ b/include/sys/spa.h @@ -550,6 +550,7 @@ typedef struct spa_stats { spa_stats_history_t read_history; spa_stats_history_t txg_history; spa_stats_history_t tx_assign_histogram; + spa_stats_history_t io_history; } spa_stats_t; typedef enum txg_state { diff --git a/include/sys/zfs_context.h b/include/sys/zfs_context.h index dfd11d9f1..7910e08aa 100644 --- a/include/sys/zfs_context.h +++ b/include/sys/zfs_context.h @@ -344,10 +344,16 @@ extern void cv_broadcast(kcondvar_t *cv); /* * kstat creation, installation and deletion */ -extern kstat_t *kstat_create(char *, int, - char *, char *, uchar_t, ulong_t, uchar_t); +extern kstat_t *kstat_create(const char *, int, + const char *, const char *, uchar_t, ulong_t, uchar_t); extern void kstat_install(kstat_t *); extern void kstat_delete(kstat_t *); +extern void kstat_waitq_enter(kstat_io_t *); +extern void kstat_waitq_exit(kstat_io_t *); +extern void kstat_runq_enter(kstat_io_t *); +extern void kstat_runq_exit(kstat_io_t *); +extern void kstat_waitq_to_runq(kstat_io_t *); +extern void kstat_runq_back_to_waitq(kstat_io_t *); extern void kstat_set_raw_ops(kstat_t *ksp, int (*headers)(char *buf, size_t size), int (*data)(char *buf, size_t size, void *data), |