Re: [PATCH V2 03/13] perf/x86: output sampling overhead
From: Peter Zijlstra
Date: Tue Dec 06 2016 - 07:00:02 EST
On Fri, Dec 02, 2016 at 04:19:11PM -0500, kan.liang@xxxxxxxxx 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.