Page MenuHomeFreeBSD

Linuxolator: Replace use of eventhandlers by sysent hooks.
ClosedPublic

Authored by kib on Nov 21 2020, 11:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 2, 8:07 PM
Unknown Object (File)
Jan 15 2024, 3:03 AM
Unknown Object (File)
Dec 22 2023, 11:52 PM
Unknown Object (File)
Sep 3 2023, 6:15 AM
Unknown Object (File)
Sep 3 2023, 6:12 AM
Unknown Object (File)
Sep 3 2023, 6:09 AM
Unknown Object (File)
Aug 28 2023, 9:02 AM
Unknown Object (File)
Aug 24 2023, 9:15 PM
Subscribers

Details

Summary

Add necessary hooks for Linuxolator to see exec/exit, and thread destruction. IMO this is how it should have been done from the start.

Note that for thread destruction sysent hook, the replacement of the existing eventhandler is not equivalent: call is done much earlier while thread is still attached to the process. This is done so that p_sysent is still available, and in principle it should provide more context information to the hook, but for now it is unused since only linuxolator uses it. Also, process lock is owned there.

Test Plan

Not tested.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 34948