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
928fdff4
Commit
928fdff4
authored
Sep 25, 2015
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix for modules creating more than max records
parent
d0c50a3b
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
56 additions
and
2 deletions
+56
-2
darshan-runtime/darshan-core.h
darshan-runtime/darshan-core.h
+1
-1
darshan-runtime/lib/darshan-bgq.c
darshan-runtime/lib/darshan-bgq.c
+13
-1
darshan-runtime/lib/darshan-core.c
darshan-runtime/lib/darshan-core.c
+2
-0
darshan-runtime/lib/darshan-hdf5.c
darshan-runtime/lib/darshan-hdf5.c
+10
-0
darshan-runtime/lib/darshan-mpiio.c
darshan-runtime/lib/darshan-mpiio.c
+10
-0
darshan-runtime/lib/darshan-pnetcdf.c
darshan-runtime/lib/darshan-pnetcdf.c
+10
-0
darshan-runtime/lib/darshan-posix.c
darshan-runtime/lib/darshan-posix.c
+10
-0
No files found.
darshan-runtime/darshan-core.h
View file @
928fdff4
...
...
@@ -26,7 +26,7 @@
/* Environment variable to override __DARSHAN_MEM_ALIGNMENT */
#define DARSHAN_MEM_ALIGNMENT_OVERRIDE "DARSHAN_MEMALIGN"
#define DARSHAN_CORE_MAX_RECORDS
4096
#define DARSHAN_CORE_MAX_RECORDS
2048
/* TODO: revisit this default size if we change memory per module */
#define DARSHAN_CORE_COMP_BUF_SIZE (2 * 1024 * 1024)
...
...
darshan-runtime/lib/darshan-bgq.c
View file @
928fdff4
...
...
@@ -122,7 +122,7 @@ void bgq_runtime_initialize()
if
(
bgq_runtime
||
instrumentation_disabled
)
return
;
/* register the
"NULL"
module with the darshan-core component */
/* register the
BG/Q
module with the darshan-core component */
darshan_core_register_module
(
DARSHAN_BGQ_MOD
,
&
bgq_mod_fns
,
...
...
@@ -161,6 +161,18 @@ void bgq_runtime_initialize()
&
bgq_runtime
->
record
.
f_id
,
&
bgq_runtime
->
record
.
alignment
);
/* if record is set to 0, darshan-core is out of space and will not
* track this record, so we should avoid tracking it, too
*/
if
(
bgq_runtime
->
record
.
f_id
==
0
)
{
instrumentation_disabled
=
1
;
free
(
bgq_runtime
);
bgq_runtime
=
NULL
;
BGQ_UNLOCK
();
return
;
}
capture
(
&
bgq_runtime
->
record
);
BGQ_UNLOCK
();
...
...
darshan-runtime/lib/darshan-core.c
View file @
928fdff4
...
...
@@ -1549,6 +1549,8 @@ void darshan_core_register_record(
darshan_record_id
tmp_rec_id
;
struct
darshan_core_record_ref
*
ref
;
*
rec_id
=
0
;
if
(
!
darshan_core
)
return
;
...
...
darshan-runtime/lib/darshan-hdf5.c
View file @
928fdff4
...
...
@@ -273,6 +273,16 @@ static struct hdf5_file_runtime* hdf5_file_by_name(const char *name)
&
file_id
,
NULL
);
/* if record is set to 0, darshan-core is out of space and will not
* track this record, so we should avoid tracking it, too
*/
if
(
file_id
==
0
)
{
if
(
newname
!=
name
)
free
(
newname
);
return
(
NULL
);
}
/* search the hash table for this file record, and return if found */
HASH_FIND
(
hlink
,
hdf5_runtime
->
file_hash
,
&
file_id
,
sizeof
(
darshan_record_id
),
file
);
if
(
file
)
...
...
darshan-runtime/lib/darshan-mpiio.c
View file @
928fdff4
...
...
@@ -895,6 +895,16 @@ static struct mpiio_file_runtime* mpiio_file_by_name(const char *name)
&
file_id
,
NULL
);
/* if record is set to 0, darshan-core is out of space and will not
* track this record, so we should avoid tracking it, too
*/
if
(
file_id
==
0
)
{
if
(
newname
!=
name
)
free
(
newname
);
return
(
NULL
);
}
/* search the hash table for this file record, and return if found */
HASH_FIND
(
hlink
,
mpiio_runtime
->
file_hash
,
&
file_id
,
sizeof
(
darshan_record_id
),
file
);
if
(
file
)
...
...
darshan-runtime/lib/darshan-pnetcdf.c
View file @
928fdff4
...
...
@@ -285,6 +285,16 @@ static struct pnetcdf_file_runtime* pnetcdf_file_by_name(const char *name)
&
file_id
,
NULL
);
/* if record is set to 0, darshan-core is out of space and will not
* track this record, so we should avoid tracking it, too
*/
if
(
file_id
==
0
)
{
if
(
newname
!=
name
)
free
(
newname
);
return
(
NULL
);
}
/* search the hash table for this file record, and return if found */
HASH_FIND
(
hlink
,
pnetcdf_runtime
->
file_hash
,
&
file_id
,
sizeof
(
darshan_record_id
),
file
);
if
(
file
)
...
...
darshan-runtime/lib/darshan-posix.c
View file @
928fdff4
...
...
@@ -1526,6 +1526,16 @@ static struct posix_file_runtime* posix_file_by_name(const char *name)
&
file_id
,
&
file_alignment
);
/* if record is set to 0, darshan-core is out of space and will not
* track this record, so we should avoid tracking it, too
*/
if
(
file_id
==
0
)
{
if
(
newname
!=
name
)
free
(
newname
);
return
(
NULL
);
}
/* search the hash table for this file record, and return if found */
HASH_FIND
(
hlink
,
posix_runtime
->
file_hash
,
&
file_id
,
sizeof
(
darshan_record_id
),
file
);
if
(
file
)
...
...
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