From ed9aed1c9d7dd340006f22b96e1ee4476582b874 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 17 Aug 2023 15:44:20 -0400 Subject: internal/sysinfo: implement CPUName on bsd systems sysctl machdep.cpu.brand_string seems to be standard across the BSDs. There does not seem to be a standard way to get the CPU frequency. Change-Id: Ic986d6c81dd54e1b84544317f2a53ce16801319b Reviewed-on: https://go-review.googlesource.com/c/go/+/520636 Auto-Submit: Russ Cox TryBot-Bypass: Russ Cox Reviewed-by: Ian Lance Taylor Reviewed-by: Michael Knyszek --- src/internal/sysinfo/export_test.go | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/internal/sysinfo/export_test.go (limited to 'src/internal/sysinfo/export_test.go') diff --git a/src/internal/sysinfo/export_test.go b/src/internal/sysinfo/export_test.go new file mode 100644 index 00000000000..1c668d9c795 --- /dev/null +++ b/src/internal/sysinfo/export_test.go @@ -0,0 +1,7 @@ +// Copyright 2023 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package sysinfo + +var XosCpuInfoName = osCpuInfoName -- cgit v1.2.3-54-g00ecf