HomeFreeBSD

hwpmc_armv7: plug memory leak

Description

hwpmc_armv7: plug memory leak

Free allocated per-CPU structures in the pcpu_fini and finalize methods.

While here, add debug trace entries to these methods.

Reviewed by: jkoshy, andrew
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D41269

(cherry picked from commit 9c0a2d522f3a18fc795a7dd6266d2be2aff4b084)

Details

Provenance
mhorneAuthored on Aug 3 2023, 2:10 PM
Reviewer
jkoshy
Differential Revision
D41269: hwpmc_armv7: plug memory leak
Parents
rGdd70f2b48c9c: hwpmc_arm64: plug memory leak
Branches
Unknown
Tags
Unknown