Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
darshan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
72
Issues
72
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
darshan
darshan
Commits
67b02ca5
Commit
67b02ca5
authored
Sep 22, 2015
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x-macro the logutil defs
parent
991aaa2f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
28 deletions
+13
-28
darshan-log-format.h
darshan-log-format.h
+8
-9
darshan-util/darshan-logutils.c
darshan-util/darshan-logutils.c
+4
-18
darshan-util/darshan-logutils.h
darshan-util/darshan-logutils.h
+1
-1
No files found.
darshan-log-format.h
View file @
67b02ca5
...
...
@@ -33,23 +33,22 @@
#define DARSHAN_MAX_MODS 16
/* TODO: do we want the logutil defs here ? */
/* X-macro for keeping module ordering consistent */
/* NOTE: first val used to define module enum values,
* second val used to define module name strings, and
* third val is used to provide the name of a
* corresponding logutils structure for parsing module
* data out of the log file (only used in darshan-util
,
*
just pass NULL (no quotes) if no log parsing
*
functions are required).
* data out of the log file (only used in darshan-util
*
component -- NULL can be passed if there are no
*
logutil definitions)
*/
#define DARSHAN_MODULE_IDS \
X(DARSHAN_NULL_MOD, "NULL", NULL) \
X(DARSHAN_POSIX_MOD, "POSIX", posix_logutils) \
X(DARSHAN_MPIIO_MOD, "MPI-IO", mpiio_logutils) \
X(DARSHAN_HDF5_MOD, "HDF5", hdf5_logutils) \
X(DARSHAN_PNETCDF_MOD, "PNETCDF", pnetcdf_logutils) \
X(DARSHAN_BGQ_MOD, "BG/Q", bgq_logutils)
X(DARSHAN_POSIX_MOD, "POSIX",
&
posix_logutils) \
X(DARSHAN_MPIIO_MOD, "MPI-IO",
&
mpiio_logutils) \
X(DARSHAN_HDF5_MOD, "HDF5",
&
hdf5_logutils) \
X(DARSHAN_PNETCDF_MOD, "PNETCDF",
&
pnetcdf_logutils) \
X(DARSHAN_BGQ_MOD, "BG/Q",
&
bgq_logutils)
/* unique identifiers to distinguish between available darshan modules */
/* NOTES: - valid ids range from [0...DARSHAN_MAX_MODS-1]
...
...
darshan-util/darshan-logutils.c
View file @
67b02ca5
...
...
@@ -88,27 +88,13 @@ static int darshan_log_dzunload(darshan_fd fd, struct darshan_log_map *map_p);
/* TODO: check comments on functions to make sure they are right /cleanup */
/*
TODO: can we make this s.t. we don't care about ordering (i.e., X macro it )
*/
/* see gzip interface for ideas */
/*
each module's implementation of the darshan logutil functions
*/
#define X(a, b, c) c,
struct
darshan_mod_logutil_funcs
*
mod_logutils
[
DARSHAN_MAX_MODS
]
=
{
NULL
,
/* NULL */
&
posix_logutils
,
/* POSIX */
&
mpiio_logutils
,
/* MPI-IO */
&
hdf5_logutils
,
/* HDF5 */
&
pnetcdf_logutils
,
/* PNETCDF */
&
bgq_logutils
,
/* BG/Q */
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
DARSHAN_MODULE_IDS
};
#undef X
/* darshan_log_open()
*
...
...
darshan-util/darshan-logutils.h
View file @
67b02ca5
...
...
@@ -68,7 +68,7 @@ struct darshan_mod_logutil_funcs
);
};
extern
struct
darshan_mod_logutil_funcs
*
mod_logutils
[
DARSHAN_MAX_MODS
];
extern
struct
darshan_mod_logutil_funcs
*
mod_logutils
[];
#include "darshan-posix-logutils.h"
#include "darshan-mpiio-logutils.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment