HomeFreeBSD

module/*.ko: prune .data, global .rodata

Description

module/*.ko: prune .data, global .rodata

Evaluated every variable that lives in .data (and globals in .rodata)
in the kernel modules, and constified/eliminated/localised them
appropriately. This means that all read-only data is now actually
read-only data, and, if possible, at file scope. A lot of previously-
global-symbols became inlinable (and inlined!) constants. Probably
not in a big Wowee Performance Moment, but hey.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #12899

Details

Provenance
наб <nabijaczleweli@nabijaczleweli.xyz>Authored on Jan 14 2022, 11:37 PM
GitHub <noreply@github.com>Committed on Jan 14 2022, 11:37 PM
Parents
rG7adc19009817: Clarify `failmode=wait` documentation
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG18168da72742: module/*.ko: prune .data, global .rodata (authored by наб <nabijaczleweli@nabijaczleweli.xyz>).Jan 14 2022, 11:37 PM