Home
last modified time | relevance | path

Searched refs:aiocb (Results 1 – 4 of 4) sorted by relevance

/tools/build/feature/
Dtest-libaio.c6 struct aiocb aiocb; in main() local
8 aiocb.aio_fildes = 0; in main()
9 aiocb.aio_offset = 0; in main()
10 aiocb.aio_buf = 0; in main()
11 aiocb.aio_nbytes = 0; in main()
12 aiocb.aio_reqprio = 0; in main()
13 aiocb.aio_sigevent.sigev_notify = 1 /*SIGEV_NONE*/; in main()
15 return (int)aio_return(&aiocb); in main()
/tools/perf/util/
Dmmap.h17 struct aiocb;
38 struct aiocb *cblocks;
39 struct aiocb **aiocb; member
Dmmap.c153 map->aio.aiocb = calloc(map->aio.nr_cblocks, sizeof(struct aiocb *)); in perf_mmap__aio_mmap()
154 if (!map->aio.aiocb) { in perf_mmap__aio_mmap()
158 map->aio.cblocks = calloc(map->aio.nr_cblocks, sizeof(struct aiocb)); in perf_mmap__aio_mmap()
210 zfree(&map->aio.aiocb); in perf_mmap__aio_munmap()
/tools/perf/
Dbuiltin-record.c179 static int record__aio_write(struct aiocb *cblock, int trace_fd, in record__aio_write()
204 static int record__aio_complete(struct mmap *md, struct aiocb *cblock) in record__aio_complete()
252 struct aiocb **aiocb = md->aio.aiocb; in record__aio_sync() local
253 struct aiocb *cblocks = md->aio.cblocks; in record__aio_sync()
262 aiocb[i] = NULL; in record__aio_sync()
271 aiocb[i] = &cblocks[i]; in record__aio_sync()
278 while (aio_suspend((const struct aiocb **)aiocb, md->aio.nr_cblocks, &timeout)) { in record__aio_sync()