[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC PATCH] trace: Replace error with warning if event
From: |
Alexey Kardashevskiy |
Subject: |
Re: [Qemu-devel] [RFC PATCH] trace: Replace error with warning if event is not defined |
Date: |
Wed, 28 May 2014 23:25:01 +1000 |
User-agent: |
Mozilla/5.0 (X11; Linux i686 on x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
On 05/28/2014 10:34 PM, Lluís Vilanova wrote:
> Stefan Hajnoczi writes:
>
>> On Wed, May 21, 2014 at 06:16:01PM +1000, Alexey Kardashevskiy wrote:
>>> At the moment QEMU exits if trace point is not defined which makes
>>> a developer life harder if he has to switch between branches with
>>> different traces implemented.
>>>
>>> This replaces error+exit wit WARNING if the tracepoint does not exist or
>>> not traceable.
>>>
>>> Signed-off-by: Alexey Kardashevskiy <address@hidden>
>>> ---
>>>
>>>
>>> That would make my life easier indeed. Thanks :)
>>>
>>>
>>> ---
>>> trace/control.c | 14 +++++++-------
>>> 1 file changed, 7 insertions(+), 7 deletions(-)
>
>> Thanks, applied to my tracing tree:
>> https://github.com/stefanha/qemu/commits/tracing
>
> I was doing some silly tests with "error_report". Would it be worth to port
> all
> these printfs to it?
>
> It also makes it prettier to see, for example, what line in the event list
> file
> failed when executing 'trace_init_events'.
Yep, I'll cook another patch, with error_report + line#.
--
Alexey