]> Git Repo - qemu.git/commit - include/qemu/thread-posix.h
QemuMutex: support --enable-debug-mutex
authorPaolo Bonzini <[email protected]>
Wed, 13 Jun 2018 12:23:08 +0000 (14:23 +0200)
committerPaolo Bonzini <[email protected]>
Thu, 28 Jun 2018 17:05:32 +0000 (19:05 +0200)
commitba59fb778ec68b072196cff9af11c7612a6e52f2
treeed0008190d1ecec2102d9f506a879f2e119a930b
parentf1aff7aa8e6f238909bd0b0e7a1fe235802843f2
QemuMutex: support --enable-debug-mutex

We have had some tracing tools for mutex but it's not easy to use them
for e.g. dead locks.  Let's provide "--enable-debug-mutex" parameter
when configure to allow QemuMutex to store the last owner that took
specific lock.  It will be easy to use this tool to debug deadlocks
since we can directly know who took the lock then as long as we can have
a debugger attached to the process.

Reviewed-by: Emilio G. Cota <[email protected]>
Signed-off-by: Peter Xu <[email protected]>
Message-Id: <20180425025459[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
configure
include/qemu/thread-posix.h
include/qemu/thread-win32.h
util/qemu-thread-common.h
This page took 0.034367 seconds and 4 git commands to generate.