From: Auger Eric <eric.auger@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Eric Auger <eric.auger.pro@gmail.com>,
QEMU Developers <qemu-devel@nongnu.org>,
qemu-arm <qemu-arm@nongnu.org>,
jia.he@hxt-semitech.com, Jia He <hejianet@gmail.com>,
Stefan Hajnoczi <stefanha@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v2 2/4] hw/arm/smmuv3: Cache/invalidate config data
Date: Thu, 21 Jun 2018 09:54:15 +0200 [thread overview]
Message-ID: <dfcf6ddb-5bde-ea8c-6b26-e44cc5e1632c@redhat.com> (raw)
In-Reply-To: <CAFEAcA84MpwJj8n0LvyE0BrfuJLCfB4rVWT=o0GcDn-6HpMThA@mail.gmail.com>
Hi Peter,
On 06/20/2018 06:10 PM, Peter Maydell wrote:
> On 20 June 2018 at 16:56, Peter Maydell <peter.maydell@linaro.org> wrote:
>> On 12 June 2018 at 09:08, Eric Auger <eric.auger@redhat.com> wrote:
>>> +smmuv3_config_cache_hit(uint32_t sid, uint32_t hits, uint32_t misses, float perc) "Config cache HIT for sid %d (hits=%d, misses=%d, hit rate=%.1f)"
>>> +smmuv3_config_cache_miss(uint32_t sid, uint32_t hits, uint32_t misses, float perc) "Config cache MISS for sid %d (hits=%d, misses=%d, hit rate=%.1f)"
>>
>> Does our tracing infrastructure really support floats? There
>> is no other use of it in the tree. There is one instance of
>> 'double', though, so maybe we do.
>>
>> In general I think we should prefer 'double' over 'float' anyway,
>> though.
>
> I asked Stefan on IRC and the systemtap backend doesn't support
> float or double, so we need to use an integer type here.
> Lazy approach is to just round the % to an integer; if you think
> the extra precision is useful then you can have %d.%d and
> calculate the 10th-of-a-percent digit or something.
Oh OK thanks.
I will adopt the lazy approach then ;-)
Thanks
Eric
>
> thanks
> -- PMM
>
next prev parent reply other threads:[~2018-06-21 7:54 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-12 8:08 [Qemu-devel] [PATCH v2 0/4] ARM SMMUv3: IOTLB Emulation and VHOST Support Eric Auger
2018-06-12 8:08 ` [Qemu-devel] [PATCH v2 1/4] hw/arm/smmuv3: Fix translate error handling Eric Auger
2018-06-20 15:36 ` Peter Maydell
2018-06-12 8:08 ` [Qemu-devel] [PATCH v2 2/4] hw/arm/smmuv3: Cache/invalidate config data Eric Auger
2018-06-20 15:56 ` Peter Maydell
2018-06-20 16:10 ` Peter Maydell
2018-06-21 7:54 ` Auger Eric [this message]
2018-06-21 7:51 ` Auger Eric
2018-06-12 8:08 ` [Qemu-devel] [PATCH v2 3/4] hw/arm/smmuv3: IOTLB emulation Eric Auger
2018-06-20 16:07 ` Peter Maydell
2018-06-21 7:49 ` Auger Eric
2018-06-12 8:08 ` [Qemu-devel] [PATCH v2 4/4] hw/arm/smmuv3: Add notifications on invalidation Eric Auger
2018-06-20 16:15 ` Peter Maydell
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=dfcf6ddb-5bde-ea8c-6b26-e44cc5e1632c@redhat.com \
--to=eric.auger@redhat.com \
--cc=eric.auger.pro@gmail.com \
--cc=hejianet@gmail.com \
--cc=jia.he@hxt-semitech.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.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).