[dbench @ tridge@samba.org-20070717084152-smtpps3ihfko3s16]
[tridge/dbench.git] / dbench.h
index 4e6d7e8524c62d3ab60f698e7ff2b46ec496b2ff..71578e5ee4a1ef3b71f05673f814e6649f1be94a 100644 (file)
--- a/dbench.h
+++ b/dbench.h
@@ -19,6 +19,7 @@
 #include "config.h"
 #include <stdio.h>
 #include <stdlib.h>
+#include <stddef.h>
 #include <signal.h>
 #include <unistd.h>
 #include <string.h>
 #define False 0
 #define uint32 unsigned
 
+struct op {
+       unsigned count;
+       double total_time;
+       double max_latency;
+};
+
 struct child_struct {
        int id;
        int failed;
@@ -111,6 +118,25 @@ struct child_struct {
                double last_bytes;
                struct timeval last_time;
        } rate;
+       struct opnames {
+               struct op op_NTCreateX;
+               struct op op_Close;
+               struct op op_Rename;
+               struct op op_Unlink;
+               struct op op_Deltree;
+               struct op op_Rmdir;
+               struct op op_Mkdir;
+               struct op op_Qpathinfo;
+               struct op op_Qfileinfo;
+               struct op op_Qfsinfo;
+               struct op op_Sfileinfo;
+               struct op op_Find;
+               struct op op_WriteX;
+               struct op op_ReadX;
+               struct op op_LockX;
+               struct op op_UnlockX;
+               struct op op_Flush;
+       } op;
        void *private;
 };