Re: "perf ftrace" segfault because ->cpus!=NULL but ->all_cpus==NULL

From: Andi Kleen
Date: Thu Jan 09 2020 - 07:59:47 EST


> oops, ftrace is using evlist without event ;-) so all_cpus
> will not get initialized..
>
> Andi, should we initialize evlist::all_cpus with the first
> cpus we get, like in the patch below?

I assume perf stat -A still works for all CPUs? If yes it's ok.

-andi