HomeFreeBSD

dtrace: fix fbt regression for aarch64

Description

dtrace: fix fbt regression for aarch64

fbt computes incorrect instruction position for AArch64 kernel module symbol.

The issue is with the for loop, it does an extra increment of instr pointer
after the required instruction is found. Hence, a wrong instruction is
targeted for patching.

Signed-off-by: Igor Ostapenko <pm@igoro.pro>

Fixes: 980746e5cb26 ("fbt: simplify arm64 function-prologue parsing")
Reviewed by: markj
Pull Request: https://github.com/freebsd/freebsd-src/pull/855
MFC after: 1 week

Details

Provenance
igor.ostapenko_pm.meAuthored on Oct 3 2023, 4:48 PM
markjCommitted on Oct 3 2023, 5:07 PM
Parents
rG4862e8ac0223: vfs cache: describe various optimization ideas
Branches
Unknown
Tags
Unknown