Received: from eggs.gnu.org ([140.186.70.92]:59955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEJ0v-0005XV-6X for qemu-devel@nongnu.org; Mon, 25 Apr 2011 06:27:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QEJ0u-0007Lq-67 for qemu-devel@nongnu.org; Mon, 25 Apr 2011 06:27:33 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:49189) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QEJ0t-0007Lc-Pb for qemu-devel@nongnu.org; Mon, 25 Apr 2011 06:27:32 -0400 From: =?utf-8?Q?Llu=C3=ADs?= References: <20110406183341.22854.93929.stgit@ginnungagap.bsc.es> <20110406183503.22854.39534.stgit@ginnungagap.bsc.es> <4DB3C204.1030400@redhat.com> Date: Mon, 25 Apr 2011 12:27:22 +0200 In-Reply-To: (Stefan Hajnoczi's message of "Sun, 24 Apr 2011 10:33:28 +0100") Message-ID: <87hb9mtylx.fsf@fulla.xlab.taz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH v2 10/11] trace-state: [stderr] add support for dynamically enabling/disabling events List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Paolo Bonzini , qemu-devel@nongnu.org, chouteau@adacore.com Stefan Hajnoczi writes: > On Sun, Apr 24, 2011 at 7:24 AM, Paolo Bonzini wrote: >> On 04/23/2011 04:31 PM, Stefan Hajnoczi wrote: >>> >>> For tracing use cases that require performance or runtime >>> enabling/disabling trace events, just use the simple, ust, or dtrace >>> backends. >> >> Having -trace events for the stderr backend would still be nice. > That should be doable without ifdefing and duplicating simpletrace. > The tracer and monitor command parts of simpletrace need to be > separated from common TraceEvent and tracetool generation, which can > be reused by stderr. That's exactly what I thought, but I tried to preserve as much as possible the original patch that was sent to me. But in any case, I'm still not sure if stderr should have programatic tracing state controls. Lluis -- "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