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, Aug 26, 4:24 PM
Unknown Object (File)
Thu, Aug 13, 8:07 PM
Unknown Object (File)
Sun, Aug 9, 8:01 PM
Unknown Object (File)
Sun, Aug 9, 12:21 PM
Unknown Object (File)
Sun, Aug 9, 12:10 PM
Unknown Object (File)
Jul 17 2026, 2:15 PM
Unknown Object (File)
Jun 24 2026, 9:27 PM
Unknown Object (File)
Jun 23 2026, 12: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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 29134
Build 27070: arc lint + arc unit

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