2014-04-19 04:55:06 +00:00
|
|
|
package fs
|
|
|
|
|
|
|
|
import (
|
2014-05-14 22:21:44 +00:00
|
|
|
"github.com/dotcloud/docker/pkg/libcontainer/cgroups"
|
2014-04-19 04:55:06 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
2014-04-19 05:17:31 +00:00
|
|
|
|
|
|
|
func (s *perfEventGroup) Remove(d *data) error {
|
|
|
|
return removePath(d.path("perf_event"))
|
|
|
|
}
|
2014-04-20 19:02:39 +00:00
|
|
|
|
|
|
|
func (s *perfEventGroup) Stats(d *data) (map[string]float64, error) {
|
|
|
|
return nil, ErrNotSupportStat
|
|
|
|
}
|