HomeFreeBSD

Fix INVARIANTS debug code in HWPMC

Description

Fix INVARIANTS debug code in HWPMC

When HWPMC stops sampling, ps_pmc may be freed before samples
are processed. In such situation treat PMC as stopped.
Add "ifdef" to fix build without INVARIANTS code.

Submitted by: Michal Mazur <mkm@semihalf.com>
Obtained from: Semihalf
Sponsored by: Stormshield, Netgate
Differential revision: https://reviews.freebsd.org/D10912

Details

Committed
zbbJun 13 2017, 6:53 PM
Differential Revision
D10912: Fix INVARIANTS debug code in HWPMC
Parents
rS319912: Fix event table for Cortex A9.
Branches
Unknown
Tags
Unknown