From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:49705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qhet3-0007SV-10 for qemu-devel@nongnu.org; Fri, 15 Jul 2011 05:40:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qhet1-00063H-LJ for qemu-devel@nongnu.org; Fri, 15 Jul 2011 05:40:44 -0400 Received: from mail-fx0-f47.google.com ([209.85.161.47]:44150) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qhet0-000636-UJ for qemu-devel@nongnu.org; Fri, 15 Jul 2011 05:40:43 -0400 Received: by fxg11 with SMTP id 11so2943529fxg.34 for ; Fri, 15 Jul 2011 02:40:41 -0700 (PDT) Date: Fri, 15 Jul 2011 10:40:30 +0100 From: Stefan Hajnoczi Message-ID: <20110715094030.GA6856@stefanha-thinkpad.localdomain> References: <20110628165254.23482.17825.stgit@ginnungagap.bsc.es> <20110628165334.23482.6251.stgit@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20110628165334.23482.6251.stgit@ginnungagap.bsc.es> Subject: Re: [Qemu-devel] [PATCH v5 06/10] trace-state: add "-trace events" argument to control initial state List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Llu=EDs?= Cc: qemu-devel@nongnu.org, chouteau@adacore.com On Tue, Jun 28, 2011 at 06:53:34PM +0200, Lluís wrote: > diff --git a/docs/tracing.txt b/docs/tracing.txt > index 017ff59..8f6e5c9 100644 > --- a/docs/tracing.txt > +++ b/docs/tracing.txt > @@ -129,6 +129,9 @@ This functionality is also provided through monitor commands: > * trace-event NAME on|off > Enable/disable a given trace event. > > +The "-trace events=" command line argument can be used to enable the > +events listed in from the very beginning of the program. Please document the syntax of the file: one event name per line. > --- a/qemu-options.hx > +++ b/qemu-options.hx > @@ -2394,17 +2394,29 @@ Normally QEMU loads a configuration file from @var{sysconfdir}/qemu.conf and > option will prevent QEMU from loading these configuration files at startup. > ETEXI > DEF("trace", HAS_ARG, QEMU_OPTION_trace, > - "-trace\n" > - " Specify a trace file to log traces to\n", > + "-trace [events=][,file=]\n" > + " specify tracing options\n", > QEMU_ARCH_ALL) > STEXI > -HXCOMM This line is not accurate, as the option is backend-specific but HX does > -HXCOMM not support conditional compilation of text. > -@item -trace > +HXCOMM This line is not accurate, as some sub-options are backend-specific but > +HXCOMM HX does not support conditional compilation of text. > +@item -trace [events=@var{file}][,file=@var{file}] > @findex -trace > -Specify a trace file to log output traces to. > + > +Specify tracing options. > + > +@table @option > +@item events=@var{file} > +Immediately enable events listed in @var{file}. > +The file must contain one event name (as listed in the @var{trace-events} file) > +per line. > + > +This option is not available when using the @var{nop} tracing backend. > +@item file=@var{file} This option is only available when using the @var{simple} tracing backend. (nop, ust, dtrace, stderr don't support it) Stefan