Page MenuHomeFreeBSD

Shrink sysent from 48 to 32 bytes
ClosedPublic

Authored by trasz on Sep 21 2020, 12:52 PM.
Tags
None
Referenced Files
F109695543: D26508.diff
Sat, Feb 8, 11:19 AM
Unknown Object (File)
Fri, Jan 24, 2:02 AM
Unknown Object (File)
Mon, Jan 13, 12:27 PM
Unknown Object (File)
Mon, Jan 13, 6:42 AM
Unknown Object (File)
Jan 2 2025, 4:15 PM
Unknown Object (File)
Dec 6 2024, 3:02 AM
Unknown Object (File)
Dec 6 2024, 2:59 AM
Unknown Object (File)
Nov 18 2024, 2:21 PM

Details

Summary

Shrink sysent from 48 to 32 bytes by shrinking some entries and reordering them.

This depends on https://reviews.freebsd.org/D26530.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 33689
Build 30927: arc lint + arc unit

Event Timeline

You can shrink it to 32 bytes:
sy_nargs can be uint8_t, we definitely do not need more than 255 arguments
sy_flags can be uint8_t as well.

trasz retitled this revision from Shrink sysent from 48 to 40 bytes to Shrink sysent from 48 to 32 bytes.Sep 23 2020, 2:02 PM
trasz edited the summary of this revision. (Show Details)

Note in the commit message that 48->32 is for LP64, for ILP32 it seems to be 32->28 (but I could miscount).

This revision is now accepted and ready to land.Sep 23 2020, 3:05 PM