c7135d73d3
Remove old Stats interface in libcontainers cgroups package. Changed Stats to use unit64 instead of int64 to prevent integer overflow issues. Updated unit tests. Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
24 lines
517 B
Go
24 lines
517 B
Go
package fs
|
|
|
|
import (
|
|
"github.com/dotcloud/docker/pkg/libcontainer/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) GetStats(d *data, stats *cgroups.Stats) error {
|
|
return nil
|
|
}
|