qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC PATCH v1 8/9] util/qemu-thread-*: add qemu_lock, l


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [RFC PATCH v1 8/9] util/qemu-thread-*: add qemu_lock, locked and unlock trace events
Date: Tue, 9 May 2017 15:55:00 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0


On 09/05/2017 15:50, Alex Bennée wrote:
>> No, it doesn't.  I would make the trace event take const char * and pass
>> in the string.
> It would be nice to avoid having the string for non-trace builds.

It can help with gdb as well (e.g. having gdb printers that print the
name of a mutex), and it shouldn't be a burden.

Paolo

> I was
> thinking of something like:
> 
>   trace_register_human_name(void *ptr, const char *name)
> 
> Which compiles away to nothing when tracing is not enabled.
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]