diff options
author | aw148015 <none@none> | 2008-03-18 13:52:42 -0700 |
---|---|---|
committer | aw148015 <none@none> | 2008-03-18 13:52:42 -0700 |
commit | 1b24378ce424258d555f0363de97728c68c862ce (patch) | |
tree | bbe79ddba7d5a5756ae39cbb3069307df2fa962e /usr/src/cmd/filebench/common/threadflow.h | |
parent | 334edc4840d12dfd25a5559468cdd15a375cd111 (diff) | |
download | illumos-joyent-1b24378ce424258d555f0363de97728c68c862ce.tar.gz |
6627653 FileBench needs to support random variables
Diffstat (limited to 'usr/src/cmd/filebench/common/threadflow.h')
-rw-r--r-- | usr/src/cmd/filebench/common/threadflow.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr/src/cmd/filebench/common/threadflow.h b/usr/src/cmd/filebench/common/threadflow.h index 3e5feefe09..119c368a1b 100644 --- a/usr/src/cmd/filebench/common/threadflow.h +++ b/usr/src/cmd/filebench/common/threadflow.h @@ -80,11 +80,12 @@ typedef struct threadflow { struct procflow *tf_process; /* Back pointer to process */ pthread_t tf_tid; /* Thread id */ pthread_mutex_t tf_lock; /* Mutex around threadflow */ - var_integer_t tf_instances; /* Number of instances for this flow */ + avd_t tf_instances; /* Number of instances for this flow */ struct threadflow *tf_next; /* Next on proc list */ struct flowop *tf_ops; /* Flowop list */ caddr_t tf_mem; /* Private Memory */ - var_integer_t tf_memsize; /* Private Memory size */ + avd_t tf_memsize; /* Private Memory size attribute */ + fbint_t tf_constmemsize; /* constant copy of memory size */ int tf_fd[THREADFLOW_MAXFD + 1]; /* Thread local fd's */ filesetentry_t *tf_fse[THREADFLOW_MAXFD + 1]; /* Thread local files */ int tf_fdrotor; /* Rotating fd within set */ @@ -104,8 +105,8 @@ typedef struct threadflow { /* Thread attrs */ #define THREADFLOW_DEFAULTMEM 1024*1024LL; -threadflow_t *threadflow_define(procflow_t *, char *name, threadflow_t *inherit, - var_integer_t instances); +threadflow_t *threadflow_define(procflow_t *, char *name, + threadflow_t *inherit, avd_t instances); threadflow_t *threadflow_find(threadflow_t *, char *); int threadflow_init(procflow_t *); void flowop_start(threadflow_t *threadflow); |