Page MenuHomeFreeBSD

Make get_proccess_cputime and get_thread_cputime public api
ClosedPublic

Authored by dchagin on Jan 23 2020, 7:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Mar 11, 4:54 PM
Unknown Object (File)
Wed, Mar 11, 2:29 AM
Unknown Object (File)
Wed, Mar 11, 1:08 AM
Unknown Object (File)
Tue, Mar 10, 10:25 AM
Unknown Object (File)
Thu, Feb 26, 3:17 PM
Unknown Object (File)
Wed, Feb 18, 7:39 AM
Unknown Object (File)
Feb 15 2026, 9:48 AM
Unknown Object (File)
Feb 14 2026, 10:32 PM
Subscribers

Details

Summary

For code reuse in Linuxulator rename get_proccess_cputime() and get_thread_cputime() and add prototypes for it to <sys/syscallsubr.h>.
Fix whitespace nit while here.

Diff Detail

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

Event Timeline

It seems that both functions use process lock as a way to ensure that the process is not exiting under it. This should be asserted since functions become public interface.

This revision is now accepted and ready to land.Feb 3 2020, 6:12 PM