Page MenuHomeFreeBSD

Add asserts to verify stability of struct proc and struct thread layouts.
ClosedPublic

Authored by kib on Apr 27 2017, 3:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 4, 1:14 PM
Unknown Object (File)
Jan 26 2024, 10:09 PM
Unknown Object (File)
Jan 10 2024, 9:53 AM
Unknown Object (File)
Dec 31 2023, 11:04 PM
Unknown Object (File)
Dec 20 2023, 5:24 PM
Unknown Object (File)
Dec 20 2023, 3:26 AM
Unknown Object (File)
Nov 14 2023, 7:04 PM
Unknown Object (File)
Oct 31 2023, 4:59 PM
Subscribers

Details

Test Plan

I built i386 UP debugging kernel, and amd64 SMP debugging/production kernels with this patch. Make universe is due after acceptance.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

One moment is probably worth a clarification. I believe that locks have stable layout now, regardless of the witness, lock profiling or other supportive machinery. If this becomes no longer the case, then asserts would be only enabled for production kernels on all branches.

This revision is now accepted and ready to land.Apr 27 2017, 4:28 PM

Yes, it seems LOCK_PROFILING no longer changes 'struct lock_object'.

This revision was automatically updated to reflect the committed changes.