diff options
| author | Emilio G. Cota <cota@braap.org> | 2017-10-28 02:16:41 -0400 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-08-23 18:46:25 +0200 |
| commit | cb764d06650da5fad7c833975b255d08e91a0a52 (patch) | |
| tree | 7f403b625d17ba77ad11639d976b2c847f0c830c /include/qemu/thread.h | |
| parent | d557de4a0e290c9946f37ff1fba7204844cccc64 (diff) | |
| download | focaccia-qemu-cb764d06650da5fad7c833975b255d08e91a0a52.tar.gz focaccia-qemu-cb764d06650da5fad7c833975b255d08e91a0a52.zip | |
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>
Diffstat (limited to 'include/qemu/thread.h')
| -rw-r--r-- | include/qemu/thread.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/qemu/thread.h b/include/qemu/thread.h index c90ea4783f..dacebcfff0 100644 --- a/include/qemu/thread.h +++ b/include/qemu/thread.h @@ -35,6 +35,7 @@ typedef int (*QemuRecMutexTrylockFunc)(QemuRecMutex *m, const char *f, int l); typedef void (*QemuCondWaitFunc)(QemuCond *c, QemuMutex *m, const char *f, int l); +extern QemuMutexLockFunc qemu_bql_mutex_lock_func; extern QemuMutexLockFunc qemu_mutex_lock_func; extern QemuMutexTrylockFunc qemu_mutex_trylock_func; extern QemuRecMutexLockFunc qemu_rec_mutex_lock_func; |