Received: from [140.186.70.92] (port=37908 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q6rec-0004mN-G8 for qemu-devel@nongnu.org; Mon, 04 Apr 2011 17:49:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q6reb-0005dC-7m for qemu-devel@nongnu.org; Mon, 04 Apr 2011 17:49:46 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:47392) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Q6rea-0005ct-Sf for qemu-devel@nongnu.org; Mon, 04 Apr 2011 17:49:45 -0400 From: =?utf-8?b?TGx1w61z?= Date: Mon, 04 Apr 2011 23:49:00 +0200 Message-ID: <20110404214900.9761.49418.stgit@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [RFC][PATCH 0/6] trace-state: make the behaviour of "disable" consistent across all backends List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: stefanha@gmail.com This patch defines the "disable" trace event state to always use the "nop" backend. As a side-effect, all events are now enabled (without "disable") by default, as all backends (except "stderr") have programmatic support for dynamically (de)activating each trace event. In order to make this true, the "simple" backend now has a "-trace events=" argument to let the user select which events must be enabled from the very beginning. Signed-off-by: Lluís Vilanova --- Lluís Vilanova (6): trace: [ust] fix generation of 'trace.c' on events without args trace: generalize the "property" concept in the trace-events file trace-state: always use the "nop" backend on events with the "disable" keyword trace-state: [simple] disable all trace points by default trace-state: [simple] add "-trace events" argument to control initial state trace: enable all events docs/tracing.txt | 12 +- qemu-config.c | 5 + qemu-options.hx | 18 ++ scripts/tracetool | 88 +++++------- trace-events | 385 ++++++++++++++++++++++++++--------------------------- vl.c | 94 ++++++++----- 6 files changed, 313 insertions(+), 289 deletions(-)