Re: [PATCH] perf stat: Fix segfault on armv8_pmu events

2020-10-07 Thread Arnaldo Carvalho de Melo
Em Wed, Oct 07, 2020 at 01:42:19PM +0200, Jiri Olsa escreveu: > On Wed, Oct 07, 2020 at 05:13:11PM +0900, Namhyung Kim wrote: > > It was reported that perf stat crashed when using with armv8_pmu (cpu) > > events with the task mode. As perf stat uses an empty cpu map for > > task mode but armv8_pmu

Re: [PATCH] perf stat: Fix segfault on armv8_pmu events

2020-10-07 Thread Jiri Olsa
On Wed, Oct 07, 2020 at 05:13:11PM +0900, Namhyung Kim wrote: > It was reported that perf stat crashed when using with armv8_pmu (cpu) > events with the task mode. As perf stat uses an empty cpu map for > task mode but armv8_pmu has its own cpu mask, it confused which map > should use when accessi

[PATCH] perf stat: Fix segfault on armv8_pmu events

2020-10-07 Thread Namhyung Kim
It was reported that perf stat crashed when using with armv8_pmu (cpu) events with the task mode. As perf stat uses an empty cpu map for task mode but armv8_pmu has its own cpu mask, it confused which map should use when accessing file descriptors and caused segfaults: (gdb) bt #0 0x