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

Details

Provenance
markjAuthored on Jul 24 2024, 8:10 PM
Parents
rG1c30cf95098e: malloc: Handle large malloc sizes in malloc_size()
Branches
Unknown
Tags
Unknown