Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
return api.FromOCILinuxIOPriority(c.spec.Process.IOPriority)
}
+func (c *criContainer) GetScheduler() *api.LinuxScheduler {
+ if c.spec.Process == nil || c.spec.Process.Scheduler == nil {
+ return nil
+ }
+ return api.FromOCILinuxScheduler(c.spec.Process.Scheduler)
+}
+
func (c *criContainer) GetPid() uint32 {
return c.pid
}
GetOOMScoreAdj() *int
GetCgroupsPath() string
GetIOPriority() *nri.LinuxIOPriority
+ GetScheduler() *nri.LinuxScheduler
}
func commonContainerToNRI(ctr Container) *nri.Container {
OomScoreAdj: nri.Int(lnxCtr.GetOOMScoreAdj()),
CgroupsPath: lnxCtr.GetCgroupsPath(),
IoPriority: lnxCtr.GetIOPriority(),
+ Scheduler: lnxCtr.GetScheduler(),
}
return nriCtr
}