mirror of
https://github.com/golang/go.git
synced 2025-10-29 15:54:14 +00:00
internal/runtime/cgroup: CPU cgroup limit discovery
For #73193. Change-Id: I6a6a636ca9fa9cba429cf053468c56c2939cb1ac Reviewed-on: https://go-review.googlesource.com/c/go/+/668638 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Knyszek <mknyszek@google.com>
This commit is contained in:
parent
06450a82b0
commit
f12c66fbed
5 changed files with 1220 additions and 0 deletions
15
src/internal/runtime/cgroup/export_linux_test.go
Normal file
15
src/internal/runtime/cgroup/export_linux_test.go
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2025 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 cgroup
|
||||
|
||||
var ContainsCPU = containsCPU
|
||||
|
||||
var ParseV1Number = parseV1Number
|
||||
var ParseV2Limit = parseV2Limit
|
||||
|
||||
var ParseCPURelativePath = parseCPURelativePath
|
||||
var ParseCPUMount = parseCPUMount
|
||||
|
||||
var UnescapePath = unescapePath
|
||||
Loading…
Add table
Add a link
Reference in a new issue