Home
last modified time | relevance | path

Searched refs:aio (Results 1 – 6 of 6) sorted by relevance

/tools/perf/util/
Dmmap.c73 return map->aio.nr_cblocks > 0; in perf_mmap__aio_enabled()
79 map->aio.data[idx] = mmap(NULL, mmap__mmap_len(map), PROT_READ|PROT_WRITE, in perf_mmap__aio_alloc()
81 if (map->aio.data[idx] == MAP_FAILED) { in perf_mmap__aio_alloc()
82 map->aio.data[idx] = NULL; in perf_mmap__aio_alloc()
91 if (map->aio.data[idx]) { in perf_mmap__aio_free()
92 munmap(map->aio.data[idx], mmap__mmap_len(map)); in perf_mmap__aio_free()
93 map->aio.data[idx] = NULL; in perf_mmap__aio_free()
106 data = map->aio.data[idx]; in perf_mmap__aio_bind()
128 map->aio.data[idx] = malloc(mmap__mmap_len(map)); in perf_mmap__aio_alloc()
129 if (map->aio.data[idx] == NULL) in perf_mmap__aio_alloc()
[all …]
Dmmap.h41 } aio; member
/tools/perf/
Dbuiltin-record.c252 struct aiocb **aiocb = md->aio.aiocb; in record__aio_sync()
253 struct aiocb *cblocks = md->aio.cblocks; in record__aio_sync()
259 for (i = 0; i < md->aio.nr_cblocks; ++i) { in record__aio_sync()
278 while (aio_suspend((const struct aiocb **)aiocb, md->aio.nr_cblocks, &timeout)) { in record__aio_sync()
293 struct record_aio *aio = to; in record__aio_pushfn() local
309 if (record__comp_enabled(aio->rec)) { in record__aio_pushfn()
310 size = zstd_compress(aio->rec->session, aio->data + aio->size, in record__aio_pushfn()
311 mmap__mmap_len(map) - aio->size, in record__aio_pushfn()
314 memcpy(aio->data + aio->size, buf, size); in record__aio_pushfn()
317 if (!aio->size) { in record__aio_pushfn()
[all …]
Dbuiltin-version.c81 STATUS(HAVE_AIO_SUPPORT, aio); in library_status()
/tools/perf/Documentation/
Dperf-config.txt567 record.aio::
Dperf-record.txt485 --aio[=n]::