mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 14:13:58 +08:00
46243fcea1
libct/cgroups/fs: rework Apply()
28 lines
524 B
Go
28 lines
524 B
Go
// +build linux
|
|
|
|
package fs
|
|
|
|
import (
|
|
"github.com/opencontainers/runc/libcontainer/cgroups"
|
|
"github.com/opencontainers/runc/libcontainer/configs"
|
|
)
|
|
|
|
type PerfEventGroup struct {
|
|
}
|
|
|
|
func (s *PerfEventGroup) Name() string {
|
|
return "perf_event"
|
|
}
|
|
|
|
func (s *PerfEventGroup) Apply(path string, d *cgroupData) error {
|
|
return join(path, d.pid)
|
|
}
|
|
|
|
func (s *PerfEventGroup) Set(path string, cgroup *configs.Cgroup) error {
|
|
return nil
|
|
}
|
|
|
|
func (s *PerfEventGroup) GetStats(path string, stats *cgroups.Stats) error {
|
|
return nil
|
|
}
|