Re: 'perf stat --null sleep 1' segfault related to evlist__for_each_entry with affinity == NULL

From: Arnaldo Carvalho de Melo
Date: Wed Mar 16 2022 - 16:18:53 EST


Em Wed, Mar 16, 2022 at 12:14:12AM -0700, Ian Rogers escreveu:
> On Tue, Mar 15, 2022 at 5:50 AM Arnaldo Carvalho de Melo <acme@xxxxxxxxxx> wrote:
> > And was dormant as the affinity was being always setup, which we don't
> > want when it isn't needed.
>
> Thanks for the detailed report, I sent a fix in:
> https://lore.kernel.org/lkml/20220316071049.2368250-1-irogers@xxxxxxxxxx/
> Any thoughts for a shell test to avoid this regressing again in the future?

Thanks for providing me with the Message-ID, that way I'll be able to
get that patch since I wasn't on the CC list for it, I'll also add a
Reported-by tag.

- Arnaldo