HomeFreeBSD

dtrace: Avoid including dtrace_isa.c directly into dtrace.c

Description

dtrace: Avoid including dtrace_isa.c directly into dtrace.c

This was done in the original DTrace import, presumably because that
made it a bit easier to handle includes. However, this can cause
dtrace_getpcstack() to be inlined into dtrace_probe(), resulting in a
missing frame in stack traces since dtrace_getpcstack() takes care to
bump "aframes" to account for its own stack frame.

To avoid this, compile dtrace_isa.c separately on all platforms. Add
requisite includes.

MFC after: 2 weeks
Sponsored by: Innovate UK

(cherry picked from commit 82283cad12a417abfb1469d899b2d7cfb1d38f77)

Details

Provenance
markjAuthored on Jul 24 2024, 8:10 PM
Parents
rG36bb714e2592: pfctl: Allow a semicolon (;) as a comment
Branches
Unknown
Tags
Unknown