qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Eric Blake <eblake@redhat.com>, Peter Maydell <peter.maydell@linaro.org>
Cc: "Daniel P. Berrange" <berrange@redhat.com>,
	"QEMU Developers" <qemu-devel@nongnu.org>,
	"Stefan Hajnoczi" <stefanha@redhat.com>,
	"Laurent Desnogues" <laurent.desnogues@gmail.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Lluís Vilanova" <vilanova@ac.upc.edu>
Subject: Re: [PATCH] memory: Replace DEBUG_UNASSIGNED printf calls by trace events
Date: Fri, 20 Sep 2019 18:03:20 +0200	[thread overview]
Message-ID: <d15786aa-6bb0-19a7-1969-14cc37f8d889@redhat.com> (raw)
In-Reply-To: <e6169704-2af8-95e7-d64d-9de8b5768cdc@redhat.com>

Cc'ing Daniel and Lluís,

On 9/20/19 5:01 PM, Eric Blake wrote:
> On 9/20/19 9:39 AM, Philippe Mathieu-Daudé wrote:
> 
>>>> I thought I read a comment about it between Eric/Stefan but I can't find
>>>> it, maybe I dreamed it. (Cc'ed Eric).
> 
> Not from me.  But looking at scripts/tracetool/format/log_stap.py, I
> suspect the dtrace via stap backend cannot support it.
> 
> Researching further,
> 
> https://sourceware.org/systemtap/langref.pdf
> 
> section 9.2 printf, states:
> 
> "The printf formatting directives are similar to those of C, except that
> they are fully checked for type by the translator."
> 
> and does NOT list handling for '*' under precision or width.
> 

Thanks for checking this.

>>>
>>> If my grep is correct we currently use the syntax already in
>>> gt64120_read, gt64120_write, pflash_io_read, pflash_io_write,
>>> pflash_data_read and pflash_data_write trace events.
>>
>> If you use 'git blame' you'll notice I added all of them, so better
>> let's get a proper confirmation from Stefan :)
>>
>> I plan to use them more, I find them helpful to directly see the access
>> size looking at the value width.
> 
> You'll probably have to revert that, or else teach the various backend
> generators how to dumb-down a format string containing it when coupled
> with a backend that doesn't support it natively.

OK, I'll see what is doable with the backend generators, else revert/fix
the trace events already introduced :(

Regards,

Phil.


      reply	other threads:[~2019-09-20 16:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-20 14:12 [PATCH] memory: Replace DEBUG_UNASSIGNED printf calls by trace events Philippe Mathieu-Daudé
2019-09-20 14:17 ` Paolo Bonzini
2019-09-20 14:20   ` Peter Maydell
2019-10-08 20:40     ` Palmer Dabbelt
2019-10-08 20:41       ` Alistair Francis
2019-10-08 20:52         ` Alistair Francis
2019-09-20 14:19 ` Peter Maydell
2019-09-20 14:29   ` Philippe Mathieu-Daudé
2019-09-20 14:35     ` Peter Maydell
2019-09-20 14:39       ` Philippe Mathieu-Daudé
2019-09-20 15:01         ` Eric Blake
2019-09-20 16:03           ` Philippe Mathieu-Daudé [this message]

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=d15786aa-6bb0-19a7-1969-14cc37f8d889@redhat.com \
    --to=philmd@redhat.com \
    --cc=berrange@redhat.com \
    --cc=eblake@redhat.com \
    --cc=laurent.desnogues@gmail.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    --cc=vilanova@ac.upc.edu \
    /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).