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)
Sat, Oct 11, 12:35 PM
Unknown Object (File)
Sat, Oct 11, 12:35 PM
Unknown Object (File)
Sat, Oct 11, 12:35 PM
Unknown Object (File)
Sat, Oct 11, 4:25 AM
Unknown Object (File)
Thu, Sep 25, 7:44 PM
Unknown Object (File)
Thu, Sep 25, 2:08 PM
Unknown Object (File)
Thu, Sep 25, 12:01 PM
Unknown Object (File)
Tue, Sep 23, 4:16 AM
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