Re: [PATCH v5 13/13] perf stat: Use affinity for enabling/disabling events

From: Andi Kleen
Date: Mon Nov 11 2019 - 18:31:30 EST


> then let's have some assert or BUG_ON on !all_cpus
> and remove the fallback code from close path

I tried it again, but in record mode evsel->cpus is usually NULL,
resulting in various crashes.

I think fixing this beyond the scope of this patchkit, so i will
keep the fallback checks for now. I'll add better comments though.

-Andi