summaryrefslogtreecommitdiffstats
path: root/src/H5FDvfd_swmr_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5FDvfd_swmr_private.h')
-rw-r--r--src/H5FDvfd_swmr_private.h24
1 files changed, 15 insertions, 9 deletions
diff --git a/src/H5FDvfd_swmr_private.h b/src/H5FDvfd_swmr_private.h
index 56cb93e..6a35ec0 100644
--- a/src/H5FDvfd_swmr_private.h
+++ b/src/H5FDvfd_swmr_private.h
@@ -57,15 +57,6 @@ typedef struct eot_queue_entry {
TAILQ_ENTRY(eot_queue_entry) link;
} eot_queue_entry_t;
-#define TOTAL_TIME_PASSED(X, Y) \
- ((double)((Y.tv_sec - X.tv_sec) * 1000000000 + (Y.tv_nsec - X.tv_nsec))) / 1000000.0
-
-#define TIME_PASSED_MIN(X) (unsigned int)(X / 60000)
-#define TIME_PASSED_SEC(X, Y) (unsigned int)((X - Y * 60000) / 1000)
-#define TIME_PASSED_MSEC(X, Y, Z) (unsigned int)(X - Y * 60000 - Z * 1000)
-// H5_DLLVAR extern hbool_t vfd_swmr_log_on;
-// H5_DLLVAR extern FILE *vfd_swmr_log_file_ptr;
-
H5_DLLVAR unsigned int vfd_swmr_api_entries_g;
/* The head of the EOT queue */
@@ -93,4 +84,19 @@ H5_DLL herr_t H5F_vfd_swmr_insert_entry_eot(struct H5F_t *f);
H5_DLL void H5F_vfd_swmr_update_entry_eot(eot_queue_entry_t *);
H5_DLL herr_t H5F_dump_eot_queue(void);
+
+/***************************************/
+/* Log Macros and Functions */
+/***************************************/
+
+#define TOTAL_TIME_PASSED(X, Y) \
+ ((double)((Y.tv_sec - X.tv_sec) * 1000000000 + (Y.tv_nsec - X.tv_nsec))) / 1000000.0
+#define TIME_PASSED_MIN(X) (unsigned int)(X / 60000)
+#define TIME_PASSED_SEC(X, Y) (unsigned int)((X - Y * 60000) / 1000)
+#define TIME_PASSED_MSEC(X, Y, Z) (unsigned int)(X - Y * 60000 - Z * 1000)
+
+/* Add more tags */
+static const char *H5Fvfd_swmr_log_tags[] = { "FILE_OPEN", "FILE_CLOSE", "EOT_TRIGGER_TIME",
+ "EOT_PROCESSING_TIME", "EOT_META_FILE_INDEX"};
+
#endif /* H5FDvfd_swmr_private_H */