[Darshan-commits] [Darshan] branch, dev-modular, updated. darshan-2.3.1-105-gfaa3101
Service Account
git at mcs.anl.gov
Mon Jun 29 14:47:14 CDT 2015
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "".
The branch, dev-modular has been updated
via faa3101fd3c8aac2d7f3b51106b3a84f96a6b6f8 (commit)
from 347a0744d26f300de58cd784556ee5ff67da39a9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit faa3101fd3c8aac2d7f3b51106b3a84f96a6b6f8
Author: Shane Snyder <ssnyder at mcs.anl.gov>
Date: Mon Jun 29 14:39:19 2015 -0500
X-macro mod identifiers for consistent ordering
-----------------------------------------------------------------------
Summary of changes:
darshan-log-format.h | 26 +++++++++++++++-----------
1 files changed, 15 insertions(+), 11 deletions(-)
Diff of changes:
diff --git a/darshan-log-format.h b/darshan-log-format.h
index 8886700..1ef2bc8 100644
--- a/darshan-log-format.h
+++ b/darshan-log-format.h
@@ -33,28 +33,32 @@
typedef uint64_t darshan_record_id;
+#define DARSHAN_MAX_MODS 16
+#define DARSHAN_MODULE_IDS \
+ X(DARSHAN_NULL_MOD, "NULL") \
+ X(DARSHAN_POSIX_MOD, "POSIX") \
+ X(DARSHAN_MPIIO_MOD, "MPI-IO") \
+ X(DARSHAN_HDF5_MOD, "HDF5") \
+ X(DARSHAN_PNETCDF_MOD, "PNETCDF")
+
/* unique identifiers to distinguish between available darshan modules */
/* NOTES: - valid ids range from [0...DARSHAN_MAX_MODS-1]
* - order of ids control module shutdown order (and consequently, order in log file)
*/
-#define DARSHAN_MAX_MODS 16
+#define X(a, b) a,
typedef enum
{
- DARSHAN_NULL_MOD = 0,
- DARSHAN_POSIX_MOD,
- DARSHAN_MPIIO_MOD,
- DARSHAN_HDF5_MOD,
- DARSHAN_PNETCDF_MOD,
+ DARSHAN_MODULE_IDS
} darshan_module_id;
+#undef X
+/* module name strings */
+#define X(a, b) b,
static char * const darshan_module_names[] =
{
- "NULL",
- "POSIX",
- "MPI-IO",
- "HDF5",
- "PNETCDF"
+ DARSHAN_MODULE_IDS
};
+#undef X
/* the darshan_log_map structure is used to indicate the location of
* specific module data in a Darshan log. Note that 'off' and 'len' are
hooks/post-receive
--
More information about the Darshan-commits
mailing list