From: Gerd Hoffmann <kraxel@redhat.com>
To: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] ehci: avoid string arguments in trace events
Date: Mon, 05 Sep 2011 10:38:41 +0200 [thread overview]
Message-ID: <4E648A91.1080305@redhat.com> (raw)
In-Reply-To: <1315063347-26961-1-git-send-email-stefanha@linux.vnet.ibm.com>
On 09/03/11 17:22, Stefan Hajnoczi wrote:
> String arguments are not supported by all trace backends. This patch
> replaces existing string arguments in hw/usb-ehci.c either with
> individual trace events that remain human-friendly or by printing raw
> addresses when there is no alternative or downside to that.
Printing raw addresses *is* a downside.
> States and usbsts bits remain human-friendly since it is hard to
> remember all of them. MMIO addresses are printed raw because they would
> create many individual trace events and the addresses are usually easy
> to remember when debugging.
I find it hard to rememeber them. There is a reason why the code to
print the names for the mmio addresses is there in the first place. I
don't want to loose that.
Can't we just fix the backends instead? Replacing debug fprintf with
trace points isn't going to work if tracing can't handle strings.
cheers,
Gerd
next prev parent reply other threads:[~2011-09-05 8:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-03 15:22 [Qemu-devel] [PATCH] ehci: avoid string arguments in trace events Stefan Hajnoczi
2011-09-05 8:38 ` Gerd Hoffmann [this message]
2011-09-05 13:08 ` Stefan Hajnoczi
2011-09-05 13:15 ` Gerd Hoffmann
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=4E648A91.1080305@redhat.com \
--to=kraxel@redhat.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).