OSDN Git Service

qsp: track BQL callers explicitly
authorEmilio G. Cota <cota@braap.org>
Sat, 28 Oct 2017 06:16:41 +0000 (02:16 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 Aug 2018 16:46:25 +0000 (18:46 +0200)
commitcb764d06650da5fad7c833975b255d08e91a0a52
tree7f403b625d17ba77ad11639d976b2c847f0c830c
parentd557de4a0e290c9946f37ff1fba7204844cccc64
qsp: track BQL callers explicitly

The BQL is acquired via qemu_mutex_lock_iothread(), which makes
the profiler assign the associated wait time (i.e. most of
BQL wait time) entirely to that function. This loses the original
call site information, which does not help diagnose BQL contention.
Fix it by tracking the callers explicitly.

Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
cpus.c
include/qemu/main-loop.h
include/qemu/thread.h
stubs/iothread-lock.c
util/qsp.c