mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
11fb94965c
To my surprise, those are not used anywhere in the code. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
32 lines
660 B
Go
32 lines
660 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(d *cgroupData) error {
|
|
// we just want to join this group even though we don't set anything
|
|
if _, err := d.join("perf_event"); err != nil && !cgroups.IsNotFound(err) {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (s *PerfEventGroup) Set(path string, cgroup *configs.Cgroup) error {
|
|
return nil
|
|
}
|
|
|
|
func (s *PerfEventGroup) GetStats(path string, stats *cgroups.Stats) error {
|
|
return nil
|
|
}
|