From: malc <av1474@comtv.ru>
To: Prerna Saxena <prerna@linux.vnet.ibm.com>
Cc: Ananth Narayan <ananth@linux.vnet.ibm.com>,
qemu-devel <qemu-devel@nongnu.org>,
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Subject: Re: [Qemu-devel] [Tracing][PATCH v2] Add options to specify trace file name at startup and runtime.
Date: Wed, 4 Aug 2010 13:30:42 +0400 (MSD) [thread overview]
Message-ID: <alpine.LNX.2.00.1008041329200.2414@linmac> (raw)
In-Reply-To: <20100804145154.3d9a7c41@zephyr>
On Wed, 4 Aug 2010, Prerna Saxena wrote:
> This patch adds an optional command line switch '-trace' to specify the
> filename to write traces to, when qemu starts.
> Eg, If compiled with the 'simple' trace backend,
> [temp@system]$ qemu -trace FILENAME IMAGE
> Allows the binary traces to be written to FILENAME instead of the option
> set at config-time.
>
> Also, this adds monitor sub-command 'set' to trace-file commands to
> dynamically change trace log file at runtime.
> Eg,
> (qemu)trace-file set FILENAME
> This allows one to set trace outputs to FILENAME from the default
> specified at startup.
>
> Changelog from v1 :
> - Cleanups.
[..snip..]
> + st_set_trace_file_enabled(false);
>
> - if (asprintf(&filename, CONFIG_TRACE_FILE, getpid()) < 0) {
> - return false;
> + free(trace_file_name);
> +
> + if (!file) {
> + if (asprintf(&trace_file_name, CONFIG_TRACE_FILE, getpid()) < 0) {
> + trace_file_name = NULL;
> + return false;
Tab here.
> + }
> + } else {
> + if (asprintf(&trace_file_name, "%s", file) < 0) {
> + trace_file_name = NULL;
> + return false;
> + }
> }
>
[..snip..]
--
mailto:av1474@comtv.ru
next prev parent reply other threads:[~2010-08-04 9:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-03 5:37 [Qemu-devel] [Tracing][PATCH] Add options to specify trace file name at startup and runtime Prerna Saxena
2010-08-03 14:15 ` Stefan Hajnoczi
2010-08-04 9:33 ` Prerna Saxena
2010-08-04 9:53 ` Stefan Hajnoczi
2010-08-04 9:21 ` [Qemu-devel] [Tracing][PATCH v2] " Prerna Saxena
2010-08-04 9:30 ` malc [this message]
2010-08-04 10:53 ` [Qemu-devel] [Tracing][PATCH v3] " Prerna Saxena
2010-08-04 11:48 ` Stefan Hajnoczi
2010-08-05 12:08 ` [Qemu-devel] [Tracing][PATCH] Fix a build warning Prerna Saxena
2010-08-05 14:26 ` [Qemu-devel] " Stefan Hajnoczi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LNX.2.00.1008041329200.2414@linmac \
--to=av1474@comtv.ru \
--cc=ananth@linux.vnet.ibm.com \
--cc=prerna@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).