mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-08-05 12:00:37 +00:00
This change updates four dependencies: - github.com/containerd/containerd/api from v1.11.0 to v1.11.1 - github.com/cyphar/filepath-securejoin from v0.6.1 to v0.7.0 - github.com/opencontainers/cgroups from v0.0.6 to v0.0.7 - github.com/opencontainers/selinux from v1.13.1 to v1.15.1 The new filepath-securejoin release requires a newer version of cyphar.com/go-pathrs, so that module also moves from v0.2.2 to v0.2.5. The file hack/unwanted-dependencies.json did not need any changes. Signed-off-by: Davanum Srinivas <davanum@gmail.com>
30 lines
620 B
Go
30 lines
620 B
Go
package fs
|
|
|
|
import (
|
|
"github.com/opencontainers/cgroups"
|
|
)
|
|
|
|
type PerfEventGroup struct{}
|
|
|
|
func (s *PerfEventGroup) Name() string {
|
|
return "perf_event"
|
|
}
|
|
|
|
// ID returns the controller ID for perf_event subsystem.
|
|
// Returns 0 as perf_event is not a cgroups.Controller.
|
|
func (s *PerfEventGroup) ID() cgroups.Controller {
|
|
return 0
|
|
}
|
|
|
|
func (s *PerfEventGroup) Apply(path string, _ *cgroups.Resources, pid int) error {
|
|
return apply(path, pid)
|
|
}
|
|
|
|
func (s *PerfEventGroup) Set(_ string, _ *cgroups.Resources) error {
|
|
return nil
|
|
}
|
|
|
|
func (s *PerfEventGroup) GetStats(path string, stats *cgroups.Stats) error {
|
|
return nil
|
|
}
|