From 417ce2331b5c91eea36730d3e1739adb75193be2 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 13 May 2020 11:05:26 +0000 Subject: [PATCH] unix: add kern.ncpuonline sysctl on openbsd This is available since OpenBSD 6.4 Generated using mksysctl_openbsd.go on OpenBSD 6.6. but only added kern.ncpuonline for now. Change-Id: I092f980180154c2d0fe3f67ab747af64b58c28db Reviewed-on: https://go-review.googlesource.com/c/sys/+/233757 Run-TryBot: Tobias Klauser TryBot-Result: Gobot Gobot Reviewed-by: Matt Layher --- unix/zsysctl_openbsd_386.go | 3 ++- unix/zsysctl_openbsd_amd64.go | 1 + unix/zsysctl_openbsd_arm.go | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/unix/zsysctl_openbsd_386.go b/unix/zsysctl_openbsd_386.go index 37dcc74c..102f1ab4 100644 --- a/unix/zsysctl_openbsd_386.go +++ b/unix/zsysctl_openbsd_386.go @@ -1,4 +1,4 @@ -// mksysctl_openbsd.pl +// go run mksysctl_openbsd.go // Code generated by the command above; DO NOT EDIT. // +build 386,openbsd @@ -30,6 +30,7 @@ var sysctlMib = []mibentry{ {"hw.model", []_C_int{6, 2}}, {"hw.ncpu", []_C_int{6, 3}}, {"hw.ncpufound", []_C_int{6, 21}}, + {"hw.ncpuonline", []_C_int{6, 25}}, {"hw.pagesize", []_C_int{6, 7}}, {"hw.physmem", []_C_int{6, 19}}, {"hw.product", []_C_int{6, 15}}, diff --git a/unix/zsysctl_openbsd_amd64.go b/unix/zsysctl_openbsd_amd64.go index fe6caa6e..4866fced 100644 --- a/unix/zsysctl_openbsd_amd64.go +++ b/unix/zsysctl_openbsd_amd64.go @@ -31,6 +31,7 @@ var sysctlMib = []mibentry{ {"hw.model", []_C_int{6, 2}}, {"hw.ncpu", []_C_int{6, 3}}, {"hw.ncpufound", []_C_int{6, 21}}, + {"hw.ncpuonline", []_C_int{6, 25}}, {"hw.pagesize", []_C_int{6, 7}}, {"hw.perfpolicy", []_C_int{6, 23}}, {"hw.physmem", []_C_int{6, 19}}, diff --git a/unix/zsysctl_openbsd_arm.go b/unix/zsysctl_openbsd_arm.go index 6eb8c0b0..d3801eb2 100644 --- a/unix/zsysctl_openbsd_arm.go +++ b/unix/zsysctl_openbsd_arm.go @@ -30,6 +30,7 @@ var sysctlMib = []mibentry{ {"hw.model", []_C_int{6, 2}}, {"hw.ncpu", []_C_int{6, 3}}, {"hw.ncpufound", []_C_int{6, 21}}, + {"hw.ncpuonline", []_C_int{6, 25}}, {"hw.pagesize", []_C_int{6, 7}}, {"hw.physmem", []_C_int{6, 19}}, {"hw.product", []_C_int{6, 15}},