Re: [Qemu-devel] DPRINTF vs tracing

2010-12-11 Thread Blue Swirl
On Sat, Dec 11, 2010 at 1:03 PM, Stefan Hajnoczi wrote: > Historically, QEMU code has defined per-file DPRINTF() macros for > debug logging.  A lot of recent patches continue to use this > technique. > > I want to draw attention to tracing support and its advantages over > DPRINTF().  Tracing is a

[Qemu-devel] DPRINTF vs tracing

2010-12-11 Thread Stefan Hajnoczi
Historically, QEMU code has defined per-file DPRINTF() macros for debug logging. A lot of recent patches continue to use this technique. I want to draw attention to tracing support and its advantages over DPRINTF(). Tracing is an alternative that solves limitations of the DPRINTF() approach: 1.