Page MenuHomeFreeBSD

dtrace/arm: Fix and de-pessimize dtrace_copy
ClosedPublic

Authored by freebsd_dev.thsi.be on Aug 30 2026, 10:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 8, 11:03 PM
Unknown Object (File)
Wed, Oct 7, 4:43 PM
Unknown Object (File)
Wed, Oct 7, 1:35 AM
Unknown Object (File)
Wed, Oct 7, 1:22 AM
Unknown Object (File)
Tue, Oct 6, 11:05 PM
Unknown Object (File)
Tue, Oct 6, 10:39 PM
Unknown Object (File)
Tue, Oct 6, 9:24 PM
Unknown Object (File)
Tue, Oct 6, 9:24 PM
Subscribers

Details

Summary

Use an unprivileged load to access user memory from dtrace_copy, which
is running in SVC mode.

Abort the loop if the load is trapped, as it is useless, hence
wasteful, to keep faulting on successive addresses. I believe that
this de-pessimization should also be done on aarch64 and riscv.

PR: 298064
MFC after: 1 month

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Sep 2 2026, 1:15 PM
This revision was automatically updated to reflect the committed changes.