Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
darshan
darshan
Commits
c9618c8a
Commit
c9618c8a
authored
Dec 04, 2015
by
Shane Snyder
Browse files
runtime now stores mnt & exe data at all ranks
parent
9193b34a
Changes
1
Hide whitespace changes
Inline
Side-by-side
darshan-runtime/lib/darshan-core.c
View file @
c9618c8a
...
...
@@ -91,8 +91,6 @@ static int mnt_data_count = 0;
/* prototypes for internal helper functions */
static
void
darshan_log_record_hints_and_ver
(
struct
darshan_core_runtime
*
core
);
static
void
darshan_get_exe_and_mounts_root
(
struct
darshan_core_runtime
*
core
,
int
argc
,
char
**
argv
);
static
void
darshan_get_exe_and_mounts
(
struct
darshan_core_runtime
*
core
,
int
argc
,
char
**
argv
);
static
void
darshan_block_size_from_path
(
...
...
@@ -470,12 +468,12 @@ static void add_entry(char* buf, int* space_left, struct mntent *entry)
return
;
}
/* darshan_get_exe_and_mounts
_root
()
/* darshan_get_exe_and_mounts()
*
* collects command line and list of mounted file systems into a string that
* will be stored with the job-level metadata
*/
static
void
darshan_get_exe_and_mounts
_root
(
struct
darshan_core_runtime
*
core
,
static
void
darshan_get_exe_and_mounts
(
struct
darshan_core_runtime
*
core
,
int
argc
,
char
**
argv
)
{
FILE
*
tab
;
...
...
@@ -581,7 +579,7 @@ static void darshan_get_exe_and_mounts_root(struct darshan_core_runtime *core,
}
endmntent
(
tab
);
/*
S
ort mount points in order of longest path to shortest path. This is
/*
s
ort mount points in order of longest path to shortest path. This is
* necessary so that if we try to match file paths to mount points later
* we don't match on "/" every time.
*/
...
...
@@ -589,29 +587,6 @@ static void darshan_get_exe_and_mounts_root(struct darshan_core_runtime *core,
return
;
}
/* darshan_get_exe_and_mounts()
*
* collects command line and list of mounted file systems into a string that
* will be stored with the job-level metadata
*/
static
void
darshan_get_exe_and_mounts
(
struct
darshan_core_runtime
*
core
,
int
argc
,
char
**
argv
)
{
if
(
my_rank
==
0
)
{
darshan_get_exe_and_mounts_root
(
core
,
argc
,
argv
);
}
/* broadcast mount count to all nodes */
DARSHAN_MPI_CALL
(
PMPI_Bcast
)(
&
mnt_data_count
,
1
,
MPI_INT
,
0
,
MPI_COMM_WORLD
);
/* broadcast mount data to all nodes */
DARSHAN_MPI_CALL
(
PMPI_Bcast
)(
mnt_data_array
,
mnt_data_count
*
sizeof
(
mnt_data_array
[
0
]),
MPI_BYTE
,
0
,
MPI_COMM_WORLD
);
return
;
}
static
void
darshan_add_record_hashref
(
struct
darshan_core_runtime
*
core
,
char
*
name
,
darshan_record_id
id
,
struct
darshan_core_record_ref
**
ref
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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