On 27 February 2018 at 10:24, Peter Maydell <peter.mayd...@linaro.org> wrote:
> docs/devel/tracing.txt describes them, but basically:
>  * include "trace.h"
>  * define trace events with a line for each in the trace-events
>    file for the subdirectory (basically a function prototype-ish
>    thing followed by a printf-style format string)
>  * call them like normal function calls with a trace_ prefix
>
> commit 1b640aa9292bc00beb441e97d862ba322a7ba18d is a recent one
> which converted some DRINTFs in hw/sd/sd.c to trace events.

...and you can test them most conveniently with the QEMU
-d argument: "-d trace:sii9022*" will enable tracing to stderr
of all trace events with names that begin 'sii9022'.

thanks
-- PMM

Reply via email to