[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v5 04/10] trace-state: separate trace event cont
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH v5 04/10] trace-state: separate trace event control and query routines from the simple backend |
Date: |
Fri, 15 Jul 2011 10:41:30 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Tue, Jun 28, 2011 at 06:53:21PM +0200, LluĂs wrote:
> Move the 'st_print_trace_events' and 'st_change_trace_event_state' into
> backend-agnostic 'trace_print_events' and 'trace_event_set_state'
> (respectively)
> in the "trace/control.c" file.
Renaming the functions makes sense but moving their implementations out
into control.c inside an #ifdef is not clean. Why not keep their
implementations in simple.c?
Just renaming them to the generic name should be enough. Let the linker
do the #ifdef (we only link in simple.o or we link in another trace
backend). There's no need for control.c.
Stefan
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-devel] [PATCH v5 04/10] trace-state: separate trace event control and query routines from the simple backend,
Stefan Hajnoczi <=