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
7a09fdee
Commit
7a09fdee
authored
Nov 01, 2016
by
Cong Xu
Browse files
Avoid segment fault if user uses darshan-parser to parse DXT logs
Signed-off-by:
Cong Xu
<
cong.xu@intel.com
>
parent
fcfcfe8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
darshan-util/darshan-dxt-logutils.c
View file @
7a09fdee
...
...
@@ -21,6 +21,8 @@
static
int
dxt_log_get_posix_file
(
darshan_fd
fd
,
void
**
dxt_posix_buf
);
static
int
dxt_log_put_posix_file
(
darshan_fd
fd
,
void
*
dxt_posix_buf
);
static
void
dxt_log_print_file
(
void
*
file_rec
,
char
*
file_name
,
char
*
mnt_pt
,
char
*
fs_type
);
void
dxt_log_print_posix_file
(
void
*
file_rec
,
char
*
file_name
,
char
*
mnt_pt
,
char
*
fs_type
,
struct
darshan_lustre_record
*
ref
);
static
void
dxt_log_print_posix_description
(
int
ver
);
...
...
@@ -44,6 +46,7 @@ struct darshan_mod_logutil_funcs dxt_posix_logutils =
{
.
log_get_record
=
&
dxt_log_get_posix_file
,
.
log_put_record
=
&
dxt_log_put_posix_file
,
.
log_print_record
=
&
dxt_log_print_file
,
// .log_print_description = &dxt_log_print_posix_description,
.
log_print_diff
=
&
dxt_log_print_posix_file_diff
,
.
log_agg_records
=
&
dxt_log_agg_posix_files
,
...
...
@@ -53,6 +56,7 @@ struct darshan_mod_logutil_funcs dxt_mpiio_logutils =
{
.
log_get_record
=
&
dxt_log_get_mpiio_file
,
.
log_put_record
=
&
dxt_log_put_mpiio_file
,
.
log_print_record
=
&
dxt_log_print_file
,
// .log_print_description = &dxt_log_print_mpiio_description,
.
log_print_diff
=
&
dxt_log_print_mpiio_file_diff
,
.
log_agg_records
=
&
dxt_log_agg_mpiio_files
,
...
...
@@ -194,6 +198,12 @@ static int dxt_log_put_mpiio_file(darshan_fd fd, void* dxt_mpiio_buf)
return
(
0
);
}
static
void
dxt_log_print_file
(
void
*
file_rec
,
char
*
file_name
,
char
*
mnt_pt
,
char
*
fs_type
)
{
// printf("DXT logs, use darshan-dxt-parser to parse DXT logs\n");
}
void
dxt_log_print_posix_file
(
void
*
posix_file_rec
,
char
*
file_name
,
char
*
mnt_pt
,
char
*
fs_type
,
struct
darshan_lustre_record
*
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