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
73
Issues
73
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
7a09fdee
Commit
7a09fdee
authored
Nov 01, 2016
by
Cong Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
darshan-util/darshan-dxt-logutils.c
darshan-util/darshan-dxt-logutils.c
+10
-0
No files found.
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
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