Re: [PATCH 3/7] perf: Migrate perf to use new tick dependency mask model

From: Peter Zijlstra
Date: Wed Dec 02 2015 - 12:15:34 EST


On Wed, Dec 02, 2015 at 06:03:14PM +0100, Frederic Weisbecker wrote:
> Right, I can do either that or I can move the dependency to the CPU level
> and count nr_freq to the cpu_ctx when any ctx gets scheduled in/out. Then
> everytime we inc and nr_freq == 1, we set the dependency (all that should
> be serialized as it only happens locally).

Doing it per CPU would, as you say, add accounting crap to the context
switch path. Now given that context switches with perf enabled are
already silly expensive that might just fall away into the noise.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/