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
F146160468: D52413.id161857.diff
Sat, Feb 28, 8:23 AM
Unknown Object (File)
Sat, Feb 21, 12:39 PM
Unknown Object (File)
Sun, Feb 8, 2:16 PM
Unknown Object (File)
Sun, Feb 8, 12:13 PM
Unknown Object (File)
Fri, Jan 30, 10:40 PM
Unknown Object (File)
Jan 22 2026, 8:26 AM
Unknown Object (File)
Jan 18 2026, 5:10 PM
Unknown Object (File)
Dec 6 2025, 10:26 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