HomeFreeBSD

hwpmc: simplify arm64 kernel stack unwinding

Description

hwpmc: simplify arm64 kernel stack unwinding

Use the unwind_frame() function, which properly validates the frame
pointer and uses ADDR_MAKE_CANONICAL() for the pc, required when PAC is
enabled.

Reviewed by: andrew, markj, jkoshy
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D39934

(cherry picked from commit 5387495773e9e92441b795c0eb8c2a3ecc25708a)

Details

Provenance
mhorneAuthored on May 5 2023, 9:58 PM
Reviewer
andrew
Differential Revision
D39934: hwpmc: simplify arm64 kernel stack unwinding
Parents
rGca05e98df02a: hwpmc_logging: less macro magic for type names
Branches
Unknown
Tags
Unknown