Page MenuHomeFreeBSD

tslog: Move sysinit_tslog_shim() into kern_tslog.c
ClosedPublic

Authored by zlei on Sep 7 2025, 3:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 17, 6:55 PM
Unknown Object (File)
Thu, Mar 5, 6:34 AM
Unknown Object (File)
Tue, Mar 3, 12:16 PM
Unknown Object (File)
Sat, Feb 28, 7:52 PM
Unknown Object (File)
Sat, Feb 28, 1:59 PM
Unknown Object (File)
Sat, Feb 28, 8:23 AM
Unknown Object (File)
Sat, Feb 21, 12:39 PM
Unknown Object (File)
Feb 8 2026, 2:16 PM
Subscribers

Details

Summary

struct sysinit's func pointer requires its address, thus a real function
is generated in every translation unit when the source file has SYSINITs
declared. That results in plenty of identical sysinit_tslog_shim in the
final kernel file, in which only one is used and others are left useless.

MFC after: 1 week

Diff Detail

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