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
ab22a28c
Commit
ab22a28c
authored
Dec 01, 2016
by
Shane Snyder
Browse files
make sure to byte swap segment data
parent
4bbcbd21
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
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