mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
d557de4a0e
commit
cb764d0665
5 changed files with 19 additions and 4 deletions
|
@ -276,7 +276,9 @@ bool qemu_mutex_iothread_locked(void);
|
|||
* NOTE: tools currently are single-threaded and qemu_mutex_lock_iothread
|
||||
* is a no-op there.
|
||||
*/
|
||||
void qemu_mutex_lock_iothread(void);
|
||||
#define qemu_mutex_lock_iothread() \
|
||||
qemu_mutex_lock_iothread_impl(__FILE__, __LINE__)
|
||||
void qemu_mutex_lock_iothread_impl(const char *file, int line);
|
||||
|
||||
/**
|
||||
* qemu_mutex_unlock_iothread: Unlock the main loop mutex.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue