qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH V3 2/2] sdhci: Change debug prints to compile un


From: Markus Armbruster
Subject: Re: [Qemu-devel] [PATCH V3 2/2] sdhci: Change debug prints to compile unconditionally
Date: Mon, 07 Sep 2015 11:04:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Sai Pavan Boddu <address@hidden> writes:

>> -----Original Message-----
>> From: Markus Armbruster [mailto:address@hidden
>> Sent: Monday, September 07, 2015 1:05 PM
>> To: Sai Pavan Boddu
>> Cc: address@hidden; address@hidden;
>> address@hidden; address@hidden; Sai Pavan Boddu; Edgar
>> Iglesias; Alistair Francis
>> Subject: Re: [Qemu-devel] [PATCH V3 2/2] sdhci: Change debug prints to
>> compile unconditionally
>> 
>> Sai Pavan Boddu <address@hidden> writes:
>> 
>> > Conditionaly compilation hides few type mismatch warnings, fix it to
>> > compile unconditioinal.
>> >
>> > Signed-off-by: Sai Pavan Boddu <address@hidden>
>> > Suggested-by: Eric Blake <address@hidden>
>> 
>> No objection to this patch, but have you considered tracepoints?
>> See docs/tracing.txt.
>
> [Sai Pavan ] No, I didn’t do that. Actually no knowledge on that. Let
> me figure it out what it does. Even better if you can just explain in
> few lines, for what trace tool is used?

For a simple example of how to convert from debug prints to tracepoints,
check out commit f6e3534.

Perhaps the simplest way to get the debugging output then is the
"stderr" backend you get with "configure --enable-trace-backend=stderr".
Run QEMU with "-trace events=foo", where file foo contains a list of
events to enable.  To get all the tracepoints added by the commit above,
try this one-element list:

    fw_cfg_*

Hope this suffices to get you started.



reply via email to

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