Received: from eggs.gnu.org ([2001:4830:134:3::10]:44954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVuQD-0003vh-Sg for qemu-devel@nongnu.org; Thu, 21 Jun 2018 03:54:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVuQD-0002Oj-6Z for qemu-devel@nongnu.org; Thu, 21 Jun 2018 03:54:25 -0400 References: <1528790908-23441-1-git-send-email-eric.auger@redhat.com> <1528790908-23441-3-git-send-email-eric.auger@redhat.com> From: Auger Eric Message-ID: Date: Thu, 21 Jun 2018 09:54:15 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 2/4] hw/arm/smmuv3: Cache/invalidate config data List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Eric Auger , QEMU Developers , qemu-arm , jia.he@hxt-semitech.com, Jia He , Stefan Hajnoczi Hi Peter, On 06/20/2018 06:10 PM, Peter Maydell wrote: > On 20 June 2018 at 16:56, Peter Maydell wrote: >> On 12 June 2018 at 09:08, Eric Auger 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 >