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
72
Issues
72
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
ab22a28c
Commit
ab22a28c
authored
Dec 01, 2016
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make sure to byte swap segment data
parent
4bbcbd21
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
darshan-util/darshan-dxt-logutils.c
darshan-util/darshan-dxt-logutils.c
+11
-5
No files found.
darshan-util/darshan-dxt-logutils.c
View file @
ab22a28c
...
...
@@ -63,17 +63,23 @@ struct darshan_mod_logutil_funcs dxt_mpiio_logutils =
void
dxt_swap_file_record
(
struct
dxt_file_record
*
file_rec
)
{
int
i
;
segment_info
*
tmp_seg
;
DARSHAN_BSWAP64
(
&
file_rec
->
base_rec
.
id
);
DARSHAN_BSWAP64
(
&
file_rec
->
base_rec
.
rank
);
DARSHAN_BSWAP64
(
&
file_rec
->
shared_record
);
for
(
i
=
0
;
i
<
HOSTNAME_SIZE
;
i
++
)
{
DARSHAN_BSWAP64
(
&
file_rec
->
hostname
[
i
]);
}
DARSHAN_BSWAP64
(
&
file_rec
->
write_count
);
DARSHAN_BSWAP64
(
&
file_rec
->
read_count
);
tmp_seg
=
(
segment_info
*
)((
void
*
)
file_rec
+
sizeof
(
struct
dxt_file_record
));
for
(
i
=
0
;
i
<
(
file_rec
->
write_count
+
file_rec
->
read_count
);
i
++
)
{
DARSHAN_BSWAP64
(
&
tmp_seg
->
offset
);
DARSHAN_BSWAP64
(
&
tmp_seg
->
length
);
DARSHAN_BSWAP64
(
&
tmp_seg
->
start_time
);
DARSHAN_BSWAP64
(
&
tmp_seg
->
end_time
);
tmp_seg
++
;
}
}
static
int
dxt_log_get_posix_file
(
darshan_fd
fd
,
void
**
dxt_posix_buf
)
...
...
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