mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
7acea2a243
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
21 lines
389 B
Go
21 lines
389 B
Go
package cgroups
|
|
|
|
import "path/filepath"
|
|
|
|
func NewPerfEvent(root string) *PerfEventController {
|
|
return &PerfEventController{
|
|
root: filepath.Join(root, string(PerfEvent)),
|
|
}
|
|
}
|
|
|
|
type PerfEventController struct {
|
|
root string
|
|
}
|
|
|
|
func (p *PerfEventController) Name() Name {
|
|
return PerfEvent
|
|
}
|
|
|
|
func (p *PerfEventController) Path(path string) string {
|
|
return filepath.Join(p.root, path)
|
|
}
|