A new thread starts in fork_exit(), not mi_switch(), so its PMCs are
not loaded until its next context switch. Call the switch-in hook
there.
Depends on D60564
Differential D60565
hwpmc: switch in process PMCs on a thread's first run Authored by afscoelho_gmail.com on Sat, Oct 10, 1:22 AM. Tags None Referenced Files
Details A new thread starts in fork_exit(), not mi_switch(), so its PMCs are Depends on D60564 Built amd64 GENERIC + hwpmc.ko, GENERIC without HWPMC_HOOKS, and arm64.
Diff Detail
Event TimelineComment Actions Rebase-only update to add the Differential Revision trailer; no code change. @kib, could you please re-accept? |