Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
intel-hpdd
darshan-dxlt
Commits
341bf09f
Commit
341bf09f
authored
Jun 30, 2015
by
Shane Snyder
Browse files
bug fix for aio_return wrapper
parent
1d202464
Changes
1
Hide whitespace changes
Inline
Side-by-side
darshan-runtime/lib/darshan-posix.c
View file @
341bf09f
...
...
@@ -1172,8 +1172,16 @@ ssize_t DARSHAN_DECL(aio_return)(struct aiocb *aiocbp)
if
((
unsigned
long
)
aiocbp
->
aio_buf
%
darshan_mem_alignment
==
0
)
aligned_flag
=
1
;
CP_LOCK
();
CP_RECORD_WRITE
(
ret
,
aiocbp
->
aio_fildes
,
aiocbp
->
aio_nbytes
,
1
,
aiocbp
->
aio_offset
,
aligned_flag
,
0
,
tmp
->
tm1
,
tm2
);
if
(
aiocbp
->
aio_lio_opcode
==
LIO_WRITE
)
{
CP_RECORD_WRITE
(
ret
,
aiocbp
->
aio_fildes
,
aiocbp
->
aio_nbytes
,
1
,
aiocbp
->
aio_offset
,
aligned_flag
,
0
,
tmp
->
tm1
,
tm2
);
}
if
(
aiocbp
->
aio_lio_opcode
==
LIO_READ
)
{
CP_RECORD_READ
(
ret
,
aiocbp
->
aio_fildes
,
aiocbp
->
aio_nbytes
,
1
,
aiocbp
->
aio_offset
,
aligned_flag
,
0
,
tmp
->
tm1
,
tm2
);
}
CP_UNLOCK
();
free
(
tmp
);
}
...
...
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