Re: [Qemu-devel] debug logging

2011-05-02 Thread Paolo Bonzini
On 05/02/2011 02:43 PM, Jan Kiszka wrote: > 4. the equivalent of setting a loglevel is? Right now either the use of systemtap or ust which allow per-tracepoint enabling/disabling or enable simpletrace and use the trace-event monitor command. On top you need local grouping of the tracepoints.

Re: [Qemu-devel] debug logging

2011-05-02 Thread Alon Levy
On Mon, May 02, 2011 at 02:43:34PM +0200, Jan Kiszka wrote: > On 2011-05-02 13:50, Alon Levy wrote: > > On Mon, May 02, 2011 at 01:00:01PM +0200, Markus Armbruster wrote: > >> Jan Kiszka writes: > >> > >>> On 2011-05-02 12:33, Alon Levy wrote: > On Mon, May 02, 2011 at 12:25:30PM +0200, Gerd

Re: [Qemu-devel] debug logging

2011-05-02 Thread Jan Kiszka
On 2011-05-02 13:50, Alon Levy wrote: > On Mon, May 02, 2011 at 01:00:01PM +0200, Markus Armbruster wrote: >> Jan Kiszka writes: >> >>> On 2011-05-02 12:33, Alon Levy wrote: On Mon, May 02, 2011 at 12:25:30PM +0200, Gerd Hoffmann wrote: > Hi, > >> dbg_print takes care of making

Re: [Qemu-devel] debug logging

2011-05-02 Thread Alon Levy
On Mon, May 02, 2011 at 01:00:01PM +0200, Markus Armbruster wrote: > Jan Kiszka writes: > > > On 2011-05-02 12:33, Alon Levy wrote: > >> On Mon, May 02, 2011 at 12:25:30PM +0200, Gerd Hoffmann wrote: > >>> Hi, > >>> > dbg_print takes care of making it standard to have a loglevel and > >>>

Re: [Qemu-devel] debug logging

2011-05-02 Thread Markus Armbruster
Jan Kiszka writes: > On 2011-05-02 12:33, Alon Levy wrote: >> On Mon, May 02, 2011 at 12:25:30PM +0200, Gerd Hoffmann wrote: >>> Hi, >>> dbg_print takes care of making it standard to have a loglevel and prefix, sounds good, but I'd still like to know if it is acceptable to also

Re: [Qemu-devel] debug logging

2011-05-02 Thread Jan Kiszka
On 2011-05-02 12:33, Alon Levy wrote: > On Mon, May 02, 2011 at 12:25:30PM +0200, Gerd Hoffmann wrote: >> Hi, >> >>> dbg_print takes care of making it standard to have a loglevel and prefix, >>> sounds >>> good, but I'd still like to know if it is acceptable to also redirect with >>> -debug, >>

Re: [Qemu-devel] debug logging

2011-05-02 Thread Alon Levy
On Mon, May 02, 2011 at 12:25:30PM +0200, Gerd Hoffmann wrote: > Hi, > > >dbg_print takes care of making it standard to have a loglevel and prefix, > >sounds > >good, but I'd still like to know if it is acceptable to also redirect with > >-debug, > >I guess reusing the DeviceState then, instea

Re: [Qemu-devel] debug logging

2011-05-02 Thread Gerd Hoffmann
Hi, dbg_print takes care of making it standard to have a loglevel and prefix, sounds good, but I'd still like to know if it is acceptable to also redirect with -debug, I guess reusing the DeviceState then, instead of my added struct, so just letting DeviceState.debug_chardev == NULL by defau

Re: [Qemu-devel] debug logging (was: Re: [PATCHv2 3/4] qxl: add debug_cs and cmdlog_cs)

2011-05-02 Thread Alon Levy
On Mon, May 02, 2011 at 11:02:22AM +0200, Gerd Hoffmann wrote: > Hi, > > >The bigger hack called "qxl_terse" I didn't even send :) ok, so now I get > >to either keep this in my closet or think of how to do a minimal acceptable > >qemu logging infrastructure that would let me register a logging h

[Qemu-devel] debug logging (was: Re: [PATCHv2 3/4] qxl: add debug_cs and cmdlog_cs)

2011-05-02 Thread Gerd Hoffmann
Hi, The bigger hack called "qxl_terse" I didn't even send :) ok, so now I get to either keep this in my closet or think of how to do a minimal acceptable qemu logging infrastructure that would let me register a logging handle and use that to redirect to a chardev (they would all default to bei