[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACbG30_qs_LNmoG9EQCBEBq=HbBjPxP98ABKvmGht+Y_sbTTXA@mail.gmail.com>
Date: Wed, 1 Jun 2016 09:50:07 -0500
From: Nilay Vaish <nilayvaish@...il.com>
To: Andi Kleen <andi@...stfloor.org>
Cc: acme@...nel.org, jolsa@...nel.org,
Linux Kernel list <linux-kernel@...r.kernel.org>,
Andi Kleen <ak@...ux.intel.com>
Subject: Re: [PATCH 2/4] perf stat: Add computation of TopDown formulas
On 24 May 2016 at 14:52, Andi Kleen <andi@...stfloor.org> wrote:
> +static double td_be_bound(int ctx, int cpu)
> +{
> + double sum = (td_fe_bound(ctx, cpu) +
> + td_bad_spec(ctx, cpu) +
> + td_retiring(ctx, cpu));
> + if (sum == 0)
> + return 0;
> + return sanitize_val(1.0 - sum);
> +}
> +
Can you explain why we need the check on sum?
--
Nilay
Powered by blists - more mailing lists