Re: [PATCH 01/10] perf,x86: Fix event/group validation

From: Peter Zijlstra
Date: Thu May 21 2015 - 09:20:26 EST


On Thu, May 21, 2015 at 06:18:15AM -0700, Stephane Eranian wrote:
> Yes, it does modify the cpuc->event_list[]->hwc, because it is used as a
> cache for *EACH* invocation of the function. It is irrelevant outside the
> function.

Yes, but the problem is that they _nest_.

So you get to use the one from the nested call in the outer call.
--
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/