Received: from eggs.gnu.org ([208.118.235.92]:38372) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Se535-0000Kc-RV for qemu-devel@nongnu.org; Mon, 11 Jun 2012 09:52:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Se533-0001Sc-Ny for qemu-devel@nongnu.org; Mon, 11 Jun 2012 09:52:51 -0400 Received: from roura.ac.upc.es ([147.83.33.10]:58820) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Se533-0001S8-Cl for qemu-devel@nongnu.org; Mon, 11 Jun 2012 09:52:49 -0400 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <20120508143813.18271.15731.stgit@fimbulvetr.bsc.es> <87oboq2jcj.fsf@fimbulvetr.bsc.es> Date: Mon, 11 Jun 2012 16:52:41 +0300 In-Reply-To: (Stefan Hajnoczi's message of "Mon, 11 Jun 2012 13:01:56 +0100") Message-ID: <87oboqvtue.fsf@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v4 0/7] trace: Generic event state description List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: qemu-devel@nongnu.org Stefan Hajnoczi writes: > On Mon, Jun 11, 2012 at 12:12 PM, Llu=C3=ADs Vilanova wrote: >> Stefan Hajnoczi writes: >>=20 >>> On Tue, May 8, 2012 at 3:38 PM, Llu=C3=ADs Vilanova wrote: >>>> Provides a generic event state description and a more detailed event c= ontrol and >>>> query interface. >>>>=20 >>>> Signed-off-by: Llu=C3=ADs Vilanova >>>> --- >> [...] >>> What is the point of sstate vs dstate? =C2=A0It seems the dynamic state= is >>> what can be toggled and sstate is the "disable" keyword. =C2=A0Why have >>> sstate since there is already a macro? >>=20 >> 'sstate' is there just in case you query the tracing state of an event t= hrough >> the 'TraceEvent' structure instead of through the corresponding macro. > If this is not used by a tracer today we should hold off until it's neede= d. I double-checked the code for uses of that and it appears to be there just = for the sake of completeness. Still, I realized I should have added a check in 'trace_event_set_state_dyn= amic' and assert that the event is statically enabled (otherwise dynamically enab= ling an event that is statically disabled just does not make sense). Whatever you prefer, although the code is pretty simple. Lluis --=20 "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth