Commit 01812211 authored by Shane Snyder's avatar Shane Snyder

revamped error handling runtime side

parent 5348600b
...@@ -30,25 +30,30 @@ ...@@ -30,25 +30,30 @@
/* max length of exe string within job record (not counting '\0') */ /* max length of exe string within job record (not counting '\0') */
#define CP_EXE_LEN (CP_JOB_RECORD_SIZE - sizeof(struct darshan_job) - 1) #define CP_EXE_LEN (CP_JOB_RECORD_SIZE - sizeof(struct darshan_job) - 1)
/* max length of module name string (not counting '\0') */
/* TODO */
#define DARSHAN_MOD_NAME_LEN 31
typedef uint64_t darshan_record_id; typedef uint64_t darshan_record_id;
/* unique identifiers to distinguish between available darshan modules */ /* unique identifiers to distinguish between available darshan modules */
/* NOTES: - valid ids range from [0...DARSHAN_MAX_MODS-1] /* NOTES: - valid ids range from [0...DARSHAN_MAX_MODS-1]
* - order of ids control module shutdown order (and consequently, order in log file) * - order of ids control module shutdown order (and consequently, order in log file)
*/ */
/* TODO: enforce maximum? */
#define DARSHAN_MAX_MODS 16 #define DARSHAN_MAX_MODS 16
typedef enum typedef enum
{ {
DARSHAN_POSIX_MOD, DARSHAN_POSIX_MOD = 0,
DARSHAN_MPIIO_MOD, DARSHAN_MPIIO_MOD,
DARSHAN_HDF5_MOD, DARSHAN_HDF5_MOD,
DARSHAN_PNETCDF_MOD, DARSHAN_PNETCDF_MOD,
} darshan_module_id; } darshan_module_id;
static char *darshan_module_names[] =
{
"POSIX",
"MPI-IO",
"HDF5",
"PNETCDF"
};
enum darshan_comp_type enum darshan_comp_type
{ {
DARSHAN_GZ_COMP, DARSHAN_GZ_COMP,
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
struct darshan_core_module struct darshan_core_module
{ {
darshan_module_id id; darshan_module_id id;
char name[DARSHAN_MOD_NAME_LEN+1];
struct darshan_module_funcs mod_funcs; struct darshan_module_funcs mod_funcs;
}; };
......
...@@ -44,7 +44,6 @@ struct darshan_module_funcs ...@@ -44,7 +44,6 @@ struct darshan_module_funcs
void darshan_core_register_module( void darshan_core_register_module(
darshan_module_id id, darshan_module_id id,
char *name,
struct darshan_module_funcs *funcs, struct darshan_module_funcs *funcs,
int *runtime_mem_limit); int *runtime_mem_limit);
......
This diff is collapsed.
...@@ -45,8 +45,6 @@ typedef int64_t off64_t; ...@@ -45,8 +45,6 @@ typedef int64_t off64_t;
#define MAP_OR_FAIL(func) #define MAP_OR_FAIL(func)
#define POSIX_MOD_NAME "POSIX"
struct posix_runtime_file struct posix_runtime_file
{ {
struct darshan_posix_file* file_record; struct darshan_posix_file* file_record;
...@@ -245,7 +243,6 @@ static void posix_runtime_initialize() ...@@ -245,7 +243,6 @@ static void posix_runtime_initialize()
/* register the posix module with darshan core */ /* register the posix module with darshan core */
darshan_core_register_module( darshan_core_register_module(
DARSHAN_POSIX_MOD, DARSHAN_POSIX_MOD,
POSIX_MOD_NAME,
&posix_mod_fns, &posix_mod_fns,
&mem_limit); &mem_limit);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment