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
7496c279
Commit
7496c279
authored
Nov 12, 2014
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More updates to facilitate runtime core shutdown
parent
37d68c1e
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
194 additions
and
666 deletions
+194
-666
darshan-runtime/darshan-core.h
darshan-runtime/darshan-core.h
+2
-3
darshan-runtime/darshan.h
darshan-runtime/darshan.h
+18
-1
darshan-runtime/lib/darshan-core.c
darshan-runtime/lib/darshan-core.c
+173
-172
darshan-runtime/lib/darshan-posix.c
darshan-runtime/lib/darshan-posix.c
+1
-0
darshan-runtime/utlist.h
darshan-runtime/utlist.h
+0
-490
No files found.
darshan-runtime/darshan-core.h
View file @
7496c279
...
...
@@ -22,22 +22,21 @@
#define DARSHAN_MOD_NAME_LEN 31
/* flags to indicate properties of file records */
#define CP_FLAG_CONDENSED 1<<0
#define CP_FLAG_NOTIMING 1<<1
struct
darshan_core_module
{
darshan_module_id
id
;
char
name
[
DARSHAN_MOD_NAME_LEN
+
1
];
struct
darshan_module_funcs
mod_funcs
;
struct
darshan_core_module
*
next
;
};
/* in memory structure to keep up with job level data */
struct
darshan_core_job_runtime
{
struct
darshan_job
log_job
;
struct
darshan_core_module
*
mod_array
[
DARSHAN_MAX_MODS
];
char
exe
[
CP_EXE_LEN
+
1
];
struct
darshan_core_module
*
mod_list_head
;
char
comp_buf
[
CP_COMP_BUF_SIZE
];
int
flags
;
double
wtime_offset
;
...
...
darshan-runtime/darshan.h
View file @
7496c279
...
...
@@ -25,9 +25,25 @@
/* Environment variable to override __CP_MEM_ALIGNMENT */
#define CP_MEM_ALIGNMENT_OVERRIDE "DARSHAN_MEMALIGN"
/* TODO
these go wher
e ? */
/* TODO
where do each of the following macros make most sens
e ? */
#define DARSHAN_MPI_CALL(func) func
/* max length of module name string (not counting \0) */
#define DARSHAN_MOD_NAME_LEN 31
/* 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 (first module shuts down first)
*/
#define DARSHAN_MAX_MODS 16
typedef
enum
{
DARSHAN_POSIX_MOD
,
DARSHAN_MPIIO_MOD
,
DARSHAN_HDF5_MOD
,
DARSHAN_PNETCDF_MOD
,
}
darshan_module_id
;
typedef
uint64_t
darshan_file_id
;
struct
darshan_module_funcs
...
...
@@ -41,6 +57,7 @@ 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 @
7496c279
This diff is collapsed.
Click to expand it.
darshan-runtime/lib/darshan-posix.c
View file @
7496c279
...
...
@@ -362,6 +362,7 @@ 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
);
...
...
darshan-runtime/utlist.h
deleted
100644 → 0
View file @
37d68c1e
This diff is collapsed.
Click to expand it.
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