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
01812211
Commit
01812211
authored
Feb 11, 2015
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revamped error handling runtime side
parent
5348600b
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
135 additions
and
121 deletions
+135
-121
darshan-log-format.h
darshan-log-format.h
+10
-5
darshan-runtime/darshan-core.h
darshan-runtime/darshan-core.h
+0
-1
darshan-runtime/darshan.h
darshan-runtime/darshan.h
+0
-1
darshan-runtime/lib/darshan-core.c
darshan-runtime/lib/darshan-core.c
+125
-111
darshan-runtime/lib/darshan-posix.c
darshan-runtime/lib/darshan-posix.c
+0
-3
No files found.
darshan-log-format.h
View file @
01812211
...
...
@@ -30,25 +30,30 @@
/* max length of exe string within job record (not counting '\0') */
#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
;
/* 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)
*/
/* TODO: enforce maximum? */
#define DARSHAN_MAX_MODS 16
typedef
enum
{
DARSHAN_POSIX_MOD
,
DARSHAN_POSIX_MOD
=
0
,
DARSHAN_MPIIO_MOD
,
DARSHAN_HDF5_MOD
,
DARSHAN_PNETCDF_MOD
,
}
darshan_module_id
;
static
char
*
darshan_module_names
[]
=
{
"POSIX"
,
"MPI-IO"
,
"HDF5"
,
"PNETCDF"
};
enum
darshan_comp_type
{
DARSHAN_GZ_COMP
,
...
...
darshan-runtime/darshan-core.h
View file @
01812211
...
...
@@ -18,7 +18,6 @@
struct
darshan_core_module
{
darshan_module_id
id
;
char
name
[
DARSHAN_MOD_NAME_LEN
+
1
];
struct
darshan_module_funcs
mod_funcs
;
};
...
...
darshan-runtime/darshan.h
View file @
01812211
...
...
@@ -44,7 +44,6 @@ struct darshan_module_funcs
void
darshan_core_register_module
(
darshan_module_id
id
,
char
*
name
,
struct
darshan_module_funcs
*
funcs
,
int
*
runtime_mem_limit
);
...
...
darshan-runtime/lib/darshan-core.c
View file @
01812211
This diff is collapsed.
Click to expand it.
darshan-runtime/lib/darshan-posix.c
View file @
01812211
...
...
@@ -45,8 +45,6 @@ typedef int64_t off64_t;
#define MAP_OR_FAIL(func)
#define POSIX_MOD_NAME "POSIX"
struct
posix_runtime_file
{
struct
darshan_posix_file
*
file_record
;
...
...
@@ -245,7 +243,6 @@ static void posix_runtime_initialize()
/* register the posix module with darshan core */
darshan_core_register_module
(
DARSHAN_POSIX_MOD
,
POSIX_MOD_NAME
,
&
posix_mod_fns
,
&
mem_limit
);
...
...
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