diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2018-09-12 19:10:39 +0200 |
---|---|---|
committer | Fam Zheng <famz@redhat.com> | 2018-09-26 10:46:21 +0800 |
commit | e30cffa04d52e35996569f1cfac111be19576bde (patch) | |
tree | eaacae170f0f4cc0f443cbd14bd8e63c309ede13 /util/trace-events | |
parent | d7be5dd19c0df7f76e1b42f0c2cbbabefa1974cb (diff) | |
download | qemu-e30cffa04d52e35996569f1cfac111be19576bde.zip qemu-e30cffa04d52e35996569f1cfac111be19576bde.tar.gz qemu-e30cffa04d52e35996569f1cfac111be19576bde.tar.bz2 |
aio-posix: compute timeout before polling
This is a preparation for the next patch, and also a very small
optimization. Compute the timeout only once, before invoking
try_poll_mode, and adjust it in run_poll_handlers. The adjustment
is the polling time when polling fails, or zero (non-blocking) if
polling succeeds.
Fixes: 70232b5253a3c4e03ed1ac47ef9246a8ac66c6fa
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20180912171040.1732-3-pbonzini@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'util/trace-events')
-rw-r--r-- | util/trace-events | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/trace-events b/util/trace-events index 4822434..79569b7 100644 --- a/util/trace-events +++ b/util/trace-events @@ -1,8 +1,8 @@ # See docs/devel/tracing.txt for syntax documentation. # util/aio-posix.c -run_poll_handlers_begin(void *ctx, int64_t max_ns) "ctx %p max_ns %"PRId64 -run_poll_handlers_end(void *ctx, bool progress) "ctx %p progress %d" +run_poll_handlers_begin(void *ctx, int64_t max_ns, int64_t timeout) "ctx %p max_ns %"PRId64 " timeout %"PRId64 +run_poll_handlers_end(void *ctx, bool progress, int64_t timeout) "ctx %p progress %d new timeout %"PRId64 poll_shrink(void *ctx, int64_t old, int64_t new) "ctx %p old %"PRId64" new %"PRId64 poll_grow(void *ctx, int64_t old, int64_t new) "ctx %p old %"PRId64" new %"PRId64 |