Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Shane Snyder
darshan
Commits
89a97a0f
Commit
89a97a0f
authored
Aug 24, 2015
by
Shane Snyder
Browse files
darshan parser bug fixes
parent
8eb2f98d
Changes
1
Hide whitespace changes
Inline
Side-by-side
darshan-util/darshan-parser.c
View file @
89a97a0f
...
...
@@ -394,6 +394,12 @@ int main(int argc, char **argv)
printf
(
"# %s module data
\n
"
,
darshan_module_names
[
i
]);
printf
(
"# *******************************************************
\n
"
);
if
(
mask
&
OPTION_BASE
)
{
/* TODO: does each module print header of what each counter means??? */
DARSHAN_PRINT_HEADER
();
}
/* this module has data to be parsed and printed */
mod_bytes_left
=
mod_buf_sz
;
mod_buf_p
=
mod_buf
;
...
...
@@ -436,9 +442,6 @@ int main(int argc, char **argv)
if
(
mask
&
OPTION_BASE
)
{
/* TODO: does each module print header of what each counter means??? */
DARSHAN_PRINT_HEADER
();
/* print the corresponding module data for this record */
mod_logutils
[
i
]
->
log_print_record
(
rec_p
,
ref
->
rec
.
name
,
mnt_pt
,
fs_type
);
...
...
@@ -448,7 +451,7 @@ int main(int argc, char **argv)
* if the parser is executed with more than the base option
*/
if
(
i
!=
DARSHAN_POSIX_MOD
&&
i
!=
DARSHAN_MPIIO_MOD
)
break
;
continue
;
HASH_FIND
(
hlink
,
file_hash
,
&
rec_id
,
sizeof
(
darshan_record_id
),
hfile
);
if
(
!
hfile
)
...
...
@@ -483,6 +486,12 @@ int main(int argc, char **argv)
}
}
/* we calculate more detailed stats for POSIX and MPI-IO modules,
* if the parser is executed with more than the base option
*/
if
(
i
!=
DARSHAN_POSIX_MOD
&&
i
!=
DARSHAN_MPIIO_MOD
)
continue
;
/* Total Calc */
if
(
mask
&
OPTION_TOTAL
)
{
...
...
@@ -686,9 +695,9 @@ void posix_accum_file(struct darshan_posix_file *pfile,
{
hfile
->
rec_dat
=
malloc
(
sizeof
(
struct
darshan_posix_file
));
assert
(
hfile
->
rec_dat
);
tmp
=
(
struct
darshan_posix_file
*
)
hfile
->
rec_dat
;
memset
(
tmp
,
0
,
sizeof
(
struct
darshan_posix_file
));
memset
(
hfile
->
rec_dat
,
0
,
sizeof
(
struct
darshan_posix_file
));
}
tmp
=
(
struct
darshan_posix_file
*
)
hfile
->
rec_dat
;
for
(
i
=
0
;
i
<
POSIX_NUM_INDICES
;
i
++
)
{
...
...
@@ -890,9 +899,9 @@ void mpiio_accum_file(struct darshan_mpiio_file *mfile,
{
hfile
->
rec_dat
=
malloc
(
sizeof
(
struct
darshan_mpiio_file
));
assert
(
hfile
->
rec_dat
);
tmp
=
(
struct
darshan_mpiio_file
*
)
hfile
->
rec_dat
;
memset
(
tmp
,
0
,
sizeof
(
struct
darshan_mpiio_file
));
memset
(
hfile
->
rec_dat
,
0
,
sizeof
(
struct
darshan_mpiio_file
));
}
tmp
=
(
struct
darshan_mpiio_file
*
)
hfile
->
rec_dat
;
for
(
i
=
0
;
i
<
MPIIO_NUM_INDICES
;
i
++
)
{
...
...
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