Page MenuHomeFreeBSD

Optimize set_syscall_retval for riscv
ClosedPublic

Authored by trasz on Oct 28 2020, 7:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 20, 12:03 AM
Unknown Object (File)
Sat, Sep 13, 5:37 AM
Unknown Object (File)
Sep 5 2025, 11:30 PM
Unknown Object (File)
Sep 5 2025, 10:05 PM
Unknown Object (File)
Aug 12 2025, 7:49 PM
Unknown Object (File)
Aug 8 2025, 1:36 PM
Unknown Object (File)
Jul 19 2025, 9:33 PM
Unknown Object (File)
Jul 11 2025, 11:47 PM
Subscribers

Details

Summary

Optimize set_syscall_retval for riscv by predicting the return
value to be zero.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

trasz requested review of this revision.Oct 28 2020, 7:43 PM
This revision is now accepted and ready to land.Oct 28 2020, 8:48 PM
kp added a subscriber: kp.

Do we see measurable performance improvements with this?

(Looking at the generated code it does seem to be better, but measurements would make me feel better.)

I wouldn’t expect any visible results. The syscall path overhead is still huge, and there’s not a single reason for it - it’s a “death by thousand cuts” situation, which needs to be resolved in small chunks, like this one.