[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH][RFC] New trace-event backend: stdio
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH][RFC] New trace-event backend: stdio |
Date: |
Wed, 26 Jan 2011 09:50:30 +0000 |
On Mon, Jan 24, 2011 at 5:33 PM, Fabien Chouteau <address@hidden> wrote:
> diff --git a/docs/tracing.txt b/docs/tracing.txt
> index 963c504..de033ad 100644
> --- a/docs/tracing.txt
> +++ b/docs/tracing.txt
> @@ -133,6 +133,11 @@ source tree. It may not be as powerful as
> platform-specific or third-party
> trace backends but it is portable. This is the recommended trace backend
> unless you have specific needs for more advanced backends.
>
> +=== Stdio ===
> +
> +The "stdio" backend sends trace events directly to standard output during
> +emulation.
> +
This is a reasonable backend for development/debugging. It's just a
small step from DPRINTF() and that might work well with people's
existing development workflows.
Since most other QEMU diagnostics go to stderr, please use it here
too. Also please change the name to "stderr" so it is immediately
obvious what this backend does.
> @@ -236,6 +237,55 @@ linetoc_end_simple()
> EOF
> }
>
> +#STDIO
> +linetoh_begin_stdio()
> +{
> + return
> +}
> +
> +linetoh_stdio()
> +{
> + local name args argnamess argc fmt
local name args argnames argc state fmt
Stefan