HomeFreeBSD

hwpmc_arm64: plug memory leak

Description

hwpmc_arm64: 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/D41268

(cherry picked from commit 8bdceaecabd91ce5ed23646d91cef878681e19d6)

Details

Provenance
mhorneAuthored on Aug 3 2023, 2:09 PM
Reviewer
jkoshy
Differential Revision
D41268: hwpmc_arm64: plug memory leak
Parents
rG5a0c410787b8: intro(9): rewrite from scratch
Branches
Unknown
Tags
Unknown