Commit 3a8112c5 authored by Philip Carns's avatar Philip Carns
Browse files

filled in lio_listio() wrappers


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@764 3b7491f3-a168-0410-bf4b-c445ed680a29
parent 7a522066
...@@ -1104,12 +1104,18 @@ int DARSHAN_DECL(lio_listio)(int mode, struct aiocb *const aiocb_list[], ...@@ -1104,12 +1104,18 @@ int DARSHAN_DECL(lio_listio)(int mode, struct aiocb *const aiocb_list[],
int nitems, struct sigevent *sevp) int nitems, struct sigevent *sevp)
{ {
int ret; int ret;
int i;
MAP_OR_FAIL(lio_listio); MAP_OR_FAIL(lio_listio);
printf("TESTING: wrapped lio_listio()\n");
ret = __real_lio_listio(mode, aiocb_list, nitems, sevp); ret = __real_lio_listio(mode, aiocb_list, nitems, sevp);
if(ret == 0)
{
for(i=0; i<nitems; i++)
{
darshan_aio_tracker_add(aiocb_list[i]);
}
}
return(ret); return(ret);
} }
...@@ -1118,12 +1124,18 @@ int DARSHAN_DECL(lio_listio64)(int mode, struct aiocb *const aiocb_list[], ...@@ -1118,12 +1124,18 @@ int DARSHAN_DECL(lio_listio64)(int mode, struct aiocb *const aiocb_list[],
int nitems, struct sigevent *sevp) int nitems, struct sigevent *sevp)
{ {
int ret; int ret;
int i;
MAP_OR_FAIL(lio_listio64); MAP_OR_FAIL(lio_listio);
printf("TESTING: wrapped lio_listio64()\n");
ret = __real_lio_listio64(mode, aiocb_list, nitems, sevp); ret = __real_lio_listio(mode, aiocb_list, nitems, sevp);
if(ret == 0)
{
for(i=0; i<nitems; i++)
{
darshan_aio_tracker_add(aiocb_list[i]);
}
}
return(ret); return(ret);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment