-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also track the CPU Spin time for OpenBSD systems.
Use the non-cgo version for all openbsd architectures. The old code only pulled some defines from header files. Just add them as enumerations in native go. Also be careful at what the SysctlRaw returns. Implement a way that supports both recent and old pre-6.4 OpenBSD systems. With go-1.16 OpenBSD binaries will link to libc and because of this binaries built on OpenBSD 6.9-current do not run on OpenBSD 6.3. OpenBSD 6.3 is also not supported for more then 2 years. So maybe the compat code is not needed. Still validation object length before doing an unsafe pointer conversion is probably reasonable but I'm no golang expert. Signed-off-by: Claudio Jeker <claudio@openbsd.org>
- Loading branch information
Showing
2 changed files
with
45 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.