https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123923
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2026-02-02
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The default for perf record is to follow forks. So I don't see why this would
fail for you.
Maybe there is some global settings for perf here that is causing not to
inherit on fork.
gcc-auto-profile just does
perf record -j any,$FLAGS "$@"