mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
9b65f16355
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
24 lines
520 B
Go
24 lines
520 B
Go
package fs
|
|
|
|
import (
|
|
"github.com/dotcloud/docker/pkg/cgroups"
|
|
)
|
|
|
|
type perfEventGroup struct {
|
|
}
|
|
|
|
func (s *perfEventGroup) Set(d *data) error {
|
|
// we just want to join this group even though we don't set anything
|
|
if _, err := d.join("perf_event"); err != nil && err != cgroups.ErrNotFound {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (s *perfEventGroup) Remove(d *data) error {
|
|
return removePath(d.path("perf_event"))
|
|
}
|
|
|
|
func (s *perfEventGroup) Stats(d *data) (map[string]float64, error) {
|
|
return nil, ErrNotSupportStat
|
|
}
|