Re: [Qemu-devel] [PATCH v5 3/4] QemuMutex: support --enable-debug-mutex

2018-04-24 Thread Emilio G. Cota
On Tue, Apr 24, 2018 at 12:51:11 +0800, Peter Xu wrote: > 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

[Qemu-devel] [PATCH v5 3/4] QemuMutex: support --enable-debug-mutex

2018-04-23 Thread Peter Xu
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 k