Re: [PATCH 2/4] perf stat: Add computation of TopDown formulas

From: Andi Kleen
Date: Thu Jun 02 2016 - 10:26:17 EST


On Thu, Jun 02, 2016 at 06:56:51AM -0500, Nilay Vaish wrote:
> Andi, I am talking about the if statement. I don't know why it would
> happen that nothing got measured. I am guessing you saw it happen.
> May be we can add a comment in the patch that it is possible that all
> counter values are zero and therefore we need that if statement.

Sure it can happen that nothing got measured, for example if the program
didn't run, or the group didn't get scheduled.

-Andi