Re: [PATCH V2] perf/x86: Consider pinned events for group validation

From: Andi Kleen
Date: Thu Aug 22 2019 - 14:22:30 EST


> + /*
> + * Disable interrupts to prevent the events in this CPU's cpuc
> + * going away and getting freed.
> + */
> + local_irq_save(flags);

I believe it's also needed to disable preemption. Probably should
add a comment, or better an explicit preempt_disable() too.

-Andi