Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Shane Snyder
darshan
Commits
0459f8ff
Commit
0459f8ff
authored
Sep 25, 2015
by
Shane Snyder
Browse files
add a partial flag to darshan's header
this indicates whether the log file is complete or only partially written
parent
928fdff4
Changes
2
Show whitespace changes
Inline
Side-by-side
darshan-log-format.h
View file @
0459f8ff
...
...
@@ -99,6 +99,7 @@ struct darshan_header
char
version_string
[
8
];
int64_t
magic_nr
;
unsigned
char
comp_type
;
unsigned
char
partial_flag
;
struct
darshan_log_map
rec_map
;
struct
darshan_log_map
mod_map
[
DARSHAN_MAX_MODS
];
};
...
...
darshan-runtime/lib/darshan-core.c
View file @
0459f8ff
...
...
@@ -1567,8 +1567,13 @@ void darshan_core_register_record(
/* record not found -- add it to the hash if we aren't already tracking the
* maximum number of records
*/
if
(
darshan_core
->
rec_count
>=
DARSHAN_CORE_MAX_RECORDS
)
{
/* if we are already tracking the max records, set a flag to indicate
* that this log file has partial results
*/
darshan_core
->
log_header
.
partial_flag
=
1
;
DARSHAN_CORE_UNLOCK
();
return
;
}
...
...
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