lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 13 Apr 2017 10:28:15 +0200
From:   Jiri Olsa <>
To:     David Carrillo-Cisneros <>
        Peter Zijlstra <>,
        Ingo Molnar <>,
        Arnaldo Carvalho de Melo <>,
        Alexander Shishkin <>,
        Wang Nan <>,
        Andi Kleen <>,
        Adrian Hunter <>,
        Mathieu Poirier <>,
        Stephane Eranian <>,
        Paul Turner <>
Subject: Re: [PATCH] perf/stat: fix bug in handling events in error state

On Wed, Apr 12, 2017 at 11:23:01AM -0700, David Carrillo-Cisneros wrote:
> From: Stephane Eranian <>
> (This is a patch has been sitting in the Intel CQM/CMT driver series
>  for a while, despite not depend on it. Sending it now independently
>  since the series is being discarded.)
> When an event is in error state, read() returns 0
> instead of sizeof() buffer. In certain modes, such
> as interval printing, ignoring the 0 return value
> may cause bogus count deltas to be computed and
> thus invalid results printed.
> This patch fixes this problem by modifying read_counters()
> to mark the event as not scaled (scaled = -1) to force
> the printout routine to show <NOT COUNTED>.
> Signed-off-by: Stephane Eranian <>
> Reviewed-by: David Carrillo-Cisneros <>

Acked-by: Jiri Olsa <>


Powered by blists - more mailing lists