HomeFreeBSD

hwpmc: use kstack_contains()

Description

hwpmc: use kstack_contains()

This existing helper function is preferable to the hand-rolled
calculation of the kstack bounds.

Make some small style improvements while here. Notably, rename every
instance of "r", the return address, to "ra". Tidy the includes in the
affected files.

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

Details

Provenance
mhorneAuthored on May 5 2023, 9:59 PM
Reviewer
jkoshy
Differential Revision
D39909: hwpmc: use kstack_contains()
Parents
rG5387495773e9: hwpmc: simplify arm64 kernel stack unwinding
Branches
Unknown
Tags
Unknown