Re: perf top -p broken for multithreaded processes since 5.19

From: Adrian Hunter
Date: Fri Sep 02 2022 - 11:18:32 EST


On 2/09/22 17:46, Tomáš Trnka wrote:
> Hello,
>
> A bug in perf v5.19 and newer completely breaks monitoring multithreaded
> processes using "perf top -p". The tool fails to start with "Failed to mmap
> with 22 (Invalid argument)". It still seems to work fine on single-threaded
> processes. "perf record" is also unaffected.

It has been reported here:

https://bugzilla.kernel.org/show_bug.cgi?id=216441