HomeFreeBSD

dtrace/arm64: Fix enumeration of FBT return probes

Description

dtrace/arm64: Fix enumeration of FBT return probes

On arm64, the FBT provider treats tail calls as return probes. Ignoring
the question of whether this is really correct, the implementation is
wrong: instr is a pointer to uint32_t, so the removed multiplication by
the instruction size is wrong. As a result, FBT would create return
probes for intra-function branches.

MFC after: 2 weeks
Sponsored by: Innovate UK

(cherry picked from commit 4da070ce6c015a994ec4ecf3d31ee94810ea19f1)

Details

Provenance
markjAuthored on Wed, Jan 29, 2:03 AM
Parents
rG40c56cc51eaf: libdtrace: Use designators to initialize the opcode array
Branches
Unknown
Tags
Unknown