Page MenuHomeFreeBSD

Optimize set_syscall_retval for riscv
ClosedPublic

Authored by trasz on Oct 28 2020, 7:43 PM.
Tags
None
Referenced Files
F175168243: D26990.id78911.diff
Thu, Oct 8, 7:59 PM
F175168238: D26990.id78911.diff
Thu, Oct 8, 7:59 PM
Unknown Object (File)
Thu, Oct 1, 12:10 PM
Unknown Object (File)
Tue, Sep 29, 5:31 PM
Unknown Object (File)
Sun, Sep 27, 1:29 AM
Unknown Object (File)
Sat, Sep 26, 7:06 PM
Unknown Object (File)
Fri, Sep 18, 10:39 PM
Unknown Object (File)
Fri, Sep 18, 10:06 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 Passed
Unit
No Test Coverage
Build Status
Buildable 34448
Build 31550: arc lint + arc unit

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.