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
2f4d0dbc
Commit
2f4d0dbc
authored
Dec 08, 2016
by
Shane Snyder
Browse files
update dxt parser to indicate if data is partial
parent
b800d571
Changes
1
Hide whitespace changes
Inline
Side-by-side
darshan-util/darshan-dxt-parser.c
View file @
2f4d0dbc
...
...
@@ -171,11 +171,6 @@ int main(int argc, char **argv)
goto
cleanup
;
}
mod_buf
=
malloc
(
DEF_MOD_BUF_SIZE
);
if
(
!
mod_buf
)
{
goto
cleanup
;
}
for
(
i
=
0
;
i
<
DARSHAN_MAX_MODS
;
i
++
)
{
struct
darshan_base_record
*
base_rec
;
...
...
@@ -191,9 +186,6 @@ int main(int argc, char **argv)
continue
;
}
/* this module has data to be parsed and printed */
memset
(
mod_buf
,
0
,
DEF_MOD_BUF_SIZE
);
if
(
i
==
DXT_POSIX_MOD
||
i
==
DXT_MPIIO_MOD
)
{
printf
(
"
\n
# ***************************************************
\n
"
);
printf
(
"# %s module data
\n
"
,
darshan_module_names
[
i
]);
...
...
@@ -202,6 +194,13 @@ int main(int argc, char **argv)
else
if
(
i
!=
DARSHAN_LUSTRE_MOD
)
continue
;
/* print warning if this module only stored partial data */
if
(
DARSHAN_MOD_FLAG_ISSET
(
fd
->
partial_flag
,
i
))
printf
(
"
\n
# *WARNING*: The %s module contains incomplete data!
\n
"
"# This happens when a module runs out of
\n
"
"# memory to store new record data.
\n
"
,
darshan_module_names
[
i
]);
/* loop over each of this module's records and print them */
while
(
1
)
{
...
...
@@ -234,6 +233,8 @@ int main(int argc, char **argv)
break
;
}
if
(
i
==
DARSHAN_LUSTRE_MOD
)
continue
;
base_rec
=
(
struct
darshan_base_record
*
)
mod_buf
;
/* get the pathname for this record */
...
...
@@ -272,10 +273,10 @@ int main(int argc, char **argv)
}
else
if
(
i
==
DXT_MPIIO_MOD
){
dxt_log_print_mpiio_file
(
mod_buf
,
rec_name
,
mnt_pt
,
fs_type
);
}
memset
(
mod_buf
,
0
,
DEF_MOD_BUF_SIZE
);
free
(
mod_buf
);
mod_buf
=
NULL
;
}
}
...
...
@@ -283,7 +284,6 @@ int main(int argc, char **argv)
cleanup:
darshan_log_close
(
fd
);
free
(
mod_buf
);
/* free record hash data */
HASH_ITER
(
hlink
,
name_hash
,
ref
,
tmp_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