[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20161206113805.GO3124@twins.programming.kicks-ass.net>
Date: Tue, 6 Dec 2016 12:38:05 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: kan.liang@...el.com
Cc: mingo@...hat.com, acme@...nel.org, linux-kernel@...r.kernel.org,
alexander.shishkin@...ux.intel.com, tglx@...utronix.de,
namhyung@...nel.org, jolsa@...nel.org, adrian.hunter@...el.com,
wangnan0@...wei.com, mark.rutland@....com, andi@...stfloor.org
Subject: Re: [PATCH V2 03/13] perf/x86: output sampling overhead
On Fri, Dec 02, 2016 at 04:19:11PM -0500, kan.liang@...el.com wrote:
> +static void
> +perf_calculate_nmi_overhead(u64 time)
> +{
> + struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events);
> +
> + cpuc->nmi_overhead.nr++;
> + cpuc->nmi_overhead.time += time;
> +}
This function doesn't calculate anything much.
Powered by blists - more mailing lists