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, Oct 24, 11:28 AM
Unknown Object (File)
Oct 10 2024, 9:36 AM
Unknown Object (File)
Oct 3 2024, 7:56 PM
Unknown Object (File)
Oct 3 2024, 9:39 AM
Unknown Object (File)
Oct 1 2024, 1:28 PM
Unknown Object (File)
Sep 30 2024, 6:46 PM
Unknown Object (File)
Sep 28 2024, 6:20 PM
Unknown Object (File)
Sep 15 2024, 2:41 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.