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
F83181077: D27309.diff
Tue, May 7, 9:30 AM
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
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 Not Applicable
Unit
Tests Not Applicable