diff options
author | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-03-07 08:06:10 +0000 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-03-07 15:34:46 +0000 |
commit | ddca9fb2b5ecc7ccaa81fbc73d2b723922c181f1 (patch) | |
tree | c9b76ee9a60a9f5026c6274343b0db14f1905acd /posix-aio-compat.c | |
parent | a13aac04e13b246edab6c0c08513504ecb71bbd4 (diff) | |
download | qemu-ddca9fb2b5ecc7ccaa81fbc73d2b723922c181f1.zip qemu-ddca9fb2b5ecc7ccaa81fbc73d2b723922c181f1.tar.gz qemu-ddca9fb2b5ecc7ccaa81fbc73d2b723922c181f1.tar.bz2 |
trace: Trace posix-aio-compat.c completion and cancellation
This patch adds paio_complete() and paio_cancel() trace events to
complement the paio_submit() event.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'posix-aio-compat.c')
-rw-r--r-- | posix-aio-compat.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/posix-aio-compat.c b/posix-aio-compat.c index fa5494d..6d4df9d 100644 --- a/posix-aio-compat.c +++ b/posix-aio-compat.c @@ -455,6 +455,9 @@ static int posix_aio_process_queue(void *opaque) } else { ret = -ret; } + + trace_paio_complete(acb, acb->common.opaque, ret); + /* remove the request */ *pacb = acb->next; /* call the callback */ @@ -537,6 +540,8 @@ static void paio_cancel(BlockDriverAIOCB *blockacb) struct qemu_paiocb *acb = (struct qemu_paiocb *)blockacb; int active = 0; + trace_paio_cancel(acb, acb->common.opaque); + mutex_lock(&lock); if (!acb->active) { QTAILQ_REMOVE(&request_list, acb, node); |