Re: [RFC PATCH 7/7] perf, x86: drain PEBS buffer during context switch

From: Peter Zijlstra
Date: Wed May 28 2014 - 04:12:17 EST


On Wed, May 28, 2014 at 02:18:10PM +0800, Yan, Zheng wrote:
> Flush the PEBS buffer during context switch if PEBS interrupt threshold
> is larger than one. This allows perf to supply TID for events.

I have the distinct feeling you're doing this patch series the wrong way
around. It seems to me patch 5 completely breaks PEBS, patch 6 maybe
patches it up a bit, but only after this patch things work again
(maybe).

That's wrong.

Attachment: pgpS4tekMzMvg.pgp
Description: PGP signature