HomeFreeBSD

kinst: check for 'push %rbp' anywhere in the function

Description

kinst: check for 'push %rbp' anywhere in the function

Currently kinst checks if only the first instruction is 'push %rbp',
essentially excluding functions that do push RBP, but not in the first
instruction. This patch modifies kinst to check for 'push %rbp', as
well, as a following 'pop %rbp', anywhere in the function. This behavior
also matches that of FBT.

Reviewed by: markj
Approved by: markj (mentor)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D40283

Details

Provenance
christosAuthored on Jul 19 2023, 2:53 PM
Reviewer
markj
Differential Revision
D40283: kinst: check for 'push %rbp' anywhere in the function
Parents
rG8ada3f78e68f: kinst.h: reorder function declarations based on implementation file
Branches
Unknown
Tags
Unknown