SYMBOL INDEX (3268 symbols across 212 files) FILE: cmd/cri-resmgr-agent-probe/main.go function main (line 34) | func main() { FILE: cmd/cri-resmgr-agent/main.go function main (line 27) | func main() { FILE: cmd/cri-resmgr-webhook/handlers.go type jsonPatch (line 36) | type jsonPatch struct type podResourceRequirements (line 42) | type podResourceRequirements struct function init (line 51) | func init() { function errResponse (line 57) | func errResponse(err error) *admissionv1.AdmissionResponse { function stringify (line 66) | func stringify(r interface{}) string { function handle (line 75) | func handle(w http.ResponseWriter, r *http.Request) { function mutatePodObject (line 131) | func mutatePodObject(rawObj *runtime.RawExtension) *admissionv1.Admissio... function patchResourceAnnotation (line 166) | func patchResourceAnnotation(pod *corev1.Pod) (jsonPatch, error) { FILE: cmd/cri-resmgr-webhook/main.go function parseArgs (line 25) | func parseArgs() args { function main (line 37) | func main() { FILE: cmd/cri-resmgr-webhook/webhook.go type args (line 26) | type args struct function loadTLS (line 33) | func loadTLS(certFile, keyFile string) *tls.Config { function Run (line 44) | func Run(args args) error { FILE: cmd/cri-resmgr/main.go function main (line 38) | func main() { FILE: demo/lib/numactlH2numajson.py function error (line 17) | def error(msg, exit_status=1): function round_size (line 22) | def round_size(size, size_unit, non_zero_numbers=3): function add_dists_to_numalist (line 42) | def add_dists_to_numalist(numalist, dists): function numactlH2numajson (line 145) | def numactlH2numajson(input_line_iter): function self_test (line 193) | def self_test(): FILE: demo/lib/topology.py function error (line 59) | def error(msg, exit_status=1): function warning (line 66) | def warning(msg): function output_tree (line 70) | def output_tree(tree): function add_tree (line 78) | def add_tree(root, branch, value_dict): function _str_node (line 95) | def _str_node(root, lines, branch): function str_tree (line 124) | def str_tree(root): function bash_output (line 145) | def bash_output(cmd): function get_local_topology_dump (line 151) | def get_local_topology_dump(): function get_local_res_allowed_dump (line 155) | def get_local_res_allowed_dump(processes): function dump_to_topology (line 159) | def dump_to_topology(dump, show_mem=True): function dump_to_res_allowed (line 262) | def dump_to_res_allowed(res_allowed_dump): function get_topology (line 283) | def get_topology(show_mem=True): function get_res_allowed (line 294) | def get_res_allowed(processes): function report_res (line 305) | def report_res(show_mem=True): function report_res_allowed (line 310) | def report_res_allowed(processes, show_mem=True): FILE: demo/lib/topology2qemuopts.py function error (line 88) | def error(msg, exitstatus=1): function siadd (line 93) | def siadd(s1, s2): function sisub (line 98) | def sisub(s1, s2): function validate (line 103) | def validate(numalist): function dists (line 140) | def dists(numalist): function qemuopts (line 209) | def qemuopts(numalist): function main (line 352) | def main(input_file): FILE: docs/conf.py function module_version (line 102) | def module_version(module, version): function gomod_versions (line 108) | def gomod_versions(modules): function setup (line 151) | def setup(app): function isHTTPLink (line 168) | def isHTTPLink(uri): function isMDFileLink (line 171) | def isMDFileLink(uri): function isRSTFileLink (line 174) | def isRSTFileLink(uri): function fixRSTLinkInMD (line 178) | def fixRSTLinkInMD(app, env, node, contnode): function normalizePath (line 208) | def normalizePath(docPath,uriPath): function fixLocalMDAnchors (line 224) | def fixLocalMDAnchors(app, doctree, docname): FILE: docs/releases/conf.py function setup (line 72) | def setup(app): function ignoreMissingRefs (line 75) | def ignoreMissingRefs(app, env, node, contnode): FILE: elf/avx512.c type bpf_map_def (line 13) | typedef struct bpf_map_def { type bpf_map_def (line 38) | struct bpf_map_def type bpf_map_def (line 46) | struct bpf_map_def type bpf_map_def (line 54) | struct bpf_map_def type bpf_map_def (line 62) | struct bpf_map_def function tracepoint__sched_switch (line 71) | int tracepoint__sched_switch(void *args) type x86_fpu_args (line 94) | struct x86_fpu_args { function tracepoint__x86_fpu_regs_deactivated (line 103) | int tracepoint__x86_fpu_regs_deactivated(struct x86_fpu_args *args) FILE: pkg/agent/agent.go type configInterface (line 30) | type configInterface interface type resmgrConfig (line 36) | type resmgrConfig type resmgrAdjustment (line 39) | type resmgrAdjustment type resmgrStatus (line 42) | type resmgrStatus struct type ResourceManagerAgent (line 48) | type ResourceManagerAgent interface type agent (line 53) | type agent struct method Run (line 90) | func (a *agent) Run() error { method getConfig (line 126) | func (a *agent) getConfig() resmgrConfig { method getError (line 133) | func (a *agent) getError() error { function NewResourceManagerAgent (line 63) | func NewResourceManagerAgent() (ResourceManagerAgent, error) { function agentError (line 140) | func agentError(format string, args ...interface{}) error { FILE: pkg/agent/api/v1/api.go method MarshalJSON (line 26) | func (j *JsonPatch) MarshalJSON() ([]byte, error) { FILE: pkg/agent/api/v1/api.pb.go constant _ (line 33) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 35) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type GetNodeRequest (line 38) | type GetNodeRequest struct method Reset (line 44) | func (x *GetNodeRequest) Reset() { method String (line 53) | func (x *GetNodeRequest) String() string { method ProtoMessage (line 57) | func (*GetNodeRequest) ProtoMessage() {} method ProtoReflect (line 59) | func (x *GetNodeRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 72) | func (*GetNodeRequest) Descriptor() ([]byte, []int) { type GetNodeReply (line 76) | type GetNodeReply struct method Reset (line 84) | func (x *GetNodeReply) Reset() { method String (line 93) | func (x *GetNodeReply) String() string { method ProtoMessage (line 97) | func (*GetNodeReply) ProtoMessage() {} method ProtoReflect (line 99) | func (x *GetNodeReply) ProtoReflect() protoreflect.Message { method Descriptor (line 112) | func (*GetNodeReply) Descriptor() ([]byte, []int) { method GetNode (line 116) | func (x *GetNodeReply) GetNode() string { type JsonPatch (line 124) | type JsonPatch struct method Reset (line 134) | func (x *JsonPatch) Reset() { method String (line 143) | func (x *JsonPatch) String() string { method ProtoMessage (line 147) | func (*JsonPatch) ProtoMessage() {} method ProtoReflect (line 149) | func (x *JsonPatch) ProtoReflect() protoreflect.Message { method Descriptor (line 162) | func (*JsonPatch) Descriptor() ([]byte, []int) { method GetOp (line 166) | func (x *JsonPatch) GetOp() string { method GetPath (line 173) | func (x *JsonPatch) GetPath() string { method GetValue (line 180) | func (x *JsonPatch) GetValue() string { type PatchNodeRequest (line 187) | type PatchNodeRequest struct method Reset (line 196) | func (x *PatchNodeRequest) Reset() { method String (line 205) | func (x *PatchNodeRequest) String() string { method ProtoMessage (line 209) | func (*PatchNodeRequest) ProtoMessage() {} method ProtoReflect (line 211) | func (x *PatchNodeRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 224) | func (*PatchNodeRequest) Descriptor() ([]byte, []int) { method GetPatches (line 228) | func (x *PatchNodeRequest) GetPatches() []*JsonPatch { type PatchNodeReply (line 235) | type PatchNodeReply struct method Reset (line 241) | func (x *PatchNodeReply) Reset() { method String (line 250) | func (x *PatchNodeReply) String() string { method ProtoMessage (line 254) | func (*PatchNodeReply) ProtoMessage() {} method ProtoReflect (line 256) | func (x *PatchNodeReply) ProtoReflect() protoreflect.Message { method Descriptor (line 269) | func (*PatchNodeReply) Descriptor() ([]byte, []int) { type UpdateNodeCapacityRequest (line 273) | type UpdateNodeCapacityRequest struct method Reset (line 282) | func (x *UpdateNodeCapacityRequest) Reset() { method String (line 291) | func (x *UpdateNodeCapacityRequest) String() string { method ProtoMessage (line 295) | func (*UpdateNodeCapacityRequest) ProtoMessage() {} method ProtoReflect (line 297) | func (x *UpdateNodeCapacityRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 310) | func (*UpdateNodeCapacityRequest) Descriptor() ([]byte, []int) { method GetCapacities (line 314) | func (x *UpdateNodeCapacityRequest) GetCapacities() map[string]string { type UpdateNodeCapacityReply (line 321) | type UpdateNodeCapacityReply struct method Reset (line 327) | func (x *UpdateNodeCapacityReply) Reset() { method String (line 336) | func (x *UpdateNodeCapacityReply) String() string { method ProtoMessage (line 340) | func (*UpdateNodeCapacityReply) ProtoMessage() {} method ProtoReflect (line 342) | func (x *UpdateNodeCapacityReply) ProtoReflect() protoreflect.Message { method Descriptor (line 355) | func (*UpdateNodeCapacityReply) Descriptor() ([]byte, []int) { type HealthCheckRequest (line 359) | type HealthCheckRequest struct method Reset (line 367) | func (x *HealthCheckRequest) Reset() { method String (line 376) | func (x *HealthCheckRequest) String() string { method ProtoMessage (line 380) | func (*HealthCheckRequest) ProtoMessage() {} method ProtoReflect (line 382) | func (x *HealthCheckRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 395) | func (*HealthCheckRequest) Descriptor() ([]byte, []int) { method GetQuery (line 399) | func (x *HealthCheckRequest) GetQuery() string { type HealthCheckReply (line 406) | type HealthCheckReply struct method Reset (line 414) | func (x *HealthCheckReply) Reset() { method String (line 423) | func (x *HealthCheckReply) String() string { method ProtoMessage (line 427) | func (*HealthCheckReply) ProtoMessage() {} method ProtoReflect (line 429) | func (x *HealthCheckReply) ProtoReflect() protoreflect.Message { method Descriptor (line 442) | func (*HealthCheckReply) Descriptor() ([]byte, []int) { method GetError (line 446) | func (x *HealthCheckReply) GetError() string { function file_pkg_agent_api_v1_api_proto_rawDescGZIP (line 514) | func file_pkg_agent_api_v1_api_proto_rawDescGZIP() []byte { function init (line 552) | func init() { file_pkg_agent_api_v1_api_proto_init() } function file_pkg_agent_api_v1_api_proto_init (line 553) | func file_pkg_agent_api_v1_api_proto_init() { FILE: pkg/agent/api/v1/api_grpc.pb.go constant _ (line 19) | _ = grpc.SupportPackageIsVersion7 type AgentClient (line 24) | type AgentClient interface type agentClient (line 31) | type agentClient struct method GetNode (line 39) | func (c *agentClient) GetNode(ctx context.Context, in *GetNodeRequest,... method PatchNode (line 48) | func (c *agentClient) PatchNode(ctx context.Context, in *PatchNodeRequ... method UpdateNodeCapacity (line 57) | func (c *agentClient) UpdateNodeCapacity(ctx context.Context, in *Upda... method HealthCheck (line 66) | func (c *agentClient) HealthCheck(ctx context.Context, in *HealthCheck... function NewAgentClient (line 35) | func NewAgentClient(cc grpc.ClientConnInterface) AgentClient { type AgentServer (line 78) | type AgentServer interface type UnimplementedAgentServer (line 87) | type UnimplementedAgentServer struct method GetNode (line 90) | func (UnimplementedAgentServer) GetNode(context.Context, *GetNodeReque... method PatchNode (line 93) | func (UnimplementedAgentServer) PatchNode(context.Context, *PatchNodeR... method UpdateNodeCapacity (line 96) | func (UnimplementedAgentServer) UpdateNodeCapacity(context.Context, *U... method HealthCheck (line 99) | func (UnimplementedAgentServer) HealthCheck(context.Context, *HealthCh... method mustEmbedUnimplementedAgentServer (line 102) | func (UnimplementedAgentServer) mustEmbedUnimplementedAgentServer() {} type UnsafeAgentServer (line 107) | type UnsafeAgentServer interface function RegisterAgentServer (line 111) | func RegisterAgentServer(s grpc.ServiceRegistrar, srv AgentServer) { function _Agent_GetNode_Handler (line 115) | func _Agent_GetNode_Handler(srv interface{}, ctx context.Context, dec fu... function _Agent_PatchNode_Handler (line 133) | func _Agent_PatchNode_Handler(srv interface{}, ctx context.Context, dec ... function _Agent_UpdateNodeCapacity_Handler (line 151) | func _Agent_UpdateNodeCapacity_Handler(srv interface{}, ctx context.Cont... function _Agent_HealthCheck_Handler (line 169) | func _Agent_HealthCheck_Handler(srv interface{}, ctx context.Context, de... FILE: pkg/agent/api/v1/constants.go constant ConfigStatus (line 21) | ConfigStatus = "config-status" FILE: pkg/agent/config-updater.go constant rateLimitTimeout (line 37) | rateLimitTimeout = 2 * time.Second constant setConfigTimeout (line 39) | setConfigTimeout = 5 * time.Second constant retryTimeout (line 41) | retryTimeout = 5 * time.Second type configUpdater (line 45) | type configUpdater interface type updater (line 55) | type updater struct method Start (line 81) | func (u *updater) Start() error { method Stop (line 140) | func (u *updater) Stop() { method UpdateConfig (line 143) | func (u *updater) UpdateConfig(c *resmgrConfig) { method UpdateAdjustment (line 147) | func (u *updater) UpdateAdjustment(c *resmgrAdjustment) { method StatusChan (line 151) | func (u *updater) StatusChan() chan *resmgrStatus { method setError (line 155) | func (u *updater) setError(err error) error { method GetError (line 162) | func (u *updater) GetError() error { method setConfig (line 168) | func (u *updater) setConfig(cfg *resmgrConfig) (error, error) { method setAdjustment (line 187) | func (u *updater) setAdjustment(adjust *resmgrAdjustment) (map[string]... function newConfigUpdater (line 65) | func newConfigUpdater() (configUpdater, error) { function newResmgrCli (line 216) | func newResmgrCli(socket string) (resmgr_v1.ConfigClient, error) { FILE: pkg/agent/flags.go type options (line 25) | type options struct function init (line 36) | func init() { FILE: pkg/agent/kubernetes.go type namespace (line 40) | type namespace method getK8sClient (line 46) | func (a *agent) getK8sClient(kubeconfig string) (*k8sclient.Clientset, *... function getNodeObject (line 74) | func getNodeObject(cli *k8sclient.Clientset) (*core_v1.Node, error) { function patchNode (line 83) | func patchNode(cli *k8sclient.Clientset, patchList []*agent_v1.JsonPatch... function patchNodeStatus (line 100) | func patchNodeStatus(cli *k8sclient.Clientset, fields map[string]string)... function patchAdjustmentStatus (line 114) | func patchAdjustmentStatus(_ *resmgr.CriresmgrV1alpha1Client, _ *resmgrS... type watch (line 119) | type watch struct method Name (line 223) | func (w *watch) Name() string { method Query (line 235) | func (w *watch) Query() (interface{}, error) { method Start (line 243) | func (w *watch) Start(name string) { method Stop (line 296) | func (w *watch) Stop() { method ResultChan (line 304) | func (w *watch) ResultChan() <-chan k8swatch.Event { type openFn (line 131) | type openFn type queryFn (line 134) | type queryFn constant SyntheticMissing (line 138) | SyntheticMissing = k8swatch.EventType("SyntheticMissing") function newWatch (line 141) | func newWatch(parent *watcher, kind string, ns namespace, open openFn, q... function newNodeWatch (line 154) | func newNodeWatch(parent *watcher) *watch { function newConfigMapWatch (line 177) | func newConfigMapWatch(parent *watcher, name string, ns namespace) *watch { function newAdjustmentCRDWatch (line 200) | func newAdjustmentCRDWatch(parent *watcher, ns namespace) *watch { function init (line 308) | func init() { FILE: pkg/agent/server.go type agentServer (line 38) | type agentServer interface type server (line 44) | type server struct method Start (line 63) | func (s *server) Start(socket string) error { method Stop (line 101) | func (s *server) Stop() { function newAgentServer (line 52) | func newAgentServer(cli *k8sclient.Clientset, cfg configInterface) (agen... type grpcServer (line 106) | type grpcServer struct method GetNode (line 114) | func (g *grpcServer) GetNode(_ context.Context, req *v1.GetNodeRequest... method PatchNode (line 132) | func (g *grpcServer) PatchNode(_ context.Context, req *v1.PatchNodeReq... method UpdateNodeCapacity (line 148) | func (g *grpcServer) UpdateNodeCapacity(_ context.Context, req *v1.Upd... method HealthCheck (line 175) | func (g *grpcServer) HealthCheck(_ context.Context, req *v1.HealthChec... function isNativeResource (line 189) | func isNativeResource(name string) bool { FILE: pkg/agent/watcher.go type cachedConfig (line 36) | type cachedConfig struct method getConfig (line 383) | func (c *cachedConfig) getConfig() (resmgrConfig, string) { method getAdjustment (line 413) | func (c *cachedConfig) getAdjustment() (resmgrAdjustment, resmgrAdjust... method setNode (line 430) | func (c *cachedConfig) setNode(data *map[string]string) bool { method setGroup (line 439) | func (c *cachedConfig) setGroup(group string, data *map[string]string)... method setAdjustment (line 449) | func (c *cachedConfig) setAdjustment(adjust *resmgr.Adjustment) bool { method deleteAdjustment (line 499) | func (c *cachedConfig) deleteAdjustment(o *resmgr.Adjustment) bool { method getAdjustmentNames (line 514) | func (c *cachedConfig) getAdjustmentNames() ([]string, []string) { method setStatus (line 530) | func (c *cachedConfig) setStatus(status *resmgrStatus) { method getStatus (line 537) | func (c *cachedConfig) getStatus() *resmgrStatus { type k8sWatcher (line 47) | type k8sWatcher interface type watcher (line 63) | type watcher struct method Start (line 89) | func (w *watcher) Start() error { method Stop (line 102) | func (w *watcher) Stop() { method ConfigChan (line 111) | func (w *watcher) ConfigChan() <-chan resmgrConfig { method AdjustmentChan (line 116) | func (w *watcher) AdjustmentChan() <-chan resmgrAdjustment { method GetConfig (line 121) | func (w *watcher) GetConfig() resmgrConfig { method UpdateStatus (line 128) | func (w *watcher) UpdateStatus(status *resmgrStatus) error { method PatchAdjustmentStatus (line 134) | func (w *watcher) PatchAdjustmentStatus(status *resmgrStatus) error { method patchAdjustment (line 169) | func (w *watcher) patchAdjustment(adjust *resmgr.Adjustment, inscope b... method sendConfig (line 243) | func (w *watcher) sendConfig() { method sendAdjustment (line 250) | func (w *watcher) sendAdjustment() { method watch (line 255) | func (w *watcher) watch() error { function newK8sWatcher (line 74) | func newK8sWatcher(k8sCli *k8sclient.Clientset, resmgrCli *resmgrcli.Cri... function groupMapName (line 367) | func groupMapName(group string) string { function newCachedConfig (line 375) | func newCachedConfig() cachedConfig { FILE: pkg/apis/resmgr/expression.go type Evaluable (line 27) | type Evaluable interface type Expression (line 32) | type Expression struct method Validate (line 81) | func (e *Expression) Validate() error { method Evaluate (line 111) | func (e *Expression) Evaluate(subject Evaluable) bool { method KeyValue (line 170) | func (e *Expression) KeyValue(subject Evaluable) (string, bool) { method String (line 285) | func (e *Expression) String() string { method DeepCopy (line 290) | func (e *Expression) DeepCopy() *Expression { method DeepCopyInto (line 297) | func (e *Expression) DeepCopyInto(out *Expression) { constant KeyPod (line 39) | KeyPod = "pod" constant KeyID (line 40) | KeyID = "id" constant KeyUID (line 41) | KeyUID = "uid" constant KeyName (line 42) | KeyName = "name" constant KeyNamespace (line 43) | KeyNamespace = "namespace" constant KeyQOSClass (line 44) | KeyQOSClass = "qosclass" constant KeyLabels (line 45) | KeyLabels = "labels" constant KeyTags (line 46) | KeyTags = "tags" type Operator (line 50) | type Operator constant Equals (line 54) | Equals Operator = "Equals" constant NotEqual (line 56) | NotEqual Operator = "NotEqual" constant In (line 58) | In Operator = "In" constant NotIn (line 60) | NotIn Operator = "NotIn" constant Exists (line 62) | Exists Operator = "Exists" constant NotExist (line 64) | NotExist Operator = "NotExist" constant AlwaysTrue (line 66) | AlwaysTrue Operator = "AlwaysTrue" constant Matches (line 68) | Matches Operator = "Matches" constant MatchesNot (line 70) | MatchesNot Operator = "MatchesNot" constant MatchesAny (line 72) | MatchesAny Operator = "MatchesAny" constant MatchesNone (line 74) | MatchesNone Operator = "MatchesNone" function splitKeys (line 194) | func splitKeys(keys string) ([]string, string) { function validSeparator (line 217) | func validSeparator(b byte) bool { function ResolveRef (line 232) | func ResolveRef(subject Evaluable, spec string) (string, bool, error) { function exprError (line 305) | func exprError(format string, args ...interface{}) error { FILE: pkg/apis/resmgr/expression_test.go type evaluable (line 25) | type evaluable struct method Eval (line 45) | func (e *evaluable) Eval(key string) interface{} { method String (line 67) | func (e *evaluable) String() string { function newEvaluable (line 34) | func newEvaluable(name, ns, qos string, labels, tags map[string]string, ... function TestResolveRefAndKeyValue (line 85) | func TestResolveRefAndKeyValue(t *testing.T) { function TestSimpleOperators (line 176) | func TestSimpleOperators(t *testing.T) { function TestMatching (line 286) | func TestMatching(t *testing.T) { FILE: pkg/apis/resmgr/generated/clientset/versioned/clientset.go type Interface (line 28) | type Interface interface type Clientset (line 35) | type Clientset struct method CriresmgrV1alpha1 (line 41) | func (c *Clientset) CriresmgrV1alpha1() criresmgrv1alpha1.CriresmgrV1a... method Discovery (line 46) | func (c *Clientset) Discovery() discovery.DiscoveryInterface { function NewForConfig (line 56) | func NewForConfig(c *rest.Config) (*Clientset, error) { function NewForConfigOrDie (line 80) | func NewForConfigOrDie(c *rest.Config) *Clientset { function New (line 89) | func New(c rest.Interface) *Clientset { FILE: pkg/apis/resmgr/generated/clientset/versioned/fake/clientset_generated.go function NewSimpleClientset (line 34) | func NewSimpleClientset(objects ...runtime.Object) *Clientset { type Clientset (line 61) | type Clientset struct method Discovery (line 67) | func (c *Clientset) Discovery() discovery.DiscoveryInterface { method Tracker (line 71) | func (c *Clientset) Tracker() testing.ObjectTracker { method CriresmgrV1alpha1 (line 78) | func (c *Clientset) CriresmgrV1alpha1() criresmgrv1alpha1.CriresmgrV1a... FILE: pkg/apis/resmgr/generated/clientset/versioned/fake/register.go function init (line 51) | func init() { FILE: pkg/apis/resmgr/generated/clientset/versioned/scheme/register.go function init (line 51) | func init() { FILE: pkg/apis/resmgr/generated/clientset/versioned/typed/resmgr/v1alpha1/adjustment.go type AdjustmentsGetter (line 33) | type AdjustmentsGetter interface type AdjustmentInterface (line 38) | type AdjustmentInterface interface type adjustments (line 52) | type adjustments struct method Get (line 66) | func (c *adjustments) Get(name string, options v1.GetOptions) (result ... method List (line 79) | func (c *adjustments) List(opts v1.ListOptions) (result *v1alpha1.Adju... method Watch (line 96) | func (c *adjustments) Watch(opts v1.ListOptions) (watch.Interface, err... method Create (line 111) | func (c *adjustments) Create(adjustment *v1alpha1.Adjustment) (result ... method Update (line 123) | func (c *adjustments) Update(adjustment *v1alpha1.Adjustment) (result ... method UpdateStatus (line 138) | func (c *adjustments) UpdateStatus(adjustment *v1alpha1.Adjustment) (r... method Delete (line 152) | func (c *adjustments) Delete(name string, options *v1.DeleteOptions) e... method DeleteCollection (line 163) | func (c *adjustments) DeleteCollection(options *v1.DeleteOptions, list... method Patch (line 179) | func (c *adjustments) Patch(name string, pt types.PatchType, data []by... function newAdjustments (line 58) | func newAdjustments(c *CriresmgrV1alpha1Client, namespace string) *adjus... FILE: pkg/apis/resmgr/generated/clientset/versioned/typed/resmgr/v1alpha1/fake/fake_adjustment.go type FakeAdjustments (line 30) | type FakeAdjustments struct method Get (line 40) | func (c *FakeAdjustments) Get(name string, options v1.GetOptions) (res... method List (line 51) | func (c *FakeAdjustments) List(opts v1.ListOptions) (result *v1alpha1.... method Watch (line 73) | func (c *FakeAdjustments) Watch(opts v1.ListOptions) (watch.Interface,... method Create (line 80) | func (c *FakeAdjustments) Create(adjustment *v1alpha1.Adjustment) (res... method Update (line 91) | func (c *FakeAdjustments) Update(adjustment *v1alpha1.Adjustment) (res... method UpdateStatus (line 103) | func (c *FakeAdjustments) UpdateStatus(adjustment *v1alpha1.Adjustment... method Delete (line 114) | func (c *FakeAdjustments) Delete(name string, options *v1.DeleteOption... method DeleteCollection (line 122) | func (c *FakeAdjustments) DeleteCollection(options *v1.DeleteOptions, ... method Patch (line 130) | func (c *FakeAdjustments) Patch(name string, pt types.PatchType, data ... FILE: pkg/apis/resmgr/generated/clientset/versioned/typed/resmgr/v1alpha1/fake/fake_resmgr_client.go type FakeCriresmgrV1alpha1 (line 25) | type FakeCriresmgrV1alpha1 struct method Adjustments (line 29) | func (c *FakeCriresmgrV1alpha1) Adjustments(namespace string) v1alpha1... method RESTClient (line 35) | func (c *FakeCriresmgrV1alpha1) RESTClient() rest.Interface { FILE: pkg/apis/resmgr/generated/clientset/versioned/typed/resmgr/v1alpha1/generated_expansion.go type AdjustmentExpansion (line 19) | type AdjustmentExpansion interface FILE: pkg/apis/resmgr/generated/clientset/versioned/typed/resmgr/v1alpha1/resmgr_client.go type CriresmgrV1alpha1Interface (line 25) | type CriresmgrV1alpha1Interface interface type CriresmgrV1alpha1Client (line 31) | type CriresmgrV1alpha1Client struct method Adjustments (line 35) | func (c *CriresmgrV1alpha1Client) Adjustments(namespace string) Adjust... method RESTClient (line 82) | func (c *CriresmgrV1alpha1Client) RESTClient() rest.Interface { function NewForConfig (line 40) | func NewForConfig(c *rest.Config) (*CriresmgrV1alpha1Client, error) { function NewForConfigOrDie (line 54) | func NewForConfigOrDie(c *rest.Config) *CriresmgrV1alpha1Client { function New (line 63) | func New(c rest.Interface) *CriresmgrV1alpha1Client { function setConfigDefaults (line 67) | func setConfigDefaults(config *rest.Config) error { FILE: pkg/apis/resmgr/generated/informers/externalversions/factory.go type SharedInformerOption (line 34) | type SharedInformerOption type sharedInformerFactory (line 36) | type sharedInformerFactory struct method Start (line 109) | func (f *sharedInformerFactory) Start(stopCh <-chan struct{}) { method WaitForCacheSync (line 122) | func (f *sharedInformerFactory) WaitForCacheSync(stopCh <-chan struct{... method InformerFor (line 145) | func (f *sharedInformerFactory) InformerFor(obj runtime.Object, newFun... method Criresmgr (line 176) | func (f *sharedInformerFactory) Criresmgr() resmgr.Interface { function WithCustomResyncConfig (line 51) | func WithCustomResyncConfig(resyncConfig map[v1.Object]time.Duration) Sh... function WithTweakListOptions (line 61) | func WithTweakListOptions(tweakListOptions internalinterfaces.TweakListO... function WithNamespace (line 69) | func WithNamespace(namespace string) SharedInformerOption { function NewSharedInformerFactory (line 77) | func NewSharedInformerFactory(client versioned.Interface, defaultResync ... function NewFilteredSharedInformerFactory (line 85) | func NewFilteredSharedInformerFactory(client versioned.Interface, defaul... function NewSharedInformerFactoryWithOptions (line 90) | func NewSharedInformerFactoryWithOptions(client versioned.Interface, def... type SharedInformerFactory (line 168) | type SharedInformerFactory interface FILE: pkg/apis/resmgr/generated/informers/externalversions/generic.go type GenericInformer (line 29) | type GenericInformer interface type genericInformer (line 34) | type genericInformer struct method Informer (line 40) | func (f *genericInformer) Informer() cache.SharedIndexInformer { method Lister (line 45) | func (f *genericInformer) Lister() cache.GenericLister { method ForResource (line 51) | func (f *sharedInformerFactory) ForResource(resource schema.GroupVersion... FILE: pkg/apis/resmgr/generated/informers/externalversions/internalinterfaces/factory_interfaces.go type NewInformerFunc (line 29) | type NewInformerFunc type SharedInformerFactory (line 32) | type SharedInformerFactory interface type TweakListOptionsFunc (line 38) | type TweakListOptionsFunc FILE: pkg/apis/resmgr/generated/informers/externalversions/resmgr/interface.go type Interface (line 25) | type Interface interface type group (line 30) | type group struct method V1alpha1 (line 42) | func (g *group) V1alpha1() v1alpha1.Interface { function New (line 37) | func New(f internalinterfaces.SharedInformerFactory, namespace string, t... FILE: pkg/apis/resmgr/generated/informers/externalversions/resmgr/v1alpha1/adjustment.go type AdjustmentInformer (line 34) | type AdjustmentInformer interface type adjustmentInformer (line 39) | type adjustmentInformer struct method defaultInformer (line 77) | func (f *adjustmentInformer) defaultInformer(client versioned.Interfac... method Informer (line 81) | func (f *adjustmentInformer) Informer() cache.SharedIndexInformer { method Lister (line 85) | func (f *adjustmentInformer) Lister() v1alpha1.AdjustmentLister { function NewAdjustmentInformer (line 48) | func NewAdjustmentInformer(client versioned.Interface, namespace string,... function NewFilteredAdjustmentInformer (line 55) | func NewFilteredAdjustmentInformer(client versioned.Interface, namespace... FILE: pkg/apis/resmgr/generated/informers/externalversions/resmgr/v1alpha1/interface.go type Interface (line 24) | type Interface interface type version (line 29) | type version struct method Adjustments (line 41) | func (v *version) Adjustments() AdjustmentInformer { function New (line 36) | func New(f internalinterfaces.SharedInformerFactory, namespace string, t... FILE: pkg/apis/resmgr/generated/listers/resmgr/v1alpha1/adjustment.go type AdjustmentLister (line 27) | type AdjustmentLister interface type adjustmentLister (line 36) | type adjustmentLister struct method List (line 46) | func (s *adjustmentLister) List(selector labels.Selector) (ret []*v1al... method Adjustments (line 54) | func (s *adjustmentLister) Adjustments(namespace string) AdjustmentNam... function NewAdjustmentLister (line 41) | func NewAdjustmentLister(indexer cache.Indexer) AdjustmentLister { type AdjustmentNamespaceLister (line 59) | type AdjustmentNamespaceLister interface type adjustmentNamespaceLister (line 69) | type adjustmentNamespaceLister struct method List (line 75) | func (s adjustmentNamespaceLister) List(selector labels.Selector) (ret... method Get (line 83) | func (s adjustmentNamespaceLister) Get(name string) (*v1alpha1.Adjustm... FILE: pkg/apis/resmgr/generated/listers/resmgr/v1alpha1/expansion_generated.go type AdjustmentListerExpansion (line 21) | type AdjustmentListerExpansion interface type AdjustmentNamespaceListerExpansion (line 25) | type AdjustmentNamespaceListerExpansion interface FILE: pkg/apis/resmgr/v1alpha1/adjustment.go method HasSameVersion (line 26) | func (a *Adjustment) HasSameVersion(o *Adjustment) bool { method NodeScope (line 37) | func (spec *AdjustmentSpec) NodeScope(node string) []AdjustmentScope { method GetResourceRequirements (line 48) | func (spec *AdjustmentSpec) GetResourceRequirements() (corev1.ResourceRe... method GetRDTClass (line 56) | func (spec *AdjustmentSpec) GetRDTClass() (string, bool) { method GetBlockIOClass (line 64) | func (spec *AdjustmentSpec) GetBlockIOClass() (string, bool) { method IsNodeInScope (line 72) | func (spec *AdjustmentSpec) IsNodeInScope(node string) bool { method IsContainerInScope (line 85) | func (spec *AdjustmentSpec) IsContainerInScope(container resmgr.Evaluabl... method Compare (line 98) | func (spec *AdjustmentSpec) Compare(other *AdjustmentSpec) bool { method Verify (line 117) | func (spec *AdjustmentSpec) Verify() error { method compareResources (line 129) | func (spec *AdjustmentSpec) compareResources(other *AdjustmentSpec) bool { method verifyResources (line 171) | func (spec *AdjustmentSpec) verifyResources() error { method verifyToptierLimit (line 226) | func (spec *AdjustmentSpec) verifyToptierLimit() error { method IsNodeInScope (line 240) | func (scope *AdjustmentScope) IsNodeInScope(node string) bool { method IsContainerInScope (line 253) | func (scope *AdjustmentScope) IsContainerInScope(container resmgr.Evalua... function matches (line 266) | func matches(pattern, name string) bool { function CompareScopes (line 277) | func CompareScopes(scopes []AdjustmentScope, others []AdjustmentScope) b... method Compare (line 291) | func (scope *AdjustmentScope) Compare(other *AdjustmentScope) bool { method Compare (line 309) | func (c *Classes) Compare(o *Classes) bool { function apiError (line 326) | func apiError(format string, args ...interface{}) error { FILE: pkg/apis/resmgr/v1alpha1/register.go function Resource (line 36) | func Resource(resource string) schema.GroupResource { function addKnownTypes (line 41) | func addKnownTypes(scheme *runtime.Scheme) error { FILE: pkg/apis/resmgr/v1alpha1/types.go constant GroupName (line 26) | GroupName string = "criresmgr.intel.com" constant Version (line 27) | Version string = "v1alpha1" constant Kind (line 28) | Kind string = "Adjustment" constant Plural (line 29) | Plural string = "adjustments" constant Singular (line 30) | Singular string = "adjustment" constant Name (line 31) | Name string = Plural + "." + GroupName type Adjustment (line 38) | type Adjustment struct type AdjustmentSpec (line 47) | type AdjustmentSpec struct type AdjustmentStatus (line 55) | type AdjustmentStatus struct type AdjustmentNodeStatus (line 60) | type AdjustmentNodeStatus struct type AdjustmentScope (line 65) | type AdjustmentScope struct type Classes (line 71) | type Classes struct type AdjustmentList (line 79) | type AdjustmentList struct FILE: pkg/apis/resmgr/v1alpha1/zz_generated.deepcopy.go method DeepCopyInto (line 29) | func (in *Adjustment) DeepCopyInto(out *Adjustment) { method DeepCopy (line 39) | func (in *Adjustment) DeepCopy() *Adjustment { method DeepCopyObject (line 49) | func (in *Adjustment) DeepCopyObject() runtime.Object { method DeepCopyInto (line 57) | func (in *AdjustmentList) DeepCopyInto(out *AdjustmentList) { method DeepCopy (line 72) | func (in *AdjustmentList) DeepCopy() *AdjustmentList { method DeepCopyObject (line 82) | func (in *AdjustmentList) DeepCopyObject() runtime.Object { method DeepCopyInto (line 90) | func (in *AdjustmentNodeStatus) DeepCopyInto(out *AdjustmentNodeStatus) { method DeepCopy (line 103) | func (in *AdjustmentNodeStatus) DeepCopy() *AdjustmentNodeStatus { method DeepCopyInto (line 113) | func (in *AdjustmentScope) DeepCopyInto(out *AdjustmentScope) { method DeepCopy (line 134) | func (in *AdjustmentScope) DeepCopy() *AdjustmentScope { method DeepCopyInto (line 144) | func (in *AdjustmentSpec) DeepCopyInto(out *AdjustmentSpec) { method DeepCopy (line 172) | func (in *AdjustmentSpec) DeepCopy() *AdjustmentSpec { method DeepCopyInto (line 182) | func (in *AdjustmentStatus) DeepCopyInto(out *AdjustmentStatus) { method DeepCopy (line 195) | func (in *AdjustmentStatus) DeepCopy() *AdjustmentStatus { method DeepCopyInto (line 205) | func (in *Classes) DeepCopyInto(out *Classes) { method DeepCopy (line 221) | func (in *Classes) DeepCopy() *Classes { FILE: pkg/avx/collector.go constant LastCPUName (line 44) | LastCPUName = "last_cpu_avx_task_switches" constant AVXSwitchCountName (line 46) | AVXSwitchCountName = "avx_switch_count_per_cgroup" constant AllSwitchCountName (line 48) | AllSwitchCountName = "all_switch_count_per_cgroup" constant LastUpdateNs (line 50) | LastUpdateNs = "last_update_ns" constant kernelTracepointPath (line 52) | kernelTracepointPath = "/sys/kernel/debug/tracing/events" constant mapMemLockLimit (line 54) | mapMemLockLimit = 524288 constant lastCPUDesc (line 59) | lastCPUDesc = iota constant avxSwitchCountDesc (line 60) | avxSwitchCountDesc constant allSwitchCountDesc (line 61) | allSwitchCountDesc constant lastUpdateNsDesc (line 62) | lastUpdateNsDesc constant numDescriptors (line 63) | numDescriptors type collector (line 105) | type collector struct method Describe (line 229) | func (c *collector) Describe(ch chan<- *prometheus.Desc) { method Collect (line 245) | func (c collector) Collect(ch chan<- prometheus.Metric) { function enablePerfTracepoint (line 111) | func enablePerfTracepoint(prog *bpf.Program, tracepoint string) (int, er... function getKernelVersion (line 147) | func getKernelVersion() uint32 { function kernelVersionStr (line 173) | func kernelVersionStr(v uint32) string { function NewCollector (line 178) | func NewCollector() (prometheus.Collector, error) { function nowNanoseconds (line 237) | func nowNanoseconds() uint64 { function init (line 367) | func init() { FILE: pkg/avx/elfdump.go constant blocksPerRow (line 31) | blocksPerRow = 12 type Program (line 34) | type Program struct function main (line 38) | func main() { FILE: pkg/avx/register.go function init (line 24) | func init() { FILE: pkg/blockio/blockio.go constant ConfigModuleName (line 39) | ConfigModuleName = "blockio" constant sysfsBlockDeviceIOSchedulerPaths (line 43) | sysfsBlockDeviceIOSchedulerPaths = "/sys/block/*/queue/scheduler" type Class (line 50) | type Class struct type BlockDeviceInfo (line 60) | type BlockDeviceInfo struct function GetClasses (line 84) | func GetClasses() []*Class { function UpdateOciConfig (line 96) | func UpdateOciConfig(ignoreErrors bool) error { function SetContainerClass (line 124) | func SetContainerClass(c cache.Container, class string) error { function getCurrentIOSchedulers (line 146) | func getCurrentIOSchedulers() (map[string]string, error) { function devicesParametersToOci (line 181) | func devicesParametersToOci(dps []DevicesParameters, currentIOSchedulers... function parseAndValidateInt64 (line 244) | func parseAndValidateInt64(fieldName string, fieldContent string, type platformInterface (line 265) | type platformInterface interface type defaultPlatform (line 270) | type defaultPlatform struct method configurableBlockDevices (line 276) | func (dpm defaultPlatform) configurableBlockDevices(devWildcards []str... function blockioError (line 366) | func blockioError(format string, args ...interface{}) error { FILE: pkg/blockio/blockio_test.go function TestGetCurrentIOSchedulers (line 38) | func TestGetCurrentIOSchedulers(t *testing.T) { function TestConfigurableBlockDevices (line 50) | func TestConfigurableBlockDevices(t *testing.T) { function TestDevicesParametersToOci (line 138) | func TestDevicesParametersToOci(t *testing.T) { type mockPlatform (line 268) | type mockPlatform struct method configurableBlockDevices (line 271) | func (mpf mockPlatform) configurableBlockDevices(devWildcards []string... FILE: pkg/blockio/config.go type options (line 24) | type options struct type DevicesParameters (line 30) | type DevicesParameters struct function defaultOptions (line 43) | func defaultOptions() interface{} { function init (line 47) | func init() { FILE: pkg/cgroups/cgroupblkio.go constant blkioCgroupDir (line 29) | blkioCgroupDir = "/sys/fs/cgroup/blkio/" type OciBlockIOParameters (line 52) | type OciBlockIOParameters struct type OciDeviceWeight (line 63) | type OciDeviceWeight struct type OciDeviceRate (line 74) | type OciDeviceRate struct type OciDeviceWeights (line 81) | type OciDeviceWeights method Append (line 93) | func (w *OciDeviceWeights) Append(maj, min, val int64) { method Update (line 103) | func (w *OciDeviceWeights) Update(maj, min, val int64) { type OciDeviceRates (line 84) | type OciDeviceRates method Append (line 98) | func (r *OciDeviceRates) Append(maj, min, val int64) { method Update (line 114) | func (r *OciDeviceRates) Update(maj, min, val int64) { type OciDeviceParameters (line 87) | type OciDeviceParameters interface function NewOciBlockIOParameters (line 125) | func NewOciBlockIOParameters() OciBlockIOParameters { function NewOciDeviceWeight (line 132) | func NewOciDeviceWeight() OciDeviceWeight { function NewOciDeviceRate (line 141) | func NewOciDeviceRate() OciDeviceRate { function GetBlkioDir (line 150) | func GetBlkioDir() string { type devMajMin (line 154) | type devMajMin struct function ResetBlkioParameters (line 160) | func ResetBlkioParameters(cgroupsDir string, blockIO OciBlockIOParameter... function resetDevRates (line 187) | func resetDevRates(old, wanted []OciDeviceRate) []OciDeviceRate { function GetBlkioParameters (line 203) | func GetBlkioParameters(cgroupsDir string) (OciBlockIOParameters, error) { function readOciDeviceParameters (line 226) | func readOciDeviceParameters(baseDir string, filenames []string, params ... function readFromFileInDir (line 261) | func readFromFileInDir(baseDir string, filenames []string) (string, erro... function SetBlkioParameters (line 280) | func SetBlkioParameters(cgroupsDir string, blockIO OciBlockIOParameters)... function writeDevValueToFileInDir (line 305) | func writeDevValueToFileInDir(baseDir string, filenames []string, major,... function writeToFileInDir (line 311) | func writeToFileInDir(baseDir string, filenames []string, content string... type platformInterface (line 330) | type platformInterface interface type defaultPlatform (line 336) | type defaultPlatform struct method readFromFile (line 342) | func (dpm defaultPlatform) readFromFile(filename string) (string, erro... method writeToFile (line 348) | func (dpm defaultPlatform) writeToFile(filename string, content string... FILE: pkg/cgroups/cgroupblkio_test.go function TestUpdateAppend (line 24) | func TestUpdateAppend(t *testing.T) { function TestResetBlkioParameters (line 74) | func TestResetBlkioParameters(t *testing.T) { function TestGetBlkioParameters (line 179) | func TestGetBlkioParameters(t *testing.T) { function TestSetBlkioParameters (line 287) | func TestSetBlkioParameters(t *testing.T) { type mockPlatform (line 385) | type mockPlatform struct method readFromFile (line 392) | func (mpf *mockPlatform) readFromFile(filename string) (string, error) { method writeToFile (line 403) | func (mpf *mockPlatform) writeToFile(filename string, content string) ... FILE: pkg/cgroups/cgroupcontrol.go type Controller (line 28) | type Controller method String (line 98) | func (c Controller) String() string { method Path (line 106) | func (c Controller) Path() string { method RelPath (line 115) | func (c Controller) RelPath() string { method Group (line 124) | func (c Controller) Group(group string) Group { type Group (line 31) | type Group method Controller (line 134) | func (g Group) Controller() Controller { method GetTasks (line 148) | func (g Group) GetTasks() ([]string, error) { method GetProcesses (line 153) | func (g Group) GetProcesses() ([]string, error) { method AddTasks (line 158) | func (g Group) AddTasks(pids ...string) error { method AddProcesses (line 163) | func (g Group) AddProcesses(pids ...string) error { method Write (line 168) | func (g Group) Write(entry, format string, args ...interface{}) error { method readPids (line 185) | func (g Group) readPids(entry string) ([]string, error) { method writePids (line 208) | func (g Group) writePids(entry string, pids ...string) error { method errorf (line 230) | func (g Group) errorf(format string, args ...interface{}) error { constant UnknownController (line 36) | UnknownController Controller = iota constant Blkio (line 38) | Blkio constant Cpu (line 40) | Cpu constant Cpuacct (line 42) | Cpuacct constant Cpuset (line 44) | Cpuset constant Devices (line 46) | Devices constant Freezer (line 48) | Freezer constant Hugetlb (line 50) | Hugetlb constant Memory (line 52) | Memory constant NetCls (line 54) | NetCls constant NetPrio (line 56) | NetPrio constant PerfEvent (line 58) | PerfEvent constant Pids (line 60) | Pids function AsGroup (line 129) | func AsGroup(absDir string) Group { FILE: pkg/cgroups/cgroupid.go type CgroupID (line 14) | type CgroupID struct method Find (line 38) | func (cgid *CgroupID) Find(id uint64) (string, error) { function NewCgroupID (line 21) | func NewCgroupID(root string) *CgroupID { function getID (line 28) | func getID(path string) uint64 { FILE: pkg/cgroups/cgrouppath.go constant Tasks (line 27) | Tasks = "tasks" constant Procs (line 29) | Procs = "cgroup.procs" constant CpuShares (line 31) | CpuShares = "cpu.shares" constant CpuPeriod (line 33) | CpuPeriod = "cpu.cfs_period_us" constant CpuQuota (line 35) | CpuQuota = "cpu.cfs_quota_us" constant CpusetCpus (line 37) | CpusetCpus = "cpuset.cpus" constant CpusetMems (line 39) | CpusetMems = "cpuset.mems" constant Controllers (line 41) | Controllers = "cgroup.controllers" function GetMountDir (line 56) | func GetMountDir() string { function SetMountDir (line 61) | func SetMountDir(dir string) { function GetV2Dir (line 70) | func GetV2Dir() string { function SetV2Dir (line 75) | func SetV2Dir(dir string) { function init (line 83) | func init() { function DetectSystemCgroupVersion (line 92) | func DetectSystemCgroupVersion() int { FILE: pkg/cgroups/cgroupstats.go type BlkioDeviceBytes (line 29) | type BlkioDeviceBytes struct type BlkioThrottleBytes (line 36) | type BlkioThrottleBytes struct type CPUAcctUsage (line 42) | type CPUAcctUsage struct type HugetlbUsage (line 49) | type HugetlbUsage struct type MemoryUsage (line 56) | type MemoryUsage struct type NumaLine (line 62) | type NumaLine struct type NumaStat (line 68) | type NumaStat struct type GlobalNumaStats (line 81) | type GlobalNumaStats struct function readCgroupFileLines (line 90) | func readCgroupFileLines(filePath string) ([]string, error) { function readCgroupSingleNumber (line 114) | func readCgroupSingleNumber(filePath string) (int64, error) { function GetBlkioThrottleBytes (line 139) | func GetBlkioThrottleBytes(cgroupPath string) (BlkioThrottleBytes, error) { function GetCPUAcctStats (line 230) | func GetCPUAcctStats(cgroupPath string) ([]CPUAcctUsage, error) { function GetCPUSetMemoryMigrate (line 269) | func GetCPUSetMemoryMigrate(cgroupPath string) (bool, error) { function GetHugetlbUsage (line 291) | func GetHugetlbUsage(cgroupPath string) ([]HugetlbUsage, error) { function GetMemoryUsage (line 334) | func GetMemoryUsage(cgroupPath string) (MemoryUsage, error) { function GetNumaStats (line 359) | func GetNumaStats(cgroupPath string) (NumaStat, error) { function GetGlobalNumaStats (line 447) | func GetGlobalNumaStats() (map[int]GlobalNumaStats, error) { FILE: pkg/cgroupstats/collector.go constant numaStatsDesc (line 34) | numaStatsDesc = iota constant memoryUsageDesc (line 35) | memoryUsageDesc constant memoryMigrateDesc (line 36) | memoryMigrateDesc constant cpuAcctUsageDesc (line 37) | cpuAcctUsageDesc constant hugeTlbUsageDesc (line 38) | hugeTlbUsageDesc constant blkioDeviceUsageDesc (line 39) | blkioDeviceUsageDesc constant numDescriptors (line 40) | numDescriptors constant kubepodsDir (line 110) | kubepodsDir = "kubepods.slice" type collector (line 113) | type collector struct method Describe (line 122) | func (c *collector) Describe(ch chan<- *prometheus.Desc) { method Collect (line 328) | func (c collector) Collect(ch chan<- prometheus.Metric) { function NewCollector (line 117) | func NewCollector() (prometheus.Collector, error) { function updateCPUAcctUsageMetric (line 128) | func updateCPUAcctUsageMetric(ch chan<- prometheus.Metric, path string, ... function updateMemoryMigrateMetric (line 151) | func updateMemoryMigrateMetric(ch chan<- prometheus.Metric, path string,... function updateMemoryUsageMetric (line 164) | func updateMemoryUsageMetric(ch chan<- prometheus.Metric, path string, m... function updateNumaStatMetric (line 179) | func updateNumaStatMetric(ch chan<- prometheus.Metric, path string, metr... function updateHugeTlbUsageMetric (line 248) | func updateHugeTlbUsageMetric(ch chan<- prometheus.Metric, path string, ... function updateBlkioDeviceUsageMetric (line 266) | func updateBlkioDeviceUsageMetric(ch chan<- prometheus.Metric, path stri... function walkCgroups (line 280) | func walkCgroups() []string { function cgroupPath (line 323) | func cgroupPath(controller, path string) string { function init (line 405) | func init() { FILE: pkg/config/config.go constant MainModule (line 25) | MainModule = "main" type GetConfigFn (line 29) | type GetConfigFn type NotifyFn (line 32) | type NotifyFn type Event (line 35) | type Event constant UpdateEvent (line 39) | UpdateEvent = "update" constant RevertEvent (line 41) | RevertEvent = "rollback" type Source (line 45) | type Source constant ConfigFile (line 49) | ConfigFile Source = "configuration file" constant ConfigExternal (line 51) | ConfigExternal Source = "external configuration" constant ConfigBackup (line 53) | ConfigBackup Source = "backed up configuration" type Module (line 57) | type Module struct method AddNotify (line 106) | func (m *Module) AddNotify(fn NotifyFn) error { method getconfig (line 184) | func (m *Module) getconfig() (Data, error) { method isImplicit (line 211) | func (m *Module) isImplicit() bool { method hasChild (line 216) | func (m *Module) hasChild(name string) bool { method configure (line 222) | func (m *Module) configure(data Data, force bool) error { method apply (line 255) | func (m *Module) apply(cfg Data) error { method notify (line 289) | func (m *Module) notify(event Event, source Source) error { method check (line 306) | func (m *Module) check() { method validate (line 351) | func (m *Module) validate(data Data) error { function GetConfig (line 78) | func GetConfig() (Data, error) { function SetConfig (line 83) | func SetConfig(cfg map[string]string) error { function SetConfigFromFile (line 92) | func SetConfigFromFile(path string) error { function GetModule (line 101) | func GetModule(path string) *Module { function Register (line 111) | func Register(path, description string, ptr interface{}, getfn GetConfig... function setconfig (line 136) | func setconfig(data Data, source Source) error { function revertconfig (line 167) | func revertconfig(snapshot Data, notify bool) { function getFields (line 329) | func getFields(typ reflect.Type) map[string]struct{} { function fieldName (line 409) | func fieldName(f reflect.StructField) string { function lookup (line 426) | func lookup(path string) *Module { function Print (line 452) | func Print(printfn func(string, ...interface{})) { FILE: pkg/config/data.go type Data (line 25) | type Data method copy (line 67) | func (d Data) copy() Data { method split (line 76) | func (d Data) split(hasChild func(string) bool) (Data, Data) { method pick (line 89) | func (d Data) pick(key string, removePicked bool) (Data, error) { method String (line 125) | func (d Data) String() string { method Print (line 134) | func (d Data) Print(fn func(string, ...interface{})) { function DataFromObject (line 28) | func DataFromObject(obj interface{}) (Data, error) { function DataFromStringMap (line 41) | func DataFromStringMap(smap map[string]string) (Data, error) { function DataFromFile (line 54) | func DataFromFile(path string) (Data, error) { FILE: pkg/config/duration.go type Duration (line 23) | type Duration method MarshalJSON (line 26) | func (d Duration) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 31) | func (d *Duration) UnmarshalJSON(data []byte) error { method String (line 44) | func (d *Duration) String() string { FILE: pkg/config/error.go function configError (line 22) | func configError(format string, args ...interface{}) error { FILE: pkg/config/help.go function Describe (line 25) | func Describe(names ...string) { method setDescription (line 39) | func (m *Module) setDescription(description string) { method showHelp (line 56) | func (m *Module) showHelp() { method describeData (line 82) | func (m *Module) describeData() { function findModules (line 93) | func findModules(names []string, m *Module) []*Module { FILE: pkg/config/log.go type Logger (line 31) | type Logger struct function SetLogger (line 45) | func SetLogger(logger Logger) { function defaultLogger (line 69) | func defaultLogger() Logger { function debugEnabled (line 81) | func debugEnabled() bool { function debugmsg (line 85) | func debugmsg(format string, args ...interface{}) { function infomsg (line 89) | func infomsg(format string, args ...interface{}) { function warningmsg (line 93) | func warningmsg(format string, args ...interface{}) { function errormsg (line 97) | func errormsg(format string, args ...interface{}) { function fatalmsg (line 101) | func fatalmsg(format string, args ...interface{}) { function panicmsg (line 106) | func panicmsg(format string, args ...interface{}) { FILE: pkg/config/options.go function WithNotify (line 18) | func WithNotify(fn NotifyFn) Option { function WithoutDataValidation (line 32) | func WithoutDataValidation() Option { type Option (line 46) | type Option interface type funcOption (line 51) | type funcOption struct method apply (line 56) | func (fo *funcOption) apply(o interface{}) error { function newFuncOption (line 61) | func newFuncOption(f func(interface{}) error) *funcOption { FILE: pkg/cpuallocator/allocator.go type AllocFlag (line 30) | type AllocFlag constant AllocIdlePackages (line 34) | AllocIdlePackages AllocFlag = 1 << iota constant AllocIdleNodes (line 36) | AllocIdleNodes constant AllocIdleCores (line 38) | AllocIdleCores constant AllocDefault (line 40) | AllocDefault = AllocIdlePackages | AllocIdleCores constant logSource (line 42) | logSource = "cpuallocator" type allocatorHelper (line 46) | type allocatorHelper struct method takeIdlePackages (line 141) | func (a *allocatorHelper) takeIdlePackages() { method takeIdleCores (line 182) | func (a *allocatorHelper) takeIdleCores() { method takeIdleThreads (line 226) | func (a *allocatorHelper) takeIdleThreads() { method takeAny (line 312) | func (a *allocatorHelper) takeAny() { method allocate (line 326) | func (a *allocatorHelper) allocate() cpuset.CPUSet { type CPUAllocator (line 61) | type CPUAllocator interface type CPUPriority (line 66) | type CPUPriority method String (line 622) | func (p CPUPriority) String() string { constant PriorityHigh (line 69) | PriorityHigh CPUPriority = iota constant PriorityNormal (line 70) | PriorityNormal constant PriorityLow (line 71) | PriorityLow constant NumCPUPriorities (line 72) | NumCPUPriorities constant PriorityNone (line 73) | PriorityNone = NumCPUPriorities type cpuAllocator (line 76) | type cpuAllocator struct method allocateCpus (line 347) | func (ca *cpuAllocator) allocateCpus(from *cpuset.CPUSet, cnt int, pre... method AllocateCpus (line 371) | func (ca *cpuAllocator) AllocateCpus(from *cpuset.CPUSet, cnt int, pre... method ReleaseCpus (line 377) | func (ca *cpuAllocator) ReleaseCpus(from *cpuset.CPUSet, cnt int, pref... type topologyCache (line 83) | type topologyCache struct method discoverCPUPriorities (line 409) | func (c *topologyCache) discoverCPUPriorities(sys sysfs.System) { method discoverSstCPUPriority (line 433) | func (c *topologyCache) discoverSstCPUPriority(sys sysfs.System, pkgID... method sstClosPriority (line 500) | func (c *topologyCache) sstClosPriority(sys sysfs.System, pkgID idset.... method discoverCpufreqPriority (line 554) | func (c *topologyCache) discoverCpufreqPriority(sys sysfs.System, pkgI... type cpuPriorities (line 91) | type cpuPriorities method cmpCPUSet (line 639) | func (c *cpuPriorities) cmpCPUSet(csetA, csetB cpuset.CPUSet, prefer C... type IDFilter (line 94) | type IDFilter type IDSorter (line 97) | type IDSorter function NewCPUAllocator (line 103) | func NewCPUAllocator(sys sysfs.System) CPUAllocator { function pickIds (line 114) | func pickIds(idSlice []idset.ID, f IDFilter) []idset.ID { function newAllocatorHelper (line 129) | func newAllocatorHelper(sys sysfs.System, topo topologyCache) *allocator... function newTopologyCache (line 387) | func newTopologyCache(sys sysfs.System) topologyCache { FILE: pkg/cpuallocator/cpuallocator_test.go function TestAllocatorHelper (line 27) | func TestAllocatorHelper(t *testing.T) { FILE: pkg/cri/client/client.go type DialNotifyFn (line 38) | type DialNotifyFn type Options (line 41) | type Options struct type ConnectOptions (line 51) | type ConnectOptions struct type Client (line 59) | type Client interface type criClient (line 74) | type criClient interface type client (line 80) | type client struct method Connect (line 111) | func (c *client) Connect(options ConnectOptions) error { method Close (line 139) | func (c *client) Close() { method CheckConnection (line 157) | func (c *client) CheckConnection(options ConnectOptions) error { method HasRuntimeService (line 176) | func (c *client) HasRuntimeService() bool { method checkRuntimeService (line 180) | func (c *client) checkRuntimeService() error { method checkImageService (line 187) | func (c *client) checkImageService() error { method connect (line 195) | func (c *client) connect(kind, socket string, options ConnectOptions) ... method dialNotify (line 230) | func (c *client) dialNotify(socket string) { method Version (line 253) | func (c *client) Version(ctx context.Context, in *criv1.VersionRequest... method RunPodSandbox (line 261) | func (c *client) RunPodSandbox(ctx context.Context, in *criv1.RunPodSa... method StopPodSandbox (line 269) | func (c *client) StopPodSandbox(ctx context.Context, in *criv1.StopPod... method RemovePodSandbox (line 277) | func (c *client) RemovePodSandbox(ctx context.Context, in *criv1.Remov... method PodSandboxStatus (line 285) | func (c *client) PodSandboxStatus(ctx context.Context, in *criv1.PodSa... method ListPodSandbox (line 293) | func (c *client) ListPodSandbox(ctx context.Context, in *criv1.ListPod... method CreateContainer (line 301) | func (c *client) CreateContainer(ctx context.Context, in *criv1.Create... method StartContainer (line 309) | func (c *client) StartContainer(ctx context.Context, in *criv1.StartCo... method StopContainer (line 317) | func (c *client) StopContainer(ctx context.Context, in *criv1.StopCont... method RemoveContainer (line 325) | func (c *client) RemoveContainer(ctx context.Context, in *criv1.Remove... method ListContainers (line 333) | func (c *client) ListContainers(ctx context.Context, in *criv1.ListCon... method ContainerStatus (line 341) | func (c *client) ContainerStatus(ctx context.Context, in *criv1.Contai... method UpdateContainerResources (line 349) | func (c *client) UpdateContainerResources(ctx context.Context, in *cri... method ReopenContainerLog (line 357) | func (c *client) ReopenContainerLog(ctx context.Context, in *criv1.Reo... method ExecSync (line 365) | func (c *client) ExecSync(ctx context.Context, in *criv1.ExecSyncReque... method Exec (line 373) | func (c *client) Exec(ctx context.Context, in *criv1.ExecRequest, _ ..... method Attach (line 381) | func (c *client) Attach(ctx context.Context, in *criv1.AttachRequest, ... method PortForward (line 389) | func (c *client) PortForward(ctx context.Context, in *criv1.PortForwar... method ContainerStats (line 397) | func (c *client) ContainerStats(ctx context.Context, in *criv1.Contain... method ListContainerStats (line 405) | func (c *client) ListContainerStats(ctx context.Context, in *criv1.Lis... method PodSandboxStats (line 413) | func (c *client) PodSandboxStats(ctx context.Context, in *criv1.PodSan... method ListPodSandboxStats (line 421) | func (c *client) ListPodSandboxStats(ctx context.Context, in *criv1.Li... method UpdateRuntimeConfig (line 429) | func (c *client) UpdateRuntimeConfig(ctx context.Context, in *criv1.Up... method Status (line 437) | func (c *client) Status(ctx context.Context, in *criv1.StatusRequest, ... method CheckpointContainer (line 445) | func (c *client) CheckpointContainer(ctx context.Context, in *criv1.Ch... method GetContainerEvents (line 449) | func (c *client) GetContainerEvents(ctx context.Context, in *criv1.Get... method ListMetricDescriptors (line 453) | func (c *client) ListMetricDescriptors(ctx context.Context, in *criv1.... method ListPodSandboxMetrics (line 457) | func (c *client) ListPodSandboxMetrics(ctx context.Context, in *criv1.... method RuntimeConfig (line 461) | func (c *client) RuntimeConfig(ctx context.Context, in *criv1.RuntimeC... method ListImages (line 465) | func (c *client) ListImages(ctx context.Context, in *criv1.ListImagesR... method ImageStatus (line 473) | func (c *client) ImageStatus(ctx context.Context, in *criv1.ImageStatu... method PullImage (line 481) | func (c *client) PullImage(ctx context.Context, in *criv1.PullImageReq... method RemoveImage (line 489) | func (c *client) RemoveImage(ctx context.Context, in *criv1.RemoveImag... method ImageFsInfo (line 497) | func (c *client) ImageFsInfo(ctx context.Context, in *criv1.ImageFsInf... constant DontConnect (line 93) | DontConnect = "-" function NewClient (line 97) | func NewClient(options Options) (Client, error) { function clientError (line 506) | func clientError(format string, args ...interface{}) error { FILE: pkg/cri/client/v1/client.go type Client (line 28) | type Client interface type client (line 33) | type client struct method checkRuntimeService (line 70) | func (c *client) checkRuntimeService() error { method checkImageService (line 77) | func (c *client) checkImageService() error { method Version (line 84) | func (c *client) Version(ctx context.Context, in *criv1.VersionRequest... method RunPodSandbox (line 92) | func (c *client) RunPodSandbox(ctx context.Context, in *criv1.RunPodSa... method StopPodSandbox (line 100) | func (c *client) StopPodSandbox(ctx context.Context, in *criv1.StopPod... method RemovePodSandbox (line 108) | func (c *client) RemovePodSandbox(ctx context.Context, in *criv1.Remov... method PodSandboxStatus (line 116) | func (c *client) PodSandboxStatus(ctx context.Context, in *criv1.PodSa... method ListPodSandbox (line 124) | func (c *client) ListPodSandbox(ctx context.Context, in *criv1.ListPod... method CreateContainer (line 132) | func (c *client) CreateContainer(ctx context.Context, in *criv1.Create... method StartContainer (line 140) | func (c *client) StartContainer(ctx context.Context, in *criv1.StartCo... method StopContainer (line 148) | func (c *client) StopContainer(ctx context.Context, in *criv1.StopCont... method RemoveContainer (line 156) | func (c *client) RemoveContainer(ctx context.Context, in *criv1.Remove... method ListContainers (line 164) | func (c *client) ListContainers(ctx context.Context, in *criv1.ListCon... method ContainerStatus (line 172) | func (c *client) ContainerStatus(ctx context.Context, in *criv1.Contai... method UpdateContainerResources (line 180) | func (c *client) UpdateContainerResources(ctx context.Context, in *cri... method ReopenContainerLog (line 188) | func (c *client) ReopenContainerLog(ctx context.Context, in *criv1.Reo... method ExecSync (line 196) | func (c *client) ExecSync(ctx context.Context, in *criv1.ExecSyncReque... method Exec (line 204) | func (c *client) Exec(ctx context.Context, in *criv1.ExecRequest, _ ..... method Attach (line 212) | func (c *client) Attach(ctx context.Context, in *criv1.AttachRequest, ... method PortForward (line 220) | func (c *client) PortForward(ctx context.Context, in *criv1.PortForwar... method ContainerStats (line 228) | func (c *client) ContainerStats(ctx context.Context, in *criv1.Contain... method ListContainerStats (line 236) | func (c *client) ListContainerStats(ctx context.Context, in *criv1.Lis... method PodSandboxStats (line 244) | func (c *client) PodSandboxStats(ctx context.Context, in *criv1.PodSan... method ListPodSandboxStats (line 252) | func (c *client) ListPodSandboxStats(ctx context.Context, in *criv1.Li... method UpdateRuntimeConfig (line 260) | func (c *client) UpdateRuntimeConfig(ctx context.Context, in *criv1.Up... method Status (line 268) | func (c *client) Status(ctx context.Context, in *criv1.StatusRequest, ... method CheckpointContainer (line 276) | func (c *client) CheckpointContainer(ctx context.Context, in *criv1.Ch... method GetContainerEvents (line 284) | func (c *client) GetContainerEvents(ctx context.Context, in *criv1.Get... method ListMetricDescriptors (line 297) | func (c *client) ListMetricDescriptors(ctx context.Context, in *criv1.... method ListPodSandboxMetrics (line 305) | func (c *client) ListPodSandboxMetrics(ctx context.Context, in *criv1.... method RuntimeConfig (line 313) | func (c *client) RuntimeConfig(ctx context.Context, in *criv1.RuntimeC... method ListImages (line 321) | func (c *client) ListImages(ctx context.Context, in *criv1.ListImagesR... method ImageStatus (line 329) | func (c *client) ImageStatus(ctx context.Context, in *criv1.ImageStatu... method PullImage (line 337) | func (c *client) PullImage(ctx context.Context, in *criv1.PullImageReq... method RemoveImage (line 345) | func (c *client) RemoveImage(ctx context.Context, in *criv1.RemoveImag... method ImageFsInfo (line 353) | func (c *client) ImageFsInfo(ctx context.Context, in *criv1.ImageFsInf... function Connect (line 42) | func Connect(runtime, image *grpc.ClientConn) (Client, error) { function clientError (line 362) | func clientError(format string, args ...interface{}) error { FILE: pkg/cri/relay/image-service.go method ListImages (line 23) | func (r *relay) ListImages(ctx context.Context, method ImageStatus (line 28) | func (r *relay) ImageStatus(ctx context.Context, method PullImage (line 33) | func (r *relay) PullImage(ctx context.Context, method RemoveImage (line 38) | func (r *relay) RemoveImage(ctx context.Context, method ImageFsInfo (line 43) | func (r *relay) ImageFsInfo(ctx context.Context, FILE: pkg/cri/relay/relay.go constant DisableService (line 31) | DisableService = client.DontConnect constant DefaultImageSocket (line 33) | DefaultImageSocket = "default" type Options (line 37) | type Options struct type Relay (line 49) | type Relay interface type relay (line 63) | type relay struct method Setup (line 113) | func (r *relay) Setup() error { method Start (line 134) | func (r *relay) Start() error { method Stop (line 143) | func (r *relay) Stop() { method Client (line 149) | func (r *relay) Client() client.Client { method Server (line 154) | func (r *relay) Server() server.Server { method dialNotify (line 158) | func (r *relay) dialNotify(socket string, uid int, gid int, mode os.Fi... function NewRelay (line 75) | func NewRelay(options Options) (Relay, error) { function relayError (line 189) | func relayError(format string, args ...interface{}) error { FILE: pkg/cri/relay/runtime-service.go method dump (line 27) | func (r *relay) dump(method string, req interface{}) { method qualifier (line 35) | func (r *relay) qualifier(msg interface{}) string { method Version (line 42) | func (r *relay) Version(ctx context.Context, method RunPodSandbox (line 48) | func (r *relay) RunPodSandbox(ctx context.Context, method StopPodSandbox (line 54) | func (r *relay) StopPodSandbox(ctx context.Context, method RemovePodSandbox (line 60) | func (r *relay) RemovePodSandbox(ctx context.Context, method PodSandboxStatus (line 66) | func (r *relay) PodSandboxStatus(ctx context.Context, method ListPodSandbox (line 72) | func (r *relay) ListPodSandbox(ctx context.Context, method CreateContainer (line 78) | func (r *relay) CreateContainer(ctx context.Context, method StartContainer (line 84) | func (r *relay) StartContainer(ctx context.Context, method StopContainer (line 90) | func (r *relay) StopContainer(ctx context.Context, method RemoveContainer (line 96) | func (r *relay) RemoveContainer(ctx context.Context, method ListContainers (line 102) | func (r *relay) ListContainers(ctx context.Context, method ContainerStatus (line 108) | func (r *relay) ContainerStatus(ctx context.Context, method UpdateContainerResources (line 114) | func (r *relay) UpdateContainerResources(ctx context.Context, method ReopenContainerLog (line 120) | func (r *relay) ReopenContainerLog(ctx context.Context, method ExecSync (line 126) | func (r *relay) ExecSync(ctx context.Context, method Exec (line 132) | func (r *relay) Exec(ctx context.Context, method Attach (line 138) | func (r *relay) Attach(ctx context.Context, method PortForward (line 144) | func (r *relay) PortForward(ctx context.Context, method ContainerStats (line 150) | func (r *relay) ContainerStats(ctx context.Context, method ListContainerStats (line 156) | func (r *relay) ListContainerStats(ctx context.Context, method PodSandboxStats (line 162) | func (r *relay) PodSandboxStats(ctx context.Context, method ListPodSandboxStats (line 168) | func (r *relay) ListPodSandboxStats(ctx context.Context, method UpdateRuntimeConfig (line 174) | func (r *relay) UpdateRuntimeConfig(ctx context.Context, method Status (line 180) | func (r *relay) Status(ctx context.Context, method CheckpointContainer (line 186) | func (r *relay) CheckpointContainer(ctx context.Context, req *criv1.Chec... method GetContainerEvents (line 191) | func (r *relay) GetContainerEvents(req *criv1.GetEventsRequest, srv criv... method ListMetricDescriptors (line 210) | func (r *relay) ListMetricDescriptors(ctx context.Context, req *criv1.Li... method ListPodSandboxMetrics (line 215) | func (r *relay) ListPodSandboxMetrics(ctx context.Context, req *criv1.Li... method RuntimeConfig (line 220) | func (r *relay) RuntimeConfig(ctx context.Context, req *criv1.RuntimeCon... constant eventRelayTimeout (line 226) | eventRelayTimeout = 1 * time.Second method addEventServer (line 229) | func (r *relay) addEventServer(req *criv1.GetEventsRequest) chan *criv1.... method delEventServer (line 239) | func (r *relay) delEventServer(req *criv1.GetEventsRequest) chan *criv1.... method startEventRelay (line 249) | func (r *relay) startEventRelay(req *criv1.GetEventsRequest) error { method relayEvents (line 268) | func (r *relay) relayEvents() { FILE: pkg/cri/resource-manager/agent/agent.go constant SocketDisabled (line 34) | SocketDisabled = "disabled" type Interface (line 38) | type Interface interface type agentInterface (line 61) | type agentInterface struct method IsDisabled (line 96) | func (a *agentInterface) IsDisabled() bool { method GetNode (line 100) | func (a *agentInterface) GetNode(timeout time.Duration) (core_v1.Node,... method PatchNode (line 123) | func (a *agentInterface) PatchNode(patches []*agent_v1.JsonPatch, time... method UpdateNodeCapacity (line 142) | func (a *agentInterface) UpdateNodeCapacity(caps map[string]string, ti... method GetLabels (line 185) | func (a *agentInterface) GetLabels(timeout time.Duration) (map[string]... method SetLabels (line 198) | func (a *agentInterface) SetLabels(labels map[string]string, timeout t... method RemoveLabels (line 231) | func (a *agentInterface) RemoveLabels(keys []string, timeout time.Dura... method GetAnnotations (line 263) | func (a *agentInterface) GetAnnotations(timeout time.Duration) (map[st... method SetAnnotations (line 275) | func (a *agentInterface) SetAnnotations(annotations map[string]string,... method RemoveAnnotations (line 306) | func (a *agentInterface) RemoveAnnotations(keys []string, timeout time... method GetTaints (line 339) | func (a *agentInterface) GetTaints(timeout time.Duration) ([]core_v1.T... method SetTaints (line 351) | func (a *agentInterface) SetTaints(taints []core_v1.Taint, timeout tim... method RemoveTaints (line 393) | func (a *agentInterface) RemoveTaints(taints []core_v1.Taint, timeout ... method FindTaintIndex (line 437) | func (a *agentInterface) FindTaintIndex(taints []core_v1.Taint, taint ... function NewAgentInterface (line 68) | func NewAgentInterface(socket string) (Interface, error) { constant PatchAdd (line 162) | PatchAdd string = "add" constant PatchRemove (line 164) | PatchRemove string = "remove" constant PatchReplace (line 166) | PatchReplace string = "replace" function patchPath (line 169) | func patchPath(class, key string) string { function labelPatchPath (line 173) | func labelPatchPath(key string) string { function annotationPatchPath (line 177) | func annotationPatchPath(key string) string { function taintPatchPath (line 181) | func taintPatchPath(idx int) string { function findTaintIndex (line 428) | func findTaintIndex(taints []core_v1.Taint, taint *core_v1.Taint) (int, ... function agentError (line 441) | func agentError(format string, args ...interface{}) error { function prepareCall (line 445) | func prepareCall(timeout time.Duration) (context.Context, context.Cancel... FILE: pkg/cri/resource-manager/cache/affinity.go constant keyAffinity (line 28) | keyAffinity = "affinity" constant keyAntiAffinity (line 30) | keyAntiAffinity = "anti-affinity" type Expression (line 34) | type Expression struct type simpleAffinity (line 39) | type simpleAffinity type podContainerAffinity (line 42) | type podContainerAffinity method parseSimple (line 119) | func (pca *podContainerAffinity) parseSimple(pod *pod, value string, w... method parseFull (line 184) | func (pca *podContainerAffinity) parseFull(pod *pod, value string, wei... type Affinity (line 45) | type Affinity struct method Validate (line 62) | func (a *Affinity) Validate() error { method String (line 109) | func (a *Affinity) String() string { constant UserWeightCutoff (line 53) | UserWeightCutoff = 1000 constant DefaultWeight (line 55) | DefaultWeight int32 = 1 type ImplicitAffinity (line 59) | type ImplicitAffinity method EvaluateAffinity (line 82) | func (cch *cache) EvaluateAffinity(a *Affinity) map[string]int32 { method FilterScope (line 94) | func (cch *cache) FilterScope(scope *resmgr.Expression) []Container { function GlobalAffinity (line 222) | func GlobalAffinity(key string, weight int32) *Affinity { function GlobalAntiAffinity (line 236) | func GlobalAntiAffinity(key string, weight int32) *Affinity { method AddImplicitAffinities (line 241) | func (cch *cache) AddImplicitAffinities(implicit map[string]ImplicitAffi... method DeleteImplicitAffinities (line 254) | func (cch *cache) DeleteImplicitAffinities(names []string) { FILE: pkg/cri/resource-manager/cache/affinity_test.go function TestSimpleParsingSymmetry (line 21) | func TestSimpleParsingSymmetry(t *testing.T) { function TestStrictParsing (line 119) | func TestStrictParsing(t *testing.T) { FILE: pkg/cri/resource-manager/cache/cache.go constant CPU (line 41) | CPU = "cpu" constant CRI (line 43) | CRI = "cri" constant RDT (line 45) | RDT = "rdt" constant BlockIO (line 47) | BlockIO = "blockio" constant Memory (line 49) | Memory = "memory" constant PageMigration (line 51) | PageMigration = "page-migration" constant TagAVX512 (line 54) | TagAVX512 = "AVX512" constant RDTClassKey (line 57) | RDTClassKey = "rdtclass" + "." + kubernetes.ResmgrKeyNamespace constant BlockIOClassKey (line 59) | BlockIOClassKey = "blockioclass" + "." + kubernetes.ResmgrKeyNamespace constant ToptierLimitKey (line 61) | ToptierLimitKey = "toptierlimit" + "." + kubernetes.ResmgrKeyNamespace constant RDTClassPodQoS (line 64) | RDTClassPodQoS = "/PodQos" constant ToptierLimitUnset (line 67) | ToptierLimitUnset int64 = -1 constant TopologyHintsKey (line 70) | TopologyHintsKey = "topologyhints" + "." + kubernetes.ResmgrKeyNamespace type PodState (line 77) | type PodState constant PodStateReady (line 81) | PodStateReady = PodState(int32(criv1.PodSandboxState_SANDBOX_READY)) constant PodStateNotReady (line 83) | PodStateNotReady = PodState(int32(criv1.PodSandboxState_SANDBOX_NOTREADY)) constant PodStateStale (line 85) | PodStateStale = PodState(int32(PodStateNotReady) + 1) type PodResourceRequirements (line 89) | type PodResourceRequirements struct type PodStatus (line 97) | type PodStatus struct type Pod (line 102) | type Pod interface type pod (line 178) | type pod struct type ContainerState (line 196) | type ContainerState constant ContainerStateCreated (line 200) | ContainerStateCreated = ContainerState(int32(criv1.ContainerState_CONTAI... constant ContainerStateRunning (line 202) | ContainerStateRunning = ContainerState(int32(criv1.ContainerState_CONTAI... constant ContainerStateExited (line 204) | ContainerStateExited = ContainerState(int32(criv1.ContainerState_CONTAIN... constant ContainerStateUnknown (line 206) | ContainerStateUnknown = ContainerState(int32(criv1.ContainerState_CONTAI... constant ContainerStateCreating (line 208) | ContainerStateCreating = ContainerState(int32(ContainerStateUnknown) + 1) constant ContainerStateStale (line 210) | ContainerStateStale = ContainerState(int32(ContainerStateUnknown) + 2) type Container (line 214) | type Container interface type container (line 412) | type container struct type MountType (line 448) | type MountType constant MountPrivate (line 452) | MountPrivate MountType = MountType(criv1.MountPropagation_PROPAGATION_PR... constant MountHostToContainer (line 454) | MountHostToContainer MountType = MountType(criv1.MountPropagation_PROPAG... constant MountBidirectional (line 456) | MountBidirectional MountType = MountType(criv1.MountPropagation_PROPAGAT... type Mount (line 460) | type Mount struct type Device (line 474) | type Device struct type PageMigrate (line 484) | type PageMigrate struct method Clone (line 490) | func (pm *PageMigrate) Clone() *PageMigrate { type Cachable (line 505) | type Cachable interface type Cache (line 518) | type Cache interface constant CacheVersion (line 597) | CacheVersion = "1" type permissions (line 601) | type permissions struct type cache (line 615) | type cache struct method GetActivePolicy (line 676) | func (cch *cache) GetActivePolicy() string { method SetActivePolicy (line 681) | func (cch *cache) SetActivePolicy(policy string) error { method ResetActivePolicy (line 687) | func (cch *cache) ResetActivePolicy() error { method SetConfig (line 699) | func (cch *cache) SetConfig(cfg *config.RawConfig) error { method GetConfig (line 712) | func (cch *cache) GetConfig() *config.RawConfig { method ResetConfig (line 717) | func (cch *cache) ResetConfig() error { method SetAdjustment (line 730) | func (cch *cache) SetAdjustment(external *config.Adjustment) (bool, ma... method getApplicableAdjustments (line 803) | func (cch *cache) getApplicableAdjustments(ext *config.Adjustment, c *... method setEffectiveAdjustment (line 817) | func (cch *cache) setEffectiveAdjustment(effective map[*container]stri... method createCacheID (line 839) | func (cch *cache) createCacheID(c *container) string { method InsertPod (line 855) | func (cch *cache) InsertPod(id string, msg interface{}, status *PodSta... method DeletePod (line 882) | func (cch *cache) DeletePod(id string) Pod { method LookupPod (line 897) | func (cch *cache) LookupPod(id string) (Pod, bool) { method InsertContainer (line 903) | func (cch *cache) InsertContainer(msg interface{}) (Container, error) { method UpdateContainerID (line 947) | func (cch *cache) UpdateContainerID(cacheID string, msg interface{}) (... method DeleteContainer (line 969) | func (cch *cache) DeleteContainer(id string) Container { method LookupContainer (line 986) | func (cch *cache) LookupContainer(id string) (Container, bool) { method LookupContainerByCgroup (line 992) | func (cch *cache) LookupContainerByCgroup(path string) (Container, boo... method RefreshPods (line 1021) | func (cch *cache) RefreshPods(msg *criv1.ListPodSandboxResponse, statu... method RefreshContainers (line 1065) | func (cch *cache) RefreshContainers(msg *criv1.ListContainersResponse)... method markPending (line 1104) | func (cch *cache) markPending(c *container) { method GetPendingContainers (line 1112) | func (cch *cache) GetPendingContainers() []Container { method clearPending (line 1124) | func (cch *cache) clearPending(c *container) { method GetContainerCacheIds (line 1129) | func (cch *cache) GetContainerCacheIds() []string { method GetContainerIds (line 1145) | func (cch *cache) GetContainerIds() []string { method GetPods (line 1161) | func (cch *cache) GetPods() []Pod { method GetContainers (line 1170) | func (cch *cache) GetContainers() []Container { method SetPolicyEntry (line 1182) | func (cch *cache) SetPolicyEntry(key string, obj interface{}) { method GetPolicyEntry (line 1195) | func (cch *cache) GetPolicyEntry(key string, ptr interface{}) bool { method cacheEntry (line 1289) | func (cch *cache) cacheEntry(key string, ptr interface{}) error { method setEntry (line 1330) | func (cch *cache) setEntry(ptr, obj interface{}) error { method checkPerm (line 1371) | func (cch *cache) checkPerm(what, path string, isDir bool, p *permissi... method mkdirAll (line 1418) | func (cch *cache) mkdirAll(what, path string, p *permissions) error { method Snapshot (line 1446) | func (cch *cache) Snapshot() ([]byte, error) { method Restore (line 1485) | func (cch *cache) Restore(data []byte) error { method Save (line 1525) | func (cch *cache) Save() error { method Load (line 1546) | func (cch *cache) Load() error { method ContainerDirectory (line 1565) | func (cch *cache) ContainerDirectory(id string) string { method createContainerDirectory (line 1573) | func (cch *cache) createContainerDirectory(id string) error { method removeContainerDirectory (line 1581) | func (cch *cache) removeContainerDirectory(id string) error { method OpenFile (line 1589) | func (cch *cache) OpenFile(id string, name string, perm os.FileMode) (... method WriteFile (line 1611) | func (cch *cache) WriteFile(id string, name string, perm os.FileMode, ... type Options (line 640) | type Options struct function NewCache (line 646) | func NewCache(options Options) (Cache, error) { function marshalEntry (line 1237) | func marshalEntry(obj interface{}) ([]byte, error) { function unmarshalEntry (line 1254) | func unmarshalEntry(data []byte, ptr interface{}) error { type snapshot (line 1435) | type snapshot struct FILE: pkg/cri/resource-manager/cache/cache_test.go type fakePod (line 32) | type fakePod struct type fakeContainer (line 42) | type fakeContainer struct function createTmpCache (line 51) | func createTmpCache() (Cache, string, error) { function removeTmpCache (line 63) | func removeTmpCache(dir string) { function createFakePod (line 69) | func createFakePod(cch Cache, fp *fakePod) (Pod, error) { function createFakeContainer (line 116) | func createFakeContainer(cch Cache, fc *fakeContainer) (Container, error) { function TestLookupContainerByCgroup (line 151) | func TestLookupContainerByCgroup(t *testing.T) { function TestDefaultRDTAndBlockIOClasses (line 225) | func TestDefaultRDTAndBlockIOClasses(t *testing.T) { constant minNonZeroRequest (line 360) | minNonZeroRequest = 2 constant maxCPU (line 362) | maxCPU = (kubernetes.MaxShares / kubernetes.SharesPerCPU) * kubernetes.M... constant expectedAccuracy (line 364) | expectedAccuracy = 1 function TestCPURequestCalculationAccuracy (line 367) | func TestCPURequestCalculationAccuracy(t *testing.T) { function TestCPULimitCalculationAccuracy (line 393) | func TestCPULimitCalculationAccuracy(t *testing.T) { FILE: pkg/cri/resource-manager/cache/container.go method fromCreateRequest (line 37) | func (c *container) fromCreateRequest(req *criv1.CreateContainerRequest)... method fromListResponse (line 145) | func (c *container) fromListResponse(lrc *criv1.Container) error { method setDefaults (line 186) | func (c *container) setDefaults() error { method PrettyName (line 214) | func (c *container) PrettyName() string { method GetPod (line 226) | func (c *container) GetPod() (Pod, bool) { method GetID (line 231) | func (c *container) GetID() string { method GetPodID (line 235) | func (c *container) GetPodID() string { method GetCacheID (line 239) | func (c *container) GetCacheID() string { method GetName (line 243) | func (c *container) GetName() string { method GetNamespace (line 247) | func (c *container) GetNamespace() string { method UpdateState (line 251) | func (c *container) UpdateState(state ContainerState) { method GetState (line 255) | func (c *container) GetState() ContainerState { method GetQOSClass (line 259) | func (c *container) GetQOSClass() v1.PodQOSClass { method GetImage (line 269) | func (c *container) GetImage() string { method GetCommand (line 273) | func (c *container) GetCommand() []string { method GetArgs (line 279) | func (c *container) GetArgs() []string { function keysInNamespace (line 285) | func keysInNamespace(m map[string]string, namespace string) []string { method GetLabelKeys (line 300) | func (c *container) GetLabelKeys() []string { method GetLabel (line 312) | func (c *container) GetLabel(key string) (string, bool) { method GetResmgrLabelKeys (line 317) | func (c *container) GetResmgrLabelKeys() []string { method GetResmgrLabel (line 321) | func (c *container) GetResmgrLabel(key string) (string, bool) { method GetLabels (line 326) | func (c *container) GetLabels() map[string]string { method GetAnnotationKeys (line 337) | func (c *container) GetAnnotationKeys() []string { method GetAnnotation (line 349) | func (c *container) GetAnnotation(key string, objPtr interface{}) (strin... method GetResmgrAnnotationKeys (line 366) | func (c *container) GetResmgrAnnotationKeys() []string { method GetResmgrAnnotation (line 370) | func (c *container) GetResmgrAnnotation(key string, objPtr interface{}) ... method GetEffectiveAnnotation (line 374) | func (c *container) GetEffectiveAnnotation(key string) (string, bool) { method GetAnnotations (line 382) | func (c *container) GetAnnotations() map[string]string { method GetEnvKeys (line 393) | func (c *container) GetEnvKeys() []string { method GetEnv (line 405) | func (c *container) GetEnv(key string) (string, bool) { method GetMounts (line 410) | func (c *container) GetMounts() []Mount { method GetMountByHost (line 422) | func (c *container) GetMountByHost(path string) *Mount { method GetMountByContainer (line 432) | func (c *container) GetMountByContainer(path string) *Mount { method GetDevices (line 441) | func (c *container) GetDevices() []Device { method GetDeviceByHost (line 453) | func (c *container) GetDeviceByHost(path string) *Device { method GetDeviceByContainer (line 463) | func (c *container) GetDeviceByContainer(path string) *Device { method GetResourceRequirements (line 472) | func (c *container) GetResourceRequirements() v1.ResourceRequirements { method GetLinuxResources (line 481) | func (c *container) GetLinuxResources() *criv1.LinuxContainerResources { method setEffectiveAdjustment (line 489) | func (c *container) setEffectiveAdjustment(name string) string { method getEffectiveAdjustment (line 495) | func (c *container) getEffectiveAdjustment() (*extapi.AdjustmentSpec, st... method SetCommand (line 505) | func (c *container) SetCommand(value []string) { method SetArgs (line 510) | func (c *container) SetArgs(value []string) { method SetLabel (line 515) | func (c *container) SetLabel(key, value string) { method DeleteLabel (line 523) | func (c *container) DeleteLabel(key string) { method SetAnnotation (line 530) | func (c *container) SetAnnotation(key, value string) { method DeleteAnnotation (line 538) | func (c *container) DeleteAnnotation(key string) { method SetEnv (line 545) | func (c *container) SetEnv(key, value string) { method UnsetEnv (line 553) | func (c *container) UnsetEnv(key string) { method InsertMount (line 560) | func (c *container) InsertMount(m *Mount) { method DeleteMount (line 568) | func (c *container) DeleteMount(path string) { method InsertDevice (line 575) | func (c *container) InsertDevice(d *Device) { method DeleteDevice (line 583) | func (c *container) DeleteDevice(path string) { method GetTopologyHints (line 590) | func (c *container) GetTopologyHints() topology.Hints { method GetCPUPeriod (line 594) | func (c *container) GetCPUPeriod() int64 { method GetCPUQuota (line 601) | func (c *container) GetCPUQuota() int64 { method GetCPUShares (line 608) | func (c *container) GetCPUShares() int64 { method GetMemoryLimit (line 615) | func (c *container) GetMemoryLimit() int64 { method GetOomScoreAdj (line 622) | func (c *container) GetOomScoreAdj() int64 { method GetCpusetCpus (line 629) | func (c *container) GetCpusetCpus() string { method GetCpusetMems (line 636) | func (c *container) GetCpusetMems() string { method SetLinuxResources (line 643) | func (c *container) SetLinuxResources(req *criv1.LinuxContainerResources) { method SetCPUPeriod (line 648) | func (c *container) SetCPUPeriod(value int64) { method SetCPUQuota (line 656) | func (c *container) SetCPUQuota(value int64) { method SetCPUShares (line 664) | func (c *container) SetCPUShares(value int64) { method SetMemoryLimit (line 672) | func (c *container) SetMemoryLimit(value int64) { method SetOomScoreAdj (line 680) | func (c *container) SetOomScoreAdj(value int64) { method SetCpusetCpus (line 688) | func (c *container) SetCpusetCpus(value string) { method SetCpusetMems (line 696) | func (c *container) SetCpusetMems(value string) { function getTopologyHints (line 704) | func getTopologyHints(hostPath, containerPath string, readOnly bool) top... function getKubeletHint (line 743) | func getKubeletHint(cpus, mems string) (ret topology.Hints) { method GetAffinity (line 754) | func (c *container) GetAffinity() ([]*Affinity, error) { method GetCgroupDir (line 772) | func (c *container) GetCgroupDir() string { method SetRDTClass (line 784) | func (c *container) SetRDTClass(class string) { method GetRDTClass (line 789) | func (c *container) GetRDTClass() string { method SetBlockIOClass (line 798) | func (c *container) SetBlockIOClass(class string) { method GetBlockIOClass (line 803) | func (c *container) GetBlockIOClass() string { method SetToptierLimit (line 812) | func (c *container) SetToptierLimit(limit int64) { method GetToptierLimit (line 817) | func (c *container) GetToptierLimit() int64 { method SetPageMigration (line 826) | func (c *container) SetPageMigration(p *PageMigrate) { method GetPageMigration (line 831) | func (c *container) GetPageMigration() *PageMigrate { method GetProcesses (line 835) | func (c *container) GetProcesses() ([]string, error) { method GetTasks (line 843) | func (c *container) GetTasks() ([]string, error) { method SetCRIRequest (line 851) | func (c *container) SetCRIRequest(req interface{}) error { method GetCRIRequest (line 859) | func (c *container) GetCRIRequest() (interface{}, bool) { method ClearCRIRequest (line 867) | func (c *container) ClearCRIRequest() (interface{}, bool) { method GetCRIEnvs (line 873) | func (c *container) GetCRIEnvs() []*criv1.KeyValue { method GetCRIMounts (line 886) | func (c *container) GetCRIMounts() []*criv1.Mount { method GetCRIDevices (line 905) | func (c *container) GetCRIDevices() []*criv1.Device { method markPending (line 922) | func (c *container) markPending(controllers ...string) { method ClearPending (line 932) | func (c *container) ClearPending(controller string) { method GetPending (line 939) | func (c *container) GetPending() []string { method HasPending (line 951) | func (c *container) HasPending(controller string) bool { method GetTag (line 959) | func (c *container) GetTag(key string) (string, bool) { method SetTag (line 964) | func (c *container) SetTag(key string, value string) (string, bool) { method DeleteTag (line 970) | func (c *container) DeleteTag(key string) (string, bool) { method implicitAffinities (line 976) | func (c *container) implicitAffinities(hasExplicit bool) []*Affinity { method String (line 992) | func (c *container) String() string { method Eval (line 996) | func (c *container) Eval(key string) interface{} { type CompareContainersFn (line 1025) | type CompareContainersFn function SortContainers (line 1031) | func SortContainers(containers []Container, compareFns ...CompareContain... function CompareQOS (line 1062) | func CompareQOS(ci, cj Container) int { function CompareMemory (line 1078) | func CompareMemory(ci, cj Container) int { function CompareCPU (line 1112) | func CompareCPU(ci, cj Container) int { FILE: pkg/cri/resource-manager/cache/container_test.go function TestGetKubeletHint (line 25) | func TestGetKubeletHint(t *testing.T) { function TestGetTopologyHints (line 70) | func TestGetTopologyHints(t *testing.T) { function TestKeysInNamespace (line 123) | func TestKeysInNamespace(t *testing.T) { FILE: pkg/cri/resource-manager/cache/error.go function cacheError (line 21) | func cacheError(format string, args ...interface{}) error { FILE: pkg/cri/resource-manager/cache/pod.go constant KeyResourceAnnotation (line 32) | KeyResourceAnnotation = "intel.com/resources" method fromRunRequest (line 36) | func (p *pod) fromRunRequest(req *criv1.RunPodSandboxRequest) error { method fromListResponse (line 65) | func (p *pod) fromListResponse(pod *criv1.PodSandbox, status *PodStatus)... method GetInitContainers (line 95) | func (p *pod) GetInitContainers() []Container { method GetContainers (line 115) | func (p *pod) GetContainers() []Container { method getContainer (line 134) | func (p *pod) getContainer(name string) *container { method GetContainer (line 153) | func (p *pod) GetContainer(name string) (Container, bool) { method GetID (line 160) | func (p *pod) GetID() string { method GetUID (line 165) | func (p *pod) GetUID() string { method GetName (line 170) | func (p *pod) GetName() string { method GetNamespace (line 175) | func (p *pod) GetNamespace() string { method GetState (line 180) | func (p *pod) GetState() PodState { method GetLabelKeys (line 185) | func (p *pod) GetLabelKeys() []string { method GetLabel (line 198) | func (p *pod) GetLabel(key string) (string, bool) { method GetResmgrLabelKeys (line 204) | func (p *pod) GetResmgrLabelKeys() []string { method GetResmgrLabel (line 209) | func (p *pod) GetResmgrLabel(key string) (string, bool) { method GetAnnotationKeys (line 215) | func (p *pod) GetAnnotationKeys() []string { method GetAnnotation (line 228) | func (p *pod) GetAnnotation(key string) (string, bool) { method GetAnnotationObject (line 234) | func (p *pod) GetAnnotationObject(key string, objPtr interface{}, method GetResmgrAnnotationKeys (line 279) | func (p *pod) GetResmgrAnnotationKeys() []string { method GetResmgrAnnotation (line 284) | func (p *pod) GetResmgrAnnotation(key string) (string, bool) { method GetResmgrAnnotationObject (line 289) | func (p *pod) GetResmgrAnnotationObject(key string, objPtr interface{}, method GetEffectiveAnnotation (line 295) | func (p *pod) GetEffectiveAnnotation(key, container string) (string, boo... method GetCgroupParentDir (line 307) | func (p *pod) GetCgroupParentDir() string { method discoverQOSClass (line 312) | func (p *pod) discoverQOSClass() error { method GetPodResourceRequirements (line 361) | func (p *pod) GetPodResourceRequirements() PodResourceRequirements { method parseResourceAnnotations (line 370) | func (p *pod) parseResourceAnnotations() { method GetQOSClass (line 376) | func (p *pod) GetQOSClass() v1.PodQOSClass { method GetContainerAffinity (line 381) | func (p *pod) GetContainerAffinity(name string) ([]*Affinity, error) { method ScopeExpression (line 425) | func (p *pod) ScopeExpression() *resmgr.Expression { method String (line 435) | func (p *pod) String() string { method Eval (line 440) | func (p *pod) Eval(key string) interface{} { method GetProcesses (line 460) | func (p *pod) GetProcesses(recursive bool) ([]string, error) { method GetTasks (line 465) | func (p *pod) GetTasks(recursive bool) ([]string, error) { method getTasks (line 470) | func (p *pod) getTasks(recursive, processes bool) ([]string, error) { function ParsePodStatus (line 513) | func ParsePodStatus(response *criv1.PodSandboxStatusResponse) (*PodStatu... FILE: pkg/cri/resource-manager/cache/utils.go function IsPodQOSClassName (line 41) | func IsPodQOSClassName(class string) bool { function estimateComputeResources (line 50) | func estimateComputeResources(lnx *criv1.LinuxContainerResources, cgroup... function getMemoryCapacity (line 93) | func getMemoryCapacity() int64 { function cgroupParentToQOS (line 129) | func cgroupParentToQOS(dir string) corev1.PodQOSClass { function resourcesToQOS (line 150) | func resourcesToQOS(podResources *PodResourceRequirements) corev1.PodQOS... function findContainerDir (line 219) | func findContainerDir(podCgroupDir, ID string) string { function isSupportedQoSComputeResource (line 251) | func isSupportedQoSComputeResource(name corev1.ResourceName) bool { function init (line 255) | func init() { FILE: pkg/cri/resource-manager/config/api/v1/api.pb.go constant _ (line 33) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 35) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type SetConfigRequest (line 38) | type SetConfigRequest struct method Reset (line 49) | func (x *SetConfigRequest) Reset() { method String (line 58) | func (x *SetConfigRequest) String() string { method ProtoMessage (line 62) | func (*SetConfigRequest) ProtoMessage() {} method ProtoReflect (line 64) | func (x *SetConfigRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 77) | func (*SetConfigRequest) Descriptor() ([]byte, []int) { method GetNodeName (line 81) | func (x *SetConfigRequest) GetNodeName() string { method GetConfig (line 88) | func (x *SetConfigRequest) GetConfig() map[string]string { type SetConfigReply (line 95) | type SetConfigReply struct method Reset (line 104) | func (x *SetConfigReply) Reset() { method String (line 113) | func (x *SetConfigReply) String() string { method ProtoMessage (line 117) | func (*SetConfigReply) ProtoMessage() {} method ProtoReflect (line 119) | func (x *SetConfigReply) ProtoReflect() protoreflect.Message { method Descriptor (line 132) | func (*SetConfigReply) Descriptor() ([]byte, []int) { method GetError (line 136) | func (x *SetConfigReply) GetError() string { type SetAdjustmentRequest (line 143) | type SetAdjustmentRequest struct method Reset (line 154) | func (x *SetAdjustmentRequest) Reset() { method String (line 163) | func (x *SetAdjustmentRequest) String() string { method ProtoMessage (line 167) | func (*SetAdjustmentRequest) ProtoMessage() {} method ProtoReflect (line 169) | func (x *SetAdjustmentRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 182) | func (*SetAdjustmentRequest) Descriptor() ([]byte, []int) { method GetNodeName (line 186) | func (x *SetAdjustmentRequest) GetNodeName() string { method GetAdjustment (line 193) | func (x *SetAdjustmentRequest) GetAdjustment() string { type SetAdjustmentReply (line 200) | type SetAdjustmentReply struct method Reset (line 209) | func (x *SetAdjustmentReply) Reset() { method String (line 218) | func (x *SetAdjustmentReply) String() string { method ProtoMessage (line 222) | func (*SetAdjustmentReply) ProtoMessage() {} method ProtoReflect (line 224) | func (x *SetAdjustmentReply) ProtoReflect() protoreflect.Message { method Descriptor (line 237) | func (*SetAdjustmentReply) Descriptor() ([]byte, []int) { method GetErrors (line 241) | func (x *SetAdjustmentReply) GetErrors() map[string]string { function file_pkg_cri_resource_manager_config_api_v1_api_proto_rawDescGZIP (line 299) | func file_pkg_cri_resource_manager_config_api_v1_api_proto_rawDescGZIP()... function init (line 329) | func init() { file_pkg_cri_resource_manager_config_api_v1_api_proto_init... function file_pkg_cri_resource_manager_config_api_v1_api_proto_init (line 330) | func file_pkg_cri_resource_manager_config_api_v1_api_proto_init() { FILE: pkg/cri/resource-manager/config/api/v1/api_grpc.pb.go constant _ (line 19) | _ = grpc.SupportPackageIsVersion7 type ConfigClient (line 24) | type ConfigClient interface type configClient (line 29) | type configClient struct method SetConfig (line 37) | func (c *configClient) SetConfig(ctx context.Context, in *SetConfigReq... method SetAdjustment (line 46) | func (c *configClient) SetAdjustment(ctx context.Context, in *SetAdjus... function NewConfigClient (line 33) | func NewConfigClient(cc grpc.ClientConnInterface) ConfigClient { type ConfigServer (line 58) | type ConfigServer interface type UnimplementedConfigServer (line 65) | type UnimplementedConfigServer struct method SetConfig (line 68) | func (UnimplementedConfigServer) SetConfig(context.Context, *SetConfig... method SetAdjustment (line 71) | func (UnimplementedConfigServer) SetAdjustment(context.Context, *SetAd... method mustEmbedUnimplementedConfigServer (line 74) | func (UnimplementedConfigServer) mustEmbedUnimplementedConfigServer() {} type UnsafeConfigServer (line 79) | type UnsafeConfigServer interface function RegisterConfigServer (line 83) | func RegisterConfigServer(s grpc.ServiceRegistrar, srv ConfigServer) { function _Config_SetConfig_Handler (line 87) | func _Config_SetConfig_Handler(srv interface{}, ctx context.Context, dec... function _Config_SetAdjustment_Handler (line 105) | func _Config_SetAdjustment_Handler(srv interface{}, ctx context.Context,... FILE: pkg/cri/resource-manager/config/config.go type RawConfig (line 25) | type RawConfig struct method HasIdenticalData (line 39) | func (c *RawConfig) HasIdenticalData(data map[string]string) bool { type Adjustment (line 33) | type Adjustment struct FILE: pkg/cri/resource-manager/config/server.go constant SocketDisabled (line 38) | SocketDisabled = "disabled" type SetConfigCb (line 42) | type SetConfigCb type SetAdjustmentCb (line 45) | type SetAdjustmentCb type Server (line 48) | type Server interface type server (line 54) | type server struct method Start (line 75) | func (s *server) Start(socket string) error { method Stop (line 115) | func (s *server) Stop() { method SetConfig (line 123) | func (s *server) SetConfig(_ context.Context, req *v1.SetConfigRequest... method SetAdjustment (line 139) | func (s *server) SetAdjustment(_ context.Context, req *v1.SetAdjustmen... function NewConfigServer (line 65) | func NewConfigServer(configCb SetConfigCb, adjustmentCb SetAdjustmentCb)... function serverError (line 169) | func serverError(format string, args ...interface{}) error { FILE: pkg/cri/resource-manager/control/blockio/blockio.go constant BlockIOController (line 31) | BlockIOController = cache.BlockIO type blockioctl (line 35) | type blockioctl struct method Start (line 55) | func (ctl *blockioctl) Start(cache cache.Cache, _ client.Client) error { method Stop (line 62) | func (ctl *blockioctl) Stop() { method PreCreateHook (line 66) | func (ctl *blockioctl) PreCreateHook(_ cache.Container) error { method PreStartHook (line 71) | func (ctl *blockioctl) PreStartHook(_ cache.Container) error { method PostStartHook (line 76) | func (ctl *blockioctl) PostStartHook(c cache.Container) error { method PostUpdateHook (line 91) | func (ctl *blockioctl) PostUpdateHook(c cache.Container) error { method PostStopHook (line 106) | func (ctl *blockioctl) PostStopHook(_ cache.Container) error { method isImplicitlyDisabled (line 111) | func (ctl *blockioctl) isImplicitlyDisabled() bool { method assign (line 126) | func (ctl *blockioctl) assign(c cache.Container) error { method configNotify (line 146) | func (ctl *blockioctl) configNotify(event config.Event, _ config.Sourc... method reconfigureRunningContainers (line 163) | func (ctl *blockioctl) reconfigureRunningContainers() error { function getBlockIOController (line 47) | func getBlockIOController() *blockioctl { function blockioError (line 180) | func blockioError(format string, args ...interface{}) error { function init (line 185) | func init() { FILE: pkg/cri/resource-manager/control/control.go type Control (line 28) | type Control interface type Controller (line 44) | type Controller interface type control (line 62) | type control struct method StartStopControllers (line 108) | func (c *control) StartStopControllers(cache cache.Cache, client clien... method RunPreCreateHooks (line 159) | func (c *control) RunPreCreateHooks(container cache.Container) error { method RunPreStartHooks (line 169) | func (c *control) RunPreStartHooks(container cache.Container) error { method RunPostStartHooks (line 179) | func (c *control) RunPostStartHooks(container cache.Container) error { method RunPostUpdateHooks (line 189) | func (c *control) RunPostUpdateHooks(container cache.Container) error { method RunPostStopHooks (line 199) | func (c *control) RunPostStopHooks(container cache.Container) error { method runhook (line 209) | func (c *control) runhook(controller *controller, hook string, contain... type controller (line 69) | type controller struct constant precreate (line 79) | precreate = "pre-create" constant prestart (line 80) | prestart = "pre-start" constant poststart (line 81) | poststart = "post-start" constant postupdate (line 82) | postupdate = "post-update" constant poststop (line 83) | poststop = "post-stop" function NewControl (line 93) | func NewControl() (Control, error) { function Register (line 242) | func Register(name, description string, c Controller) error { function controlError (line 259) | func controlError(format string, args ...interface{}) error { FILE: pkg/cri/resource-manager/control/cpu/api.go function GetClasses (line 23) | func GetClasses() map[string]Class { function Assign (line 31) | func Assign(c cache.Cache, class string, cpus ...int) error { FILE: pkg/cri/resource-manager/control/cpu/cache.go constant cacheKeyCPUAssignments (line 23) | cacheKeyCPUAssignments = "CPUClassAssignments" type cpuClassAssignments (line 28) | type cpuClassAssignments method Set (line 47) | func (c *cpuClassAssignments) Set(value interface{}) { method Get (line 58) | func (c *cpuClassAssignments) Get() interface{} { function getClassAssignments (line 31) | func getClassAssignments(c cache.Cache) *cpuClassAssignments { function setClassAssignments (line 42) | func setClassAssignments(c cache.Cache, a *cpuClassAssignments) { FILE: pkg/cri/resource-manager/control/cpu/cpu.go constant ConfigModuleName (line 32) | ConfigModuleName = "cpu" constant CPUController (line 35) | CPUController = cache.CPU type cpuctl (line 39) | type cpuctl struct method Start (line 76) | func (ctl *cpuctl) Start(cache cache.Cache, _ client.Client) error { method Stop (line 102) | func (ctl *cpuctl) Stop() { method PreCreateHook (line 106) | func (ctl *cpuctl) PreCreateHook(_ cache.Container) error { method PreStartHook (line 111) | func (ctl *cpuctl) PreStartHook(_ cache.Container) error { method PostStartHook (line 116) | func (ctl *cpuctl) PostStartHook(_ cache.Container) error { method PostUpdateHook (line 121) | func (ctl *cpuctl) PostUpdateHook(_ cache.Container) error { method PostStopHook (line 126) | func (ctl *cpuctl) PostStopHook(_ cache.Container) error { method enforceCpufreq (line 131) | func (ctl *cpuctl) enforceCpufreq(class string, cpus ...int) error { method enforceUncore (line 152) | func (ctl *cpuctl) enforceUncore(assignments cpuClassAssignments, affe... method configure (line 234) | func (ctl *cpuctl) configure() error { method configNotify (line 278) | func (ctl *cpuctl) configNotify(_ pkgcfg.Event, _ pkgcfg.Source) error { method defaultOptions (line 289) | func (ctl *cpuctl) defaultOptions() interface{} { type config (line 46) | type config struct method getClasses (line 293) | func (c *config) getClasses() map[string]Class { type Class (line 53) | type Class struct function getCPUController (line 67) | func getCPUController() *cpuctl { function effectiveUncoreFreqs (line 198) | func effectiveUncoreFreqs(cpus utils.IDSet, classes map[string]Class, as... function idSetIntersects (line 216) | func idSetIntersects(a, b utils.IDSet) bool { function init (line 302) | func init() { FILE: pkg/cri/resource-manager/control/cri/cri.go constant CRIController (line 30) | CRIController = cache.CRI type crictl (line 34) | type crictl struct method Start (line 54) | func (ctl *crictl) Start(cache cache.Cache, client client.Client) error { method Stop (line 62) | func (ctl *crictl) Stop() { method PreCreateHook (line 66) | func (ctl *crictl) PreCreateHook(c cache.Container) error { method PreStartHook (line 101) | func (ctl *crictl) PreStartHook(_ cache.Container) error { method PostStartHook (line 106) | func (ctl *crictl) PostStartHook(_ cache.Container) error { method PostUpdateHook (line 111) | func (ctl *crictl) PostUpdateHook(c cache.Container) error { method PostStopHook (line 144) | func (ctl *crictl) PostStopHook(_ cache.Container) error { function getCRIController (line 46) | func getCRIController() control.Controller { function criError (line 149) | func criError(format string, args ...interface{}) error { function init (line 154) | func init() { FILE: pkg/cri/resource-manager/control/flags.go type options (line 26) | type options struct method ControllerMode (line 50) | func (o *options) ControllerMode(name string) mode { method configNotify (line 59) | func (o *options) configNotify(_ config.Event, _ config.Source) error { type mode (line 34) | type mode method String (line 68) | func (m mode) String() string { method MarshalJSON (line 84) | func (m mode) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 89) | func (m *mode) UnmarshalJSON(raw []byte) error { constant Disabled (line 38) | Disabled mode = iota constant Required (line 40) | Required constant Optional (line 42) | Optional constant Relaxed (line 44) | Relaxed constant Default (line 46) | Default = Relaxed function defaultOptions (line 112) | func defaultOptions() interface{} { function init (line 117) | func init() { FILE: pkg/cri/resource-manager/control/memory/memory.go constant MemoryController (line 31) | MemoryController = cache.Memory constant memoryCgroupPath (line 34) | memoryCgroupPath = "/sys/fs/cgroup/memory" constant toptierSoftLimitControl (line 36) | toptierSoftLimitControl = "memory.toptier_soft_limit_in_bytes" type memctl (line 40) | type memctl struct method Start (line 60) | func (ctl *memctl) Start(cache cache.Cache, _ client.Client) error { method Stop (line 70) | func (ctl *memctl) Stop() { method PreCreateHook (line 74) | func (ctl *memctl) PreCreateHook(_ cache.Container) error { method PreStartHook (line 79) | func (ctl *memctl) PreStartHook(_ cache.Container) error { method PostStartHook (line 84) | func (ctl *memctl) PostStartHook(c cache.Container) error { method PostUpdateHook (line 99) | func (ctl *memctl) PostUpdateHook(c cache.Container) error { method PostStopHook (line 114) | func (ctl *memctl) PostStopHook(_ cache.Container) error { method checkToptierLimitSupport (line 119) | func (ctl *memctl) checkToptierLimitSupport() bool { method setToptierLimit (line 129) | func (ctl *memctl) setToptierLimit(c cache.Container) error { function getMemoryController (line 52) | func getMemoryController() *memctl { function memctlError (line 150) | func memctlError(format string, args ...interface{}) error { function init (line 155) | func init() { FILE: pkg/cri/resource-manager/control/page-migrate/demoter.go type page (line 53) | type page struct type addrRange (line 58) | type addrRange struct type demoter (line 63) | type demoter struct method start (line 108) | func (d *demoter) start() { method Stop (line 119) | func (d *demoter) Stop() { method Reconfigure (line 127) | func (d *demoter) Reconfigure() { method updateDemoter (line 139) | func (d *demoter) updateDemoter(cid string, p pagePool, targetNodes id... method stopDemoter (line 188) | func (d *demoter) stopDemoter(cid string) { method stopUnusedDemoters (line 196) | func (d *demoter) stopUnusedDemoters(cs map[string]*container) { method stopDemoters (line 204) | func (d *demoter) stopDemoters() { method stopDirtyBitResetTimer (line 211) | func (d *demoter) stopDirtyBitResetTimer() { method startDirtyBitResetTimer (line 218) | func (d *demoter) startDirtyBitResetTimer() { method resetDirtyBit (line 250) | func (d *demoter) resetDirtyBit(c *container) error { method scanPages (line 270) | func (d *demoter) scanPages() { method getPagesForContainer (line 308) | func (d *demoter) getPagesForContainer(c *container, sourceNodes idset... method movePagesForPid (line 473) | func (d *demoter) movePagesForPid(p []page, count uint, pid int, targe... method movePages (line 523) | func (d *demoter) movePages(p pagePool, count uint, targetNodes idset.... type pagePool (line 78) | type pagePool struct type demotion (line 83) | type demotion struct function copyPagePool (line 88) | func copyPagePool(p pagePool) pagePool { function newDemoter (line 100) | func newDemoter(m *migration) *demoter { function resetDirtyBit (line 242) | func resetDirtyBit(pid string) error { function pickClosestPMEMNode (line 465) | func pickClosestPMEMNode(targetNodes idset.IDSet) idset.ID { FILE: pkg/cri/resource-manager/control/page-migrate/demoter_test.go type mockPageMover (line 23) | type mockPageMover struct method MovePagesSyscall (line 30) | func (m *mockPageMover) MovePagesSyscall(pid int, count uint, pages []... function TestMovePages (line 56) | func TestMovePages(t *testing.T) { FILE: pkg/cri/resource-manager/control/page-migrate/flags.go type options (line 22) | type options struct function defaultOptions (line 35) | func defaultOptions() interface{} { function init (line 40) | func init() { FILE: pkg/cri/resource-manager/control/page-migrate/page-migrate.go constant PageMigrationController (line 29) | PageMigrationController = cache.PageMigration constant PageMigrationConfigPath (line 31) | PageMigrationConfigPath = "resource-manager.control." + PageMigrationCon... constant PageMigrationDescription (line 33) | PageMigrationDescription = "page migration controller" type migration (line 37) | type migration struct method Start (line 99) | func (m *migration) Start(cache cache.Cache, _ client.Client) error { method Stop (line 107) | func (m *migration) Stop() { method PreCreateHook (line 112) | func (m *migration) PreCreateHook(cache.Container) error { method PreStartHook (line 117) | func (m *migration) PreStartHook(cache.Container) error { method PostStartHook (line 122) | func (m *migration) PostStartHook(cc cache.Container) error { method PostUpdateHook (line 131) | func (m *migration) PostUpdateHook(cc cache.Container) error { method PostStopHook (line 140) | func (m *migration) PostStopHook(cc cache.Container) error { method syncWithCache (line 148) | func (m *migration) syncWithCache() { method insertContainer (line 158) | func (m *migration) insertContainer(cc cache.Container) error { method updateContainer (line 182) | func (m *migration) updateContainer(cc cache.Container) error { method deleteContainer (line 199) | func (m *migration) deleteContainer(cc cache.Container) error { type container (line 73) | type container struct method GetCacheID (line 205) | func (c *container) GetCacheID() string { method GetID (line 210) | func (c *container) GetID() string { method GetCgroupDir (line 215) | func (c *container) GetCgroupDir() string { method GetPageMigration (line 220) | func (c *container) GetPageMigration() *cache.PageMigrate { method PrettyName (line 225) | func (c *container) PrettyName() string { function getMigrationController (line 88) | func getMigrationController() *migration { function init (line 230) | func init() { function migrationError (line 235) | func migrationError(format string, args ...interface{}) error { FILE: pkg/cri/resource-manager/control/page-migrate/page-mover.go type linuxPageMover (line 26) | type linuxPageMover struct method MovePagesSyscall (line 33) | func (m *linuxPageMover) MovePagesSyscall(pid int, count uint, pages [... type PageMover (line 29) | type PageMover interface FILE: pkg/cri/resource-manager/control/rdt/rdt.go constant ConfigModuleName (line 33) | ConfigModuleName = "rdt" constant RDTController (line 36) | RDTController = cache.RDT constant resctrlGroupPrefix (line 38) | resctrlGroupPrefix = "cri-resmgr." type rdtctl (line 42) | type rdtctl struct method Start (line 84) | func (ctl *rdtctl) Start(cache cache.Cache, _ client.Client) error { method Stop (line 108) | func (ctl *rdtctl) Stop() { method PreCreateHook (line 112) | func (ctl *rdtctl) PreCreateHook(_ cache.Container) error { method PreStartHook (line 117) | func (ctl *rdtctl) PreStartHook(_ cache.Container) error { method PostStartHook (line 122) | func (ctl *rdtctl) PostStartHook(c cache.Container) error { method PostUpdateHook (line 137) | func (ctl *rdtctl) PostUpdateHook(c cache.Container) error { method PostStopHook (line 152) | func (ctl *rdtctl) PostStopHook(c cache.Container) error { method assign (line 160) | func (ctl *rdtctl) assign(c cache.Container) error { method assignClass (line 186) | func (ctl *rdtctl) assignClass(c cache.Container, class string) error { method monitor (line 223) | func (ctl *rdtctl) monitor(cls rdt.CtrlGroup, pod, name, id, pretty st... method stopMonitor (line 242) | func (ctl *rdtctl) stopMonitor(c cache.Container) error { method stopMonitorAll (line 257) | func (ctl *rdtctl) stopMonitorAll() error { method assignAll (line 266) | func (ctl *rdtctl) assignAll(forceClass string) { method monitoringDisabled (line 282) | func (ctl *rdtctl) monitoringDisabled() bool { method configure (line 286) | func (ctl *rdtctl) configure() error { method configNotify (line 353) | func (ctl *rdtctl) configNotify(_ pkgcfg.Event, _ pkgcfg.Source) error { method defaultOptions (line 358) | func (ctl *rdtctl) defaultOptions() interface{} { type config (line 49) | type config struct type OperatingMode (line 60) | type OperatingMode constant OperatingModeDisabled (line 63) | OperatingModeDisabled OperatingMode = "Disabled" constant OperatingModeDiscovery (line 64) | OperatingModeDiscovery OperatingMode = "Discovery" constant OperatingModeFull (line 65) | OperatingModeFull OperatingMode = "Full" function getRDTController (line 75) | func getRDTController() *rdtctl { function GetClasses (line 365) | func GetClasses() []rdt.CtrlGroup { function rdtError (line 370) | func rdtError(format string, args ...interface{}) error { function init (line 375) | func init() { FILE: pkg/cri/resource-manager/error.go function resmgrError (line 22) | func resmgrError(format string, args ...interface{}) error { FILE: pkg/cri/resource-manager/events.go method setupEventProcessing (line 30) | func (m *resmgr) setupEventProcessing() error { method startEventProcessing (line 47) | func (m *resmgr) startEventProcessing() error { method stopEventProcessing (line 85) | func (m *resmgr) stopEventProcessing() { method SendEvent (line 94) | func (m *resmgr) SendEvent(event interface{}) error { method processEvent (line 107) | func (m *resmgr) processEvent(e interface{}) { method processAvx (line 123) | func (m *resmgr) processAvx(e *events.Avx) bool { method resolveCgroupPath (line 153) | func (m *resmgr) resolveCgroupPath(path string) (cache.Container, bool) { FILE: pkg/cri/resource-manager/events/events.go type Metrics (line 18) | type Metrics struct type Avx (line 24) | type Avx struct type Policy (line 30) | type Policy struct constant ContainerStarted (line 41) | ContainerStarted = "container-started" FILE: pkg/cri/resource-manager/flags.go type options (line 27) | type options struct constant allowUntestedRuntimesFlag (line 53) | allowUntestedRuntimesFlag = "allow-untested-runtimes" function init (line 57) | func init() { FILE: pkg/cri/resource-manager/introspect/introspect.go type Pod (line 29) | type Pod struct type Container (line 37) | type Container struct type TopologyHints (line 50) | type TopologyHints type Assignment (line 53) | type Assignment struct type Pool (line 63) | type Pool struct type Socket (line 72) | type Socket struct type Node (line 78) | type Node struct type System (line 84) | type System struct type State (line 95) | type State struct type Server (line 107) | type Server struct method Set (line 126) | func (s *Server) Set(state *State) error { method Start (line 133) | func (s *Server) Start() { method Stop (line 139) | func (s *Server) Stop() { method set (line 145) | func (s *Server) set(state *State) error { method serve (line 160) | func (s *Server) serve(w http.ResponseWriter, _ *http.Request) { function Setup (line 116) | func Setup(mux *xhttp.ServeMux, state *State) (*Server, error) { function introspectError (line 171) | func introspectError(format string, args ...interface{}) error { FILE: pkg/cri/resource-manager/kubernetes/kubernetes.go constant ResmgrKeyNamespace (line 21) | ResmgrKeyNamespace = "cri-resource-manager.intel.com" constant NamespaceSystem (line 24) | NamespaceSystem = "kube-system" constant PodNameLabel (line 26) | PodNameLabel = "io.kubernetes.pod.name" constant PodUIDLabel (line 28) | PodUIDLabel = "io.kubernetes.pod.uid" constant ContainerNameLabel (line 30) | ContainerNameLabel = "io.kubernetes.container.name" function ResmgrKey (line 34) | func ResmgrKey(name string) string { FILE: pkg/cri/resource-manager/kubernetes/resources.go constant MinShares (line 22) | MinShares = 2 constant MaxShares (line 24) | MaxShares = 262144 constant SharesPerCPU (line 26) | SharesPerCPU = 1024 constant MilliCPUToCPU (line 28) | MilliCPUToCPU = 1000 constant QuotaPeriod (line 30) | QuotaPeriod = 100000 constant MinQuotaPeriod (line 32) | MinQuotaPeriod = 1000 function MilliCPUToQuota (line 37) | func MilliCPUToQuota(milliCPU int64) (quota, period int64) { function MilliCPUToShares (line 56) | func MilliCPUToShares(milliCPU int64) uint64 { function SharesToMilliCPU (line 71) | func SharesToMilliCPU(shares int64) int64 { function QuotaToMilliCPU (line 79) | func QuotaToMilliCPU(quota, period int64) int64 { FILE: pkg/cri/resource-manager/metrics/avx.go method collectAvxEvents (line 25) | func (m *Metrics) collectAvxEvents(raw map[string]*model.MetricFamily) *... FILE: pkg/cri/resource-manager/metrics/metrics.go constant DefaultAvxThreshold (line 39) | DefaultAvxThreshold = float64(0.1) type Options (line 43) | type Options struct type Metrics (line 53) | type Metrics struct method Start (line 92) | func (m *Metrics) Start() error { method Stop (line 134) | func (m *Metrics) Stop() { method poll (line 142) | func (m *Metrics) poll() error { method process (line 156) | func (m *Metrics) process() error { method sendEvent (line 171) | func (m *Metrics) sendEvent(e *events.Metrics) error { function NewMetrics (line 66) | func NewMetrics(opts Options) (*Metrics, error) { function dump (line 181) | func dump(prefix string, f *model.MetricFamily) { function metricsError (line 193) | func metricsError(format string, args ...interface{}) error { FILE: pkg/cri/resource-manager/metrics/prometheus.go method Gather (line 22) | func (m *Metrics) Gather() ([]*model.MetricFamily, error) { FILE: pkg/cri/resource-manager/no-test-api.go type ResourceManagerTestAPI (line 21) | type ResourceManagerTestAPI interface FILE: pkg/cri/resource-manager/policy/builtin/balloons/balloons-policy.go constant PolicyName (line 42) | PolicyName = "balloons" constant PolicyDescription (line 44) | PolicyDescription = "Flexible pools with per-pool CPU parameters" constant PolicyPath (line 46) | PolicyPath = "policy." + PolicyName constant balloonKey (line 48) | balloonKey = "balloon." + PolicyName + "." + kubernetes.ResmgrKeyNamespace constant reservedBalloonDefName (line 50) | reservedBalloonDefName = "reserved" constant defaultBalloonDefName (line 52) | defaultBalloonDefName = "default" constant NoLimit (line 54) | NoLimit = 0 type balloons (line 58) | type balloons struct method Name (line 193) | func (p *balloons) Name() string { method Description (line 198) | func (p *balloons) Description() string { method Start (line 203) | func (p *balloons) Start(add []cache.Container, del []cache.Container)... method Sync (line 210) | func (p *balloons) Sync(add []cache.Container, del []cache.Container) ... method AllocateResources (line 222) | func (p *balloons) AllocateResources(c cache.Container) error { method ReleaseResources (line 254) | func (p *balloons) ReleaseResources(c cache.Container) error { method UpdateResources (line 279) | func (p *balloons) UpdateResources(c cache.Container) error { method Rebalance (line 285) | func (p *balloons) Rebalance() (bool, error) { method HandleEvent (line 291) | func (p *balloons) HandleEvent(*events.Policy) (bool, error) { method ExportResourceData (line 297) | func (p *balloons) ExportResourceData(c cache.Container) map[string]st... method Introspect (line 302) | func (p *balloons) Introspect(*introspect.State) { method balloonByContainer (line 307) | func (p *balloons) balloonByContainer(c cache.Container) *Balloon { method balloonsByNamespace (line 322) | func (p *balloons) balloonsByNamespace(namespace string) []*Balloon { method balloonsByPod (line 343) | func (p *balloons) balloonsByPod(pod cache.Pod) []*Balloon { method balloonsByDef (line 356) | func (p *balloons) balloonsByDef(blnDef *BalloonDef) []*Balloon { method balloonDefByName (line 367) | func (p *balloons) balloonDefByName(defName string) *BalloonDef { method chooseBalloonDef (line 382) | func (p *balloons) chooseBalloonDef(c cache.Container) (*BalloonDef, e... method containerRequestedMilliCpus (line 410) | func (p *balloons) containerRequestedMilliCpus(contID string) int { method containerLimitedMilliCpus (line 422) | func (p *balloons) containerLimitedMilliCpus(contID string) int { method requestedMilliCpus (line 436) | func (p *balloons) requestedMilliCpus(bln *Balloon) int { method freeMilliCpus (line 446) | func (p *balloons) freeMilliCpus(bln *Balloon) int { method maxFreeMilliCpus (line 452) | func (p *balloons) maxFreeMilliCpus(bln *Balloon) int { method resetCpuClass (line 474) | func (p *balloons) resetCpuClass() error { method useCpuClass (line 494) | func (p *balloons) useCpuClass(bln *Balloon) error { method forgetCpuClass (line 519) | func (p *balloons) forgetCpuClass(bln *Balloon) { method newBalloon (line 526) | func (p *balloons) newBalloon(blnDef *BalloonDef, confCpus bool) (*Bal... method deleteBalloon (line 602) | func (p *balloons) deleteBalloon(bln *Balloon) { method freeBalloon (line 617) | func (p *balloons) freeBalloon(bln *Balloon) { method chooseBalloonInstance (line 625) | func (p *balloons) chooseBalloonInstance(blnDef *BalloonDef, fm FillMe... method allocateBalloon (line 768) | func (p *balloons) allocateBalloon(c cache.Container) (*Balloon, error) { method allocateBalloonOfDef (line 789) | func (p *balloons) allocateBalloonOfDef(blnDef *BalloonDef, c cache.Co... method dumpBalloon (line 826) | func (p *balloons) dumpBalloon(bln *Balloon) string { method getPodMilliCPU (line 856) | func (p *balloons) getPodMilliCPU(podID string) int64 { method configNotify (line 919) | func (p *balloons) configNotify(event pkgcfg.Event, source pkgcfg.Sour... method applyBalloonDef (line 955) | func (p *balloons) applyBalloonDef(balloons *[]*Balloon, blnDef *Ballo... method validateConfig (line 1029) | func (p *balloons) validateConfig(bpoptions *BalloonsOptions) error { method setConfig (line 1044) | func (p *balloons) setConfig(bpoptions *BalloonsOptions) error { method closestMems (line 1123) | func (p *balloons) closestMems(cpus cpuset.CPUSet) idset.IDSet { method availableMilliCpus (line 1145) | func (p *balloons) availableMilliCpus(balloon *Balloon) int64 { method resizeBalloon (line 1155) | func (p *balloons) resizeBalloon(bln *Balloon, newMilliCpus int) error { method updatePinning (line 1212) | func (p *balloons) updatePinning(blns ...*Balloon) { method shareIdleCpus (line 1227) | func (p *balloons) shareIdleCpus(addCpus, removeCpus cpuset.CPUSet) []... method assignContainer (line 1279) | func (p *balloons) assignContainer(c cache.Container, bln *Balloon) { method dismissContainer (line 1289) | func (p *balloons) dismissContainer(c cache.Container, bln *Balloon) { method pinCpuMem (line 1298) | func (p *balloons) pinCpuMem(c cache.Container, cpus cpuset.CPUSet, me... type Balloon (line 76) | type Balloon struct method String (line 102) | func (bln Balloon) String() string { method PrettyName (line 107) | func (bln Balloon) PrettyName() string { method ContainerIDs (line 113) | func (bln Balloon) ContainerIDs() []string { method ContainerCount (line 122) | func (bln Balloon) ContainerCount() int { method AvailMilliCpus (line 130) | func (bln Balloon) AvailMilliCpus() int { method MaxAvailMilliCpus (line 134) | func (bln Balloon) MaxAvailMilliCpus(freeCpus cpuset.CPUSet) int { function CreateBalloonsPolicy (line 142) | func CreateBalloonsPolicy(policyOptions *policy.BackendOptions) policy.B... function largest (line 459) | func largest(sliceLen int, valueOf func(i int) int) (int, int) { function namespaceMatches (line 757) | func namespaceMatches(namespace string, patterns []string) bool { function changesBalloons (line 870) | func changesBalloons(opts0, opts1 *BalloonsOptions) bool { function changesCpuClasses (line 897) | func changesCpuClasses(opts0, opts1 *BalloonsOptions) bool { function filterBalloons (line 1135) | func filterBalloons(balloons []*Balloon, test func(*Balloon) bool) (ret ... function balloonsError (line 1314) | func balloonsError(format string, args ...interface{}) error { function removeString (line 1319) | func removeString(strings []string, element string) []string { function max (line 1329) | func max(a, b int) int { function init (line 1337) | func init() { FILE: pkg/cri/resource-manager/policy/builtin/balloons/balloons-policy_test.go function TestChangesBalloons (line 21) | func TestChangesBalloons(t *testing.T) { FILE: pkg/cri/resource-manager/policy/builtin/balloons/cputree.go type CPUTopologyLevel (line 28) | type CPUTopologyLevel method String (line 87) | func (ctl CPUTopologyLevel) String() string { method MarshalJSON (line 107) | func (ctl CPUTopologyLevel) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 112) | func (ctl *CPUTopologyLevel) UnmarshalJSON(data []byte) error { constant CPUTopologyLevelUndefined (line 31) | CPUTopologyLevelUndefined CPUTopologyLevel = iota constant CPUTopologyLevelSystem (line 32) | CPUTopologyLevelSystem constant CPUTopologyLevelPackage (line 33) | CPUTopologyLevelPackage constant CPUTopologyLevelDie (line 34) | CPUTopologyLevelDie constant CPUTopologyLevelNuma (line 35) | CPUTopologyLevelNuma constant CPUTopologyLevelCore (line 36) | CPUTopologyLevelCore constant CPUTopologyLevelThread (line 37) | CPUTopologyLevelThread constant CPUTopologyLevelCount (line 38) | CPUTopologyLevelCount type cpuTreeNode (line 42) | type cpuTreeNode struct method String (line 128) | func (t *cpuTreeNode) String() string { method PrettyPrint (line 135) | func (t *cpuTreeNode) PrettyPrint() string { method CopyTree (line 163) | func (t *cpuTreeNode) CopyTree() *cpuTreeNode { method CopyNode (line 172) | func (t *cpuTreeNode) CopyNode() *cpuTreeNode { method Depth (line 184) | func (t *cpuTreeNode) Depth() int { method AddChild (line 192) | func (t *cpuTreeNode) AddChild(child *cpuTreeNode) { method AddCpus (line 198) | func (t *cpuTreeNode) AddCpus(cpus cpuset.CPUSet) { method Cpus (line 206) | func (t *cpuTreeNode) Cpus() cpuset.CPUSet { method SiblingIndex (line 213) | func (t *cpuTreeNode) SiblingIndex() int { method FindLeafWithCpu (line 225) | func (t *cpuTreeNode) FindLeafWithCpu(cpu int) *cpuTreeNode { method DepthFirstWalk (line 258) | func (t *cpuTreeNode) DepthFirstWalk(handler func(*cpuTreeNode) error)... method CpuLocations (line 276) | func (t *cpuTreeNode) CpuLocations(cpus cpuset.CPUSet) [][]string { method ToAttributedSlice (line 343) | func (t *cpuTreeNode) ToAttributedSlice( method toAttributedSlice (line 353) | func (t *cpuTreeNode) toAttributedSlice( method SplitLevel (line 396) | func (t *cpuTreeNode) SplitLevel(splitLevel CPUTopologyLevel, cpuClass... method NewAllocator (line 451) | func (t *cpuTreeNode) NewAllocator(options cpuTreeAllocatorOptions) *c... type cpuTreeNodeAttributes (line 58) | type cpuTreeNodeAttributes struct method String (line 149) | func (tna cpuTreeNodeAttributes) String() string { type cpuTreeAllocator (line 71) | type cpuTreeAllocator struct method sorterAllocate (line 478) | func (ta *cpuTreeAllocator) sorterAllocate(tnas []cpuTreeNodeAttribute... method sorterRelease (line 510) | func (ta *cpuTreeAllocator) sorterRelease(tnas []cpuTreeNodeAttributes... method ResizeCpus (line 559) | func (ta *cpuTreeAllocator) ResizeCpus(currentCpus, freeCpus cpuset.CP... method resizeCpus (line 621) | func (ta *cpuTreeAllocator) resizeCpus(currentCpus, freeCpus cpuset.CP... type cpuTreeAllocatorOptions (line 78) | type cpuTreeAllocatorOptions struct function NewCpuTree (line 156) | func NewCpuTree(name string) *cpuTreeNode { function NewCpuTreeFromSystem (line 291) | func NewCpuTreeFromSystem() (*cpuTreeNode, error) { FILE: pkg/cri/resource-manager/policy/builtin/balloons/cputree_test.go type cpuInTopology (line 26) | type cpuInTopology struct method TopoName (line 33) | func (cit cpuInTopology) TopoName(topoLevel string) string { type cpusInTopology (line 31) | type cpusInTopology method dumps (line 49) | func (csit cpusInTopology) dumps(nameCpus map[string]cpuset.CPUSet) st... method getElements (line 160) | func (csit cpusInTopology) getElements(topoLevel string, cpus cpuset.C... method verifyDisjoint (line 168) | func (csit cpusInTopology) verifyDisjoint(t *testing.T, topoLevel stri... function newCpuTreeFromInt5 (line 68) | func newCpuTreeFromInt5(pdnct [5]int) (*cpuTreeNode, cpusInTopology) { function verifyNotOn (line 113) | func verifyNotOn(t *testing.T, nameContents string, cpus cpuset.CPUSet, ... function doVerifySame (line 122) | func doVerifySame(t *testing.T, topoLevel string, cpus cpuset.CPUSet, cs... function verifySame (line 152) | func verifySame(t *testing.T, topoLevel string, cpus cpuset.CPUSet, csit... function verifyNotSame (line 156) | func verifyNotSame(t *testing.T, topoLevel string, cpus cpuset.CPUSet, c... function TestResizeCpus (line 226) | func TestResizeCpus(t *testing.T) { function TestWalk (line 579) | func TestWalk(t *testing.T) { function TestCpuLocations (line 645) | func TestCpuLocations(t *testing.T) { function TestCPUTopologyLevel (line 672) | func TestCPUTopologyLevel(t *testing.T) { function TestSplitLevel (line 715) | func TestSplitLevel(t *testing.T) { FILE: pkg/cri/resource-manager/policy/builtin/balloons/fillmethod.go type FillMethod (line 24) | type FillMethod method String (line 79) | func (fm FillMethod) String() string { method MarshalJSON (line 87) | func (fm FillMethod) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 93) | func (fm *FillMethod) UnmarshalJSON(b []byte) error { constant FillUnspecified (line 27) | FillUnspecified FillMethod = iota constant FillBalanced (line 30) | FillBalanced constant FillBalancedInflate (line 34) | FillBalancedInflate constant FillPacked (line 38) | FillPacked constant FillPackedInflate (line 42) | FillPackedInflate constant FillSameNamespace (line 45) | FillSameNamespace constant FillSamePod (line 48) | FillSamePod constant FillNewBalloon (line 51) | FillNewBalloon constant FillNewBalloonMust (line 55) | FillNewBalloonMust constant FillReservedBalloon (line 58) | FillReservedBalloon constant FillDefaultBalloon (line 61) | FillDefaultBalloon FILE: pkg/cri/resource-manager/policy/builtin/balloons/flags.go type BalloonsOptions (line 26) | type BalloonsOptions method DeepCopy (line 131) | func (bo *BalloonsOptions) DeepCopy() *BalloonsOptions { method UnmarshalJSON (line 169) | func (bo *BalloonsOptions) UnmarshalJSON(data []byte) error { type balloonsOptionsWrapped (line 29) | type balloonsOptionsWrapped struct type BalloonDef (line 64) | type BalloonDef struct method String (line 143) | func (bdef BalloonDef) String() string { method DeepCopy (line 148) | func (bdef *BalloonDef) DeepCopy() *BalloonDef { function defaultBalloonsOptions (line 156) | func defaultBalloonsOptions() interface{} { function init (line 179) | func init() { FILE: pkg/cri/resource-manager/policy/builtin/balloons/metrics.go constant balloonsDesc (line 29) | balloonsDesc = iota type Metrics (line 62) | type Metrics struct type BalloonMetrics (line 67) | type BalloonMetrics struct method DescribeMetrics (line 94) | func (p *balloons) DescribeMetrics() []*prometheus.Desc { method PollMetrics (line 99) | func (p *balloons) PollMetrics() policy.Metrics { method CollectMetrics (line 145) | func (p *balloons) CollectMetrics(m policy.Metrics) ([]prometheus.Metric... FILE: pkg/cri/resource-manager/policy/builtin/dynamic-pools/cpu.go type cpuTimesStat (line 18) | type cpuTimesStat struct function getCpuUtilization (line 33) | func getCpuUtilization(interval time.Duration) ([]float64, error) { function getCpuTimesStat (line 49) | func getCpuTimesStat(ctx context.Context) ([]cpuTimesStat, error) { function wait (line 68) | func wait(ctx context.Context, interval time.Duration) error { function calculateAllCpusUtilization (line 78) | func calculateAllCpusUtilization(cts1, cts2 []cpuTimesStat) ([]float64, ... function readCpuLines (line 90) | func readCpuLines(filename string) ([]string, error) { function parseStatLine (line 120) | func parseStatLine(cpuLine string) (*cpuTimesStat, error) { function calculateOneCpuUtilization (line 189) | func calculateOneCpuUtilization(cts1, cts2 cpuTimesStat) float64 { function getBusyTime (line 201) | func getBusyTime(cts cpuTimesStat) (float64, float64) { FILE: pkg/cri/resource-manager/policy/builtin/dynamic-pools/dyp.go constant PolicyName (line 43) | PolicyName = "dynamic-pools" constant PolicyDescription (line 45) | PolicyDescription = "The cpuset of the dynamic pools can be dynamically ... constant PolicyPath (line 47) | PolicyPath = "policy." + PolicyName constant dynamicPoolKey (line 49) | dynamicPoolKey = "dynamic-pool." + PolicyName + "." + kubernetes.ResmgrK... constant reservedDynamicPoolDefName (line 51) | reservedDynamicPoolDefName = "reserved" constant sharedDynamicPoolDefName (line 53) | sharedDynamicPoolDefName = "shared" type dynamicPools (line 57) | type dynamicPools struct method calculateAllPoolWeights (line 139) | func (p *dynamicPools) calculateAllPoolWeights() (map[*DynamicPool]flo... method calculateAllPoolRequests (line 167) | func (p *dynamicPools) calculateAllPoolRequests() (map[*DynamicPool]in... method containerPinPool (line 182) | func (p *dynamicPools) containerPinPool(dp *DynamicPool) { method calculatePoolCpuset (line 192) | func (p *dynamicPools) calculatePoolCpuset(requestCpu map[*DynamicPool... method isNeedReallocate (line 235) | func (p *dynamicPools) isNeedReallocate(newPoolCpu map[*DynamicPool]in... method updatePoolCpuset (line 248) | func (p *dynamicPools) updatePoolCpuset() error { method Name (line 345) | func (p *dynamicPools) Name() string { method Description (line 350) | func (p *dynamicPools) Description() string { method Start (line 355) | func (p *dynamicPools) Start(add []cache.Container, del []cache.Contai... method Sync (line 361) | func (p *dynamicPools) Sync(add []cache.Container, del []cache.Contain... method AllocateResources (line 373) | func (p *dynamicPools) AllocateResources(c cache.Container) error { method ReleaseResources (line 398) | func (p *dynamicPools) ReleaseResources(c cache.Container) error { method UpdateResources (line 418) | func (p *dynamicPools) UpdateResources(c cache.Container) error { method Rebalance (line 424) | func (p *dynamicPools) Rebalance() (bool, error) { method HandleEvent (line 431) | func (p *dynamicPools) HandleEvent(*events.Policy) (bool, error) { method ExportResourceData (line 437) | func (p *dynamicPools) ExportResourceData(c cache.Container) map[strin... method Introspect (line 442) | func (p *dynamicPools) Introspect(*introspect.State) { method dynamicPoolByContainer (line 447) | func (p *dynamicPools) dynamicPoolByContainer(c cache.Container) *Dyna... method dynamicPoolByDef (line 461) | func (p *dynamicPools) dynamicPoolByDef(dpDef *DynamicPoolDef) *Dynami... method dynamicPoolDefByName (line 471) | func (p *dynamicPools) dynamicPoolDefByName(defName string) *DynamicPo... method chooseDynamicPoolDef (line 487) | func (p *dynamicPools) chooseDynamicPoolDef(c cache.Container) (*Dynam... method containerRequestedMilliCpus (line 521) | func (p *dynamicPools) containerRequestedMilliCpus(contID string) int { method containerLimitedMilliCpus (line 533) | func (p *dynamicPools) containerLimitedMilliCpus(contID string) int { method requestedMaxMilliCpus (line 547) | func (p *dynamicPools) requestedMaxMilliCpus(dp *DynamicPool) int { method requestedMinMilliCpus (line 557) | func (p *dynamicPools) requestedMinMilliCpus(dp *DynamicPool) int { method useCpuClass (line 566) | func (p *dynamicPools) useCpuClass(dp *DynamicPool) error { method newDynamicPool (line 590) | func (p *dynamicPools) newDynamicPool(dpDef *DynamicPoolDef, confCpus ... method allocateDynamicPool (line 628) | func (p *dynamicPools) allocateDynamicPool(c cache.Container) (*Dynami... method dumpDynamicPool (line 644) | func (p *dynamicPools) dumpDynamicPool(dp *DynamicPool) string { method configNotify (line 719) | func (p *dynamicPools) configNotify(event pkgcfg.Event, source pkgcfg.... method applyDynamicPoolDef (line 754) | func (p *dynamicPools) applyDynamicPoolDef(dynamicPools *[]*DynamicPoo... method setConfig (line 790) | func (p *dynamicPools) setConfig(dpoptions *DynamicPoolsOptions) error { method closestMems (line 852) | func (p *dynamicPools) closestMems(cpus cpuset.CPUSet) idset.IDSet { method assignContainer (line 864) | func (p *dynamicPools) assignContainer(c cache.Container, dp *DynamicP... method dismissContainer (line 872) | func (p *dynamicPools) dismissContainer(c cache.Container, dp *Dynamic... method pinCpuMem (line 881) | func (p *dynamicPools) pinCpuMem(c cache.Container, cpus cpuset.CPUSet... type DynamicPool (line 73) | type DynamicPool struct method String (line 89) | func (dp DynamicPool) String() string { method PrettyName (line 94) | func (dp DynamicPool) PrettyName() string { method ContainerIDs (line 100) | func (dp DynamicPool) ContainerIDs() []string { method ContainerCount (line 109) | func (dp DynamicPool) ContainerCount() int { method AvailMilliCpus (line 118) | func (dp DynamicPool) AvailMilliCpus() int { method updateRealCpuUsed (line 123) | func (dp *DynamicPool) updateRealCpuUsed(cpuInfo []float64) (float64, ... function CreateDynamicPoolsPolicy (line 300) | func CreateDynamicPoolsPolicy(policyOptions *policy.BackendOptions) poli... function namespaceMatches (line 617) | func namespaceMatches(namespace string, patterns []string) bool { function changesDynamicPools (line 675) | func changesDynamicPools(opts0, opts1 *DynamicPoolsOptions) bool { function changesCpuClasses (line 700) | func changesCpuClasses(opts0, opts1 *DynamicPoolsOptions) bool { function dynamicPoolsError (line 897) | func dynamicPoolsError(format string, args ...interface{}) error { function removeString (line 902) | func removeString(strings []string, element string) []string { function init (line 913) | func init() { FILE: pkg/cri/resource-manager/policy/builtin/dynamic-pools/dyp_test.go function TestChangesDynamicPools (line 23) | func TestChangesDynamicPools(t *testing.T) { function TestIsNeedReallocate (line 82) | func TestIsNeedReallocate(t *testing.T) { function TestCalculatePoolCpuset (line 147) | func TestCalculatePoolCpuset(t *testing.T) { FILE: pkg/cri/resource-manager/policy/builtin/dynamic-pools/flags.go type DynamicPoolsOptions (line 26) | type DynamicPoolsOptions method DeepCopy (line 58) | func (dpo *DynamicPoolsOptions) DeepCopy() *DynamicPoolsOptions { method UnmarshalJSON (line 96) | func (bo *DynamicPoolsOptions) UnmarshalJSON(data []byte) error { type dynamicPoolsOptionsWrapped (line 29) | type dynamicPoolsOptionsWrapped struct type DynamicPoolDef (line 42) | type DynamicPoolDef struct method String (line 70) | func (dpDef DynamicPoolDef) String() string { method DeepCopy (line 75) | func (bdef *DynamicPoolDef) DeepCopy() *DynamicPoolDef { function defaultDynamicPoolsOptions (line 83) | func defaultDynamicPoolsOptions() interface{} { function init (line 106) | func init() { FILE: pkg/cri/resource-manager/policy/builtin/dynamic-pools/metrics.go constant dynamicPoolsDesc (line 29) | dynamicPoolsDesc = iota type Metrics (line 50) | type Metrics struct type DynamicPoolMetrics (line 55) | type DynamicPoolMetrics struct method DescribeMetrics (line 70) | func (p *dynamicPools) DescribeMetrics() []*prometheus.Desc { method PollMetrics (line 75) | func (p *dynamicPools) PollMetrics() policy.Metrics { method CollectMetrics (line 106) | func (p *dynamicPools) CollectMetrics(m policy.Metrics) ([]prometheus.Me... FILE: pkg/cri/resource-manager/policy/builtin/none/none-policy.go constant PolicyName (line 28) | PolicyName = policy.NonePolicy constant PolicyDescription (line 30) | PolicyDescription = "A no-op policy, doing pretty much nothing." type none (line 33) | type none struct method Name (line 48) | func (n *none) Name() string { method Description (line 53) | func (n *none) Description() string { method Start (line 58) | func (n *none) Start(add []cache.Container, del []cache.Container) err... method Sync (line 64) | func (n *none) Sync(add []cache.Container, del []cache.Container) error { method AllocateResources (line 70) | func (n *none) AllocateResources(c cache.Container) error { method ReleaseResources (line 76) | func (n *none) ReleaseResources(c cache.Container) error { method UpdateResources (line 82) | func (n *none) UpdateResources(c cache.Container) error { method Rebalance (line 88) | func (n *none) Rebalance() (bool, error) { method HandleEvent (line 94) | func (n *none) HandleEvent(*events.Policy) (bool, error) { method ExportResourceData (line 100) | func (n *none) ExportResourceData(c cache.Container) map[string]string { method Introspect (line 105) | func (n *none) Introspect(*introspect.State) { method PollMetrics (line 110) | func (p *none) PollMetrics() policy.Metrics { method DescribeMetrics (line 115) | func (p *none) DescribeMetrics() []*prometheus.Desc { method CollectMetrics (line 120) | func (p *none) CollectMetrics(policy.Metrics) ([]prometheus.Metric, er... function CreateNonePolicy (line 41) | func CreateNonePolicy(opts *policy.BackendOptions) policy.Backend { function init (line 125) | func init() { FILE: pkg/cri/resource-manager/policy/builtin/podpools/flags.go type PodpoolsOptions (line 26) | type PodpoolsOptions struct type PoolDef (line 36) | type PoolDef struct type FillOrder (line 63) | type FillOrder method String (line 78) | func (fo FillOrder) String() string { method MarshalJSON (line 86) | func (fo FillOrder) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 92) | func (fo *FillOrder) UnmarshalJSON(b []byte) error { constant FillBalanced (line 66) | FillBalanced FillOrder = iota constant FillPacked (line 67) | FillPacked constant FillFirstFree (line 68) | FillFirstFree function defaultPodpoolsOptions (line 108) | func defaultPodpoolsOptions() interface{} { function init (line 119) | func init() { FILE: pkg/cri/resource-manager/policy/builtin/podpools/metrics.go type Metrics (line 30) | type Metrics struct type PoolMetrics (line 35) | type PoolMetrics struct constant cpuUsageDesc (line 48) | cpuUsageDesc = iota constant poolCPUUsageDesc (line 49) | poolCPUUsageDesc method DescribeMetrics (line 79) | func (p *podpools) DescribeMetrics() []*prometheus.Desc { method PollMetrics (line 84) | func (p *podpools) PollMetrics() policy.Metrics { method CollectMetrics (line 134) | func (p *podpools) CollectMetrics(m policy.Metrics) ([]prometheus.Metric... function updateCPUUsageMetrics (line 172) | func updateCPUUsageMetrics() ([]prometheus.Metric, error) { function updatePoolCPUUsageMetrics (line 193) | func updatePoolCPUUsageMetrics(ppm *Metrics) ([]prometheus.Metric, error) { FILE: pkg/cri/resource-manager/policy/builtin/podpools/podpools-policy.go constant PolicyName (line 42) | PolicyName = "podpools" constant PolicyDescription (line 44) | PolicyDescription = "Pod-granularity workload placement" constant PolicyPath (line 46) | PolicyPath = "policy." + PolicyName constant podpoolKey (line 48) | podpoolKey = "pool." + PolicyName + "." + kubernetes.ResmgrKeyNamespace constant reservedPoolDefName (line 50) | reservedPoolDefName = "reserved" constant defaultPoolDefName (line 52) | defaultPoolDefName = "default" constant podMilliCPUErrorMargin (line 57) | podMilliCPUErrorMargin = int64(10) type podpools (line 61) | type podpools struct method Name (line 169) | func (p *podpools) Name() string { method Description (line 174) | func (p *podpools) Description() string { method Start (line 179) | func (p *podpools) Start(add []cache.Container, del []cache.Container)... method Sync (line 185) | func (p *podpools) Sync(add []cache.Container, del []cache.Container) ... method AllocateResources (line 197) | func (p *podpools) AllocateResources(c cache.Container) error { method ReleaseResources (line 218) | func (p *podpools) ReleaseResources(c cache.Container) error { method UpdateResources (line 241) | func (p *podpools) UpdateResources(c cache.Container) error { method Rebalance (line 247) | func (p *podpools) Rebalance() (bool, error) { method HandleEvent (line 253) | func (p *podpools) HandleEvent(*events.Policy) (bool, error) { method ExportResourceData (line 259) | func (p *podpools) ExportResourceData(c cache.Container) map[string]st... method Introspect (line 264) | func (p *podpools) Introspect(*introspect.State) { method allocatedPool (line 269) | func (p *podpools) allocatedPool(pod cache.Pod) *Pool { method allocatePool (line 280) | func (p *podpools) allocatePool(pod cache.Pod) *Pool { method containersInPool (line 320) | func (p *podpools) containersInPool(pod cache.Pod, pool *Pool) int { method dumpPool (line 328) | func (p *podpools) dumpPool(pool *Pool) string { method freePool (line 351) | func (p *podpools) freePool(pod cache.Pod, pool *Pool) { method trackPodCPU (line 358) | func (p *podpools) trackPodCPU(pod cache.Pod, pool *Pool) { method validatePodCPU (line 381) | func (p *podpools) validatePodCPU(pod cache.Pod, pool *Pool) { method getPodMilliCPU (line 406) | func (p *podpools) getPodMilliCPU(podID string) int64 { method configNotify (line 419) | func (p *podpools) configNotify(event pkgcfg.Event, source pkgcfg.Sour... method getPoolDefName (line 431) | func (p *podpools) getPoolDefName(pod cache.Pod) string { method getPoolDef (line 442) | func (p *podpools) getPoolDef(pod cache.Pod) *PoolDef { method applyPoolDef (line 461) | func (p *podpools) applyPoolDef(pools *[]*Pool, poolDef *PoolDef, free... method setConfig (line 545) | func (p *podpools) setConfig(ppoptions *PodpoolsOptions) error { method closestMems (line 623) | func (p *podpools) closestMems(cpus cpuset.CPUSet) idset.IDSet { method availableMilliCPUs (line 704) | func (p *podpools) availableMilliCPUs(pool *Pool) int64 { method assignContainer (line 714) | func (p *podpools) assignContainer(c cache.Container, pool *Pool) { method dismissContainer (line 722) | func (p *podpools) dismissContainer(c cache.Container, pool *Pool) { method pinCpuMem (line 728) | func (p *podpools) pinCpuMem(c cache.Container, cpus cpuset.CPUSet, me... type Pool (line 75) | type Pool struct method String (line 97) | func (pool Pool) String() string { method PrettyName (line 109) | func (pool Pool) PrettyName() string { function CreatePodpoolsPolicy (line 114) | func CreatePodpoolsPolicy(policyOptions *policy.BackendOptions) policy.B... function filterPools (line 635) | func filterPools(pools []*Pool, test func(*Pool) bool) (ret []*Pool) { function parseInstancesCPUs (line 647) | func parseInstancesCPUs(is string, cs string, freeCpus int) (int, int, e... function podpoolsError (line 744) | func podpoolsError(format string, args ...interface{}) error { function removeString (line 749) | func removeString(strings []string, element string) []string { function init (line 760) | func init() { FILE: pkg/cri/resource-manager/policy/builtin/podpools/podpools-policy_test.go function validateError (line 26) | func validateError(t *testing.T, expectedError string, err error) bool { function assertEqualPools (line 44) | func assertEqualPools(t *testing.T, expectedPool, gotPool Pool) bool { type mockCpuAllocator (line 62) | type mockCpuAllocator struct method AllocateCpus (line 64) | func (mca *mockCpuAllocator) AllocateCpus(from *cpuset.CPUSet, cnt int... method ReleaseCpus (line 85) | func (mca *mockCpuAllocator) ReleaseCpus(*cpuset.CPUSet, int, cpualloc... function TestApplyPoolDef (line 89) | func TestApplyPoolDef(t *testing.T) { function TestParseInstancesCPUs (line 431) | func TestParseInstancesCPUs(t *testing.T) { FILE: pkg/cri/resource-manager/policy/builtin/static-plus/static-plus-policy.go constant PolicyName (line 40) | PolicyName = "static-plus" constant PolicyDescription (line 42) | PolicyDescription = "A simple policy supporting exclusive/pinned and sha... constant keyAllocations (line 44) | keyAllocations = "allocations" constant keySharedPool (line 46) | keySharedPool = "shared-pool" constant keyPreferIsolated (line 48) | keyPreferIsolated = "prefer-isolated-cpus" type Assignment (line 52) | type Assignment struct type Allocations (line 58) | type Allocations type staticplus (line 61) | type staticplus struct method Name (line 98) | func (p *staticplus) Name() string { method Description (line 103) | func (p *staticplus) Description() string { method Start (line 108) | func (p *staticplus) Start(add []cache.Container, del []cache.Containe... method Sync (line 121) | func (p *staticplus) Sync(add []cache.Container, del []cache.Container... method AllocateResources (line 134) | func (p *staticplus) AllocateResources(c cache.Container) error { method ReleaseResources (line 154) | func (p *staticplus) ReleaseResources(c cache.Container) error { method UpdateResources (line 168) | func (p *staticplus) UpdateResources(c cache.Container) error { method Rebalance (line 174) | func (p *staticplus) Rebalance() (bool, error) { method HandleEvent (line 180) | func (p *staticplus) HandleEvent(*events.Policy) (bool, error) { method ExportResourceData (line 186) | func (p *staticplus) ExportResourceData(c cache.Container) map[string]... method Introspect (line 214) | func (p *staticplus) Introspect(*introspect.State) { method DescribeMetrics (line 219) | func (p *staticplus) DescribeMetrics() []*prometheus.Desc { method PollMetrics (line 224) | func (p *staticplus) PollMetrics() policy.Metrics { method CollectMetrics (line 229) | func (p *staticplus) CollectMetrics(policy.Metrics) ([]prometheus.Metr... method setupPools (line 239) | func (p *staticplus) setupPools(available, reserved policy.ConstraintS... method restoreCache (line 311) | func (p *staticplus) restoreCache() error { method requestedCpus (line 337) | func (p *staticplus) requestedCpus(c cache.Container) (int, int) { method optOutFromIsolation (line 350) | func (p *staticplus) optOutFromIsolation(c cache.Container) bool { method assignCpus (line 377) | func (p *staticplus) assignCpus(c cache.Container) (*Assignment, error) { method addAssignment (line 416) | func (p *staticplus) addAssignment(c cache.Container, a *Assignment) e... method delAssignment (line 473) | func (p *staticplus) delAssignment(a *Assignment, id string) error { method updateSharedAllocations (line 509) | func (p *staticplus) updateSharedAllocations() error { method updatePools (line 554) | func (p *staticplus) updatePools() error { method dumpPools (line 584) | func (p *staticplus) dumpPools() { method dumpAllocations (line 603) | func (p *staticplus) dumpAllocations() { method takeCPUs (line 622) | func (p *staticplus) takeCPUs(from, to *cpuset.CPUSet, cnt int, prefer... function CreateStaticPlusPolicy (line 78) | func CreateStaticPlusPolicy(opts *policy.BackendOptions) policy.Backend { function policyError (line 234) | func policyError(format string, args ...interface{}) error { type CachedAllocations (line 640) | type CachedAllocations interface type cachedAllocations (line 644) | type cachedAllocations struct method Get (line 653) | func (ca *cachedAllocations) Get() interface{} { method Set (line 657) | func (ca *cachedAllocations) Set(value interface{}) { method MarshalJSON (line 671) | func (ca *cachedAllocations) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 683) | func (ca *cachedAllocations) UnmarshalJSON(data []byte) error { type marshallableAssignment (line 666) | type marshallableAssignment struct constant MinShares (line 719) | MinShares = 2 constant SharesPerCPU (line 720) | SharesPerCPU = 1024 constant MilliCPUToCPU (line 721) | MilliCPUToCPU = 1000 constant QuotaPeriod (line 724) | QuotaPeriod = 100000 constant MinQuotaPeriod (line 725) | MinQuotaPeriod = 1000 function MilliCPUToQuota (line 729) | func MilliCPUToQuota(milliCPU int64, period int64) (quota int64) { function MilliCPUToShares (line 756) | func MilliCPUToShares(milliCPU int) int64 { function init (line 772) | func init() { FILE: pkg/cri/resource-manager/policy/builtin/static-pools/config.go type config (line 33) | type config struct type pools (line 46) | type pools type cpuList (line 48) | type cpuList struct method addContainer (line 65) | func (c *cpuList) addContainer(id string) { method removeContainer (line 72) | func (c *cpuList) removeContainer(id string) { method getContainers (line 79) | func (c *cpuList) getContainers() []string { function defaultConfig (line 58) | func defaultConfig() interface{} { type poolConfig (line 93) | type poolConfig struct method cpuSet (line 99) | func (p *poolConfig) cpuSet() string { function parseConfData (line 113) | func parseConfData(raw []byte) (pools, error) { function readConfFile (line 125) | func readConfFile(filepath string) (pools, error) { function readConfDir (line 135) | func readConfDir(confDir string) (pools, error) { function readPoolConfDir (line 158) | func readPoolConfDir(poolDir string) (poolConfig, error) { function readSocketConfDir (line 194) | func readSocketConfDir(socketDir string) ([]*cpuList, error) { function validateCPUList (line 221) | func validateCPUList(name string) error { function parseCPUListName (line 232) | func parseCPUListName(name string) ([]uint, error) { function init (line 250) | func init() { FILE: pkg/cri/resource-manager/policy/builtin/static-pools/node.go constant exclusiveCoreResourceName (line 30) | exclusiveCoreResourceName = "cmk.intel.com/exclusive-cores" constant cmkLegacyNodeLabelName (line 31) | cmkLegacyNodeLabelName = "cmk.intel.com/cmk-node" type nodeUpdater (line 34) | type nodeUpdater struct method start (line 48) | func (u *nodeUpdater) start() error { method update (line 85) | func (u *nodeUpdater) update(c config) { method updateNode (line 95) | func (u *nodeUpdater) updateNode(conf *config, opTimeout time.Duration... function newNodeUpdater (line 40) | func newNodeUpdater(agent agent.Interface) *nodeUpdater { FILE: pkg/cri/resource-manager/policy/builtin/static-pools/stp-policy.go constant PolicyName (line 37) | PolicyName = "static-pools" constant PolicyDescription (line 39) | PolicyDescription = "A reimplementation of CMK (CPU Manager for Kubernet... constant PolicyPath (line 41) | PolicyPath = "policy." + PolicyName constant StpEnvPool (line 43) | StpEnvPool = "STP_POOL" constant StpEnvSocketID (line 45) | StpEnvSocketID = "STP_SOCKET_ID" constant StpEnvNoAffinity (line 47) | StpEnvNoAffinity = "STP_NO_AFFINITY" constant CmkEnvAssigned (line 51) | CmkEnvAssigned = "CMK_CPUS_ASSIGNED" constant CmkEnvInfra (line 55) | CmkEnvInfra = "CMK_CPUS_INFRA" constant CmkEnvShared (line 59) | CmkEnvShared = "CMK_CPUS_SHARED" constant CmkEnvNumCores (line 62) | CmkEnvNumCores = "CMK_NUM_CORES" constant CmkPoolInfra (line 64) | CmkPoolInfra = "infra" constant CmkPoolShared (line 66) | CmkPoolShared = "shared" type stp (line 69) | type stp struct method Name (line 99) | func (stp *stp) Name() string { method Description (line 104) | func (stp *stp) Description() string { method Start (line 109) | func (stp *stp) Start(add []cache.Container, del []cache.Container) er... method Sync (line 135) | func (stp *stp) Sync(add []cache.Container, del []cache.Container) err... method AllocateResources (line 148) | func (stp *stp) AllocateResources(c cache.Container) error { method ReleaseResources (line 221) | func (stp *stp) ReleaseResources(c cache.Container) error { method UpdateResources (line 228) | func (stp *stp) UpdateResources(c cache.Container) error { method Rebalance (line 234) | func (stp *stp) Rebalance() (bool, error) { method HandleEvent (line 240) | func (stp *stp) HandleEvent(*events.Policy) (bool, error) { method ExportResourceData (line 246) | func (stp *stp) ExportResourceData(c cache.Container) map[string]string { method Introspect (line 251) | func (stp *stp) Introspect(*introspect.State) { method DescribeMetrics (line 256) | func (p *stp) DescribeMetrics() []*prometheus.Desc { method PollMetrics (line 261) | func (p *stp) PollMetrics() policy.Metrics { method CollectMetrics (line 266) | func (p *stp) CollectMetrics(policy.Metrics) ([]prometheus.Metric, err... method configNotify (line 270) | func (stp *stp) configNotify(event pkgcfg.Event, source pkgcfg.Source)... method setConfig (line 282) | func (stp *stp) setConfig(cfg *config) error { method initializeState (line 329) | func (stp *stp) initializeState() error { method verifyConfig (line 344) | func (stp *stp) verifyConfig(cfg *config) error { method parseContainerCmdline (line 397) | func (stp *stp) parseContainerCmdline(cmd, args []string) *cmkLegacyAr... method allocateStpResources (line 447) | func (stp *stp) allocateStpResources(c cache.Container, cs stpContaine... method releaseStpResources (line 552) | func (stp *stp) releaseStpResources(containerID string) error { method getContainerRegistry (line 607) | func (stp *stp) getContainerRegistry() *stpContainerCache { method setContainerRegistry (line 618) | func (stp *stp) setContainerRegistry(ccr *stpContainerCache) { function CreateStpPolicy (line 84) | func CreateStpPolicy(opts *policy.BackendOptions) policy.Backend { function stpError (line 325) | func stpError(format string, args ...interface{}) error { type cmkLegacyArgs (line 388) | type cmkLegacyArgs struct function parseCmkCmdline (line 420) | func parseCmkCmdline(args []string) *cmkLegacyArgs { function getAvailableCPULists (line 539) | func getAvailableCPULists(socket int64, pool *poolConfig) [](*cpuList) { constant cacheKeyContainerRegistry (line 576) | cacheKeyContainerRegistry = "ContainerRegistry" type stpContainerStatus (line 579) | type stpContainerStatus struct type stpContainerCache (line 588) | type stpContainerCache method Set (line 591) | func (c *stpContainerCache) Set(value interface{}) { method Get (line 602) | func (c *stpContainerCache) Get() interface{} { function init (line 623) | func init() { FILE: pkg/cri/resource-manager/policy/builtin/static-pools/stp-policy_test.go function TestParseContainerCmdline (line 28) | func TestParseContainerCmdline(t *testing.T) { function TestCachableData (line 71) | func TestCachableData(t *testing.T) { FILE: pkg/cri/resource-manager/policy/builtin/static/flags.go type options (line 23) | type options struct type Tristate (line 31) | type Tristate method UnmarshalJSON (line 46) | func (t *Tristate) UnmarshalJSON(data []byte) error { method MarshalJSON (line 67) | func (t Tristate) MarshalJSON() ([]byte, error) { method String (line 80) | func (t *Tristate) String() string { constant TristateOff (line 35) | TristateOff = iota constant TristateOn (line 37) | TristateOn constant TristateAuto (line 39) | TristateAuto function defaultOptions (line 91) | func defaultOptions() interface{} { function init (line 96) | func init() { FILE: pkg/cri/resource-manager/policy/builtin/static/static-policy.go constant PolicyName (line 41) | PolicyName = "static" constant PolicyDescription (line 43) | PolicyDescription = "A reimplementation of the static CPU Manager policy." constant PolicyPath (line 45) | PolicyPath = "policy." + PolicyName type static (line 48) | type static struct method Name (line 95) | func (s *static) Name() string { method Description (line 100) | func (s *static) Description() string { method Start (line 105) | func (s *static) Start(add []cache.Container, del []cache.Container) e... method Sync (line 125) | func (s *static) Sync(add []cache.Container, del []cache.Container) er... method AllocateResources (line 138) | func (s *static) AllocateResources(c cache.Container) error { method ReleaseResources (line 154) | func (s *static) ReleaseResources(c cache.Container) error { method UpdateResources (line 164) | func (s *static) UpdateResources(c cache.Container) error { method Rebalance (line 170) | func (s *static) Rebalance() (bool, error) { method HandleEvent (line 176) | func (s *static) HandleEvent(*events.Policy) (bool, error) { method ExportResourceData (line 182) | func (s *static) ExportResourceData(c cache.Container) map[string]stri... method Introspect (line 203) | func (s *static) Introspect(*introspect.State) { method DescribeMetrics (line 208) | func (p *static) DescribeMetrics() []*prometheus.Desc { method PollMetrics (line 213) | func (p *static) PollMetrics() policy.Metrics { method CollectMetrics (line 218) | func (p *static) CollectMetrics(policy.Metrics) ([]prometheus.Metric, ... method configNotify (line 222) | func (s *static) configNotify(event config.Event, source config.Source... method assignableCPUs (line 238) | func (s *static) assignableCPUs(numCPUs int) cpuset.CPUSet { method AddContainer (line 251) | func (s *static) AddContainer(pod cache.Pod, container cache.Container... method RemoveContainer (line 274) | func (s *static) RemoveContainer(containerID string) error { method cpuPreference (line 297) | func (s *static) cpuPreference(containerID string, numCPUs int) (bool,... method allocateOrdinaryCPUs (line 333) | func (s *static) allocateOrdinaryCPUs(numCPUs int) (cpuset.CPUSet, err... method allocateIsolatedCPUs (line 347) | func (s *static) allocateIsolatedCPUs(numCPUs int, prefer bool) (cpuse... method allocateCPUs (line 364) | func (s *static) allocateCPUs(numCPUs int, containerID string) (cpuset... method guaranteedCPUs (line 388) | func (s *static) guaranteedCPUs(pod cache.Pod, container cache.Contain... method checkConstraints (line 407) | func (s *static) checkConstraints() error { method allocateReserved (line 431) | func (s *static) allocateReserved() error { method validateState (line 462) | func (s *static) validateState(state cache.Cache) error { method takeByTopology (line 529) | func (s *static) takeByTopology(available cpuset.CPUSet, numCPUs int, ... method validateAssignments (line 540) | func (s *static) validateAssignments() { method GetCPUAssignments (line 582) | func (s *static) GetCPUAssignments() ContainerCPUAssignments { method SetCPUAssignments (line 598) | func (s *static) SetCPUAssignments(ca ContainerCPUAssignments) { method GetDefaultCPUSet (line 603) | func (s *static) GetDefaultCPUSet() cpuset.CPUSet { method SetDefaultCPUSet (line 614) | func (s *static) SetDefaultCPUSet(cset cpuset.CPUSet) { method GetCPUSet (line 627) | func (s *static) GetCPUSet(containerID string) (cpuset.CPUSet, bool) { method SetCPUSet (line 635) | func (s *static) SetCPUSet(containerID string, cset cpuset.CPUSet) { method Delete (line 644) | func (s *static) Delete(containerID string) { method SetCpusetCpus (line 654) | func (s *static) SetCpusetCpus(id, value string) error { constant keyPreferIsolated (line 67) | keyPreferIsolated = "prefer-isolated-cpus" function NewStaticPolicy (line 71) | func NewStaticPolicy(opts *policy.BackendOptions) policy.Backend { function policyError (line 555) | func policyError(format string, args ...interface{}) error { type ContainerCPUAssignments (line 569) | type ContainerCPUAssignments constant keyAssignments (line 577) | keyAssignments = "CPUAssignments" constant keyDefaultCPUs (line 578) | keyDefaultCPUs = "DefaultCPUSet" function init (line 667) | func init() { FILE: pkg/cri/resource-manager/policy/builtin/topology-aware/affinity.go method calculatePoolAffinities (line 23) | func (p *policy) calculatePoolAffinities(container cache.Container) (map... method calculateContainerAffinity (line 47) | func (p *policy) calculateContainerAffinity(container cache.Container) (... method registerImplicitAffinities (line 71) | func (p *policy) registerImplicitAffinities() error { FILE: pkg/cri/resource-manager/policy/builtin/topology-aware/cache.go constant keyAllocations (line 27) | keyAllocations = "allocations" constant keyConfig (line 28) | keyConfig = "config" method saveAllocations (line 31) | func (p *policy) saveAllocations() { method restoreAllocations (line 36) | func (p *policy) restoreAllocations(allocations *allocations) error { method reinstateGrants (line 62) | func (p *policy) reinstateGrants(grants map[string]Grant) error { type cachedGrant (line 96) | type cachedGrant struct method ToGrant (line 130) | func (ccg *cachedGrant) ToGrant(policy *policy) (Grant, error) { function newCachedGrant (line 109) | func newCachedGrant(cg Grant) *cachedGrant { method MarshalJSON (line 159) | func (cg *grant) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 163) | func (cg *grant) UnmarshalJSON(data []byte) error { method MarshalJSON (line 175) | func (a *allocations) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 184) | func (a *allocations) UnmarshalJSON(data []byte) error { method Get (line 206) | func (a *allocations) Get() interface{} { method Set (line 210) | func (a *allocations) Set(value interface{}) { method Dump (line 227) | func (a *allocations) Dump(logfn func(format string, args ...interface{}... FILE: pkg/cri/resource-manager/policy/builtin/topology-aware/cache_test.go function TestToGrant (line 24) | func TestToGrant(t *testing.T) { function TestAllocationMarshalling (line 82) | func TestAllocationMarshalling(t *testing.T) { FILE: pkg/cri/resource-manager/policy/builtin/topology-aware/coldstart.go method triggerColdStart (line 25) | func (p *policy) triggerColdStart(c cache.Container) error { method finishColdStart (line 59) | func (p *policy) finishColdStart(c cache.Container) (bool, error) { FILE: pkg/cri/resource-manager/policy/builtin/topology-aware/coldstart_test.go function sendEvent (line 33) | func sendEvent(param interface{}) error { function TestColdStart (line 44) | func TestColdStart(t *testing.T) { FILE: pkg/cri/resource-manager/policy/builtin/topology-aware/error.go function policyError (line 22) | func policyError(format string, args ...interface{}) error { FILE: pkg/cri/resource-manager/policy/builtin/topology-aware/flags.go type options (line 22) | type options struct function defaultOptions (line 44) | func defaultOptions() interface{} { function init (line 55) | func init() { FILE: pkg/cri/resource-manager/policy/builtin/topology-aware/hint.go function cpuHintScore (line 28) | func cpuHintScore(hint topology.Hint, CPUs cpuset.CPUSet) float64 { function numaHintScore (line 39) | func numaHintScore(hint topology.Hint, sysIDs ...idset.ID) float64 { function dieHintScore (line 58) | func dieHintScore(hint topology.Hint, sysID idset.ID, socket system.CPUP... function socketHintScore (line 77) | func socketHintScore(hint topology.Hint, sysID idset.ID) float64 { method hintCpus (line 93) | func (cs *supply) hintCpus(h topology.Hint) cpuset.CPUSet { FILE: pkg/cri/resource-manager/policy/builtin/topology-aware/hint_test.go function TestCpuHintScore (line 25) | func TestCpuHintScore(t *testing.T) { function TestNumaHintScore (line 71) | func TestNumaHintScore(t *testing.T) { function TestSocketHintScore (line 109) | func TestSocketHintScore(t *testing.T) { function TestHintCpus (line 147) | func TestHintCpus(t *testing.T) { FILE: pkg/cri/resource-manager/policy/builtin/topology-aware/logging.go constant IndentDepth (line 28) | IndentDepth = 4 function indent (line 31) | func indent(prefix string, level ...int) string { FILE: pkg/cri/resource-manager/policy/builtin/topology-aware/mocks_test.go type mockSystemNode (line 33) | type mockSystemNode struct method MemoryInfo (line 41) | func (fake *mockSystemNode) MemoryInfo() (*system.MemInfo, error) { method PackageID (line 45) | func (fake *mockSystemNode) PackageID() idset.ID { method DieID (line 49) | func (fake *mockSystemNode) DieID() idset.ID { method ID (line 53) | func (fake *mockSystemNode) ID() idset.ID { method GetMemoryType (line 57) | func (fake *mockSystemNode) GetMemoryType() system.MemoryType { method HasNormalMemory (line 61) | func (fake *mockSystemNode) HasNormalMemory() bool { method CPUSet (line 65) | func (fake *mockSystemNode) CPUSet() cpuset.CPUSet { method Distance (line 69) | func (fake *mockSystemNode) Distance() []int { method DistanceFrom (line 76) | func (fake *mockSystemNode) DistanceFrom(id idset.ID) int { type mockCPUPackage (line 80) | type mockCPUPackage struct method ID (line 83) | func (p *mockCPUPackage) ID() idset.ID { method CPUSet (line 87) | func (p *mockCPUPackage) CPUSet() cpuset.CPUSet { method NodeIDs (line 91) | func (p *mockCPUPackage) NodeIDs() []idset.ID { method DieIDs (line 95) | func (p *mockCPUPackage) DieIDs() []idset.ID { method DieCPUSet (line 99) | func (p *mockCPUPackage) DieCPUSet(idset.ID) cpuset.CPUSet { method DieNodeIDs (line 103) | func (p *mockCPUPackage) DieNodeIDs(idset.ID) []idset.ID { method SstInfo (line 107) | func (p *mockCPUPackage) SstInfo() *sst.SstPackageInfo { type mockCPU (line 111) | type mockCPU struct method BaseFrequency (line 119) | func (c *mockCPU) BaseFrequency() uint64 { method EPP (line 122) | func (c *mockCPU) EPP() system.EPP { method ID (line 125) | func (c *mockCPU) ID() idset.ID { method PackageID (line 128) | func (c *mockCPU) PackageID() idset.ID { method DieID (line 131) | func (c *mockCPU) DieID() idset.ID { method NodeID (line 134) | func (c *mockCPU) NodeID() idset.ID { method CoreID (line 137) | func (c *mockCPU) CoreID() idset.ID { method ThreadCPUSet (line 140) | func (c *mockCPU) ThreadCPUSet() cpuset.CPUSet { method FrequencyRange (line 143) | func (c *mockCPU) FrequencyRange() system.CPUFreq { method Online (line 146) | func (c *mockCPU) Online() bool { method Isolated (line 149) | func (c *mockCPU) Isolated() bool { method SetFrequencyLimits (line 152) | func (c *mockCPU) SetFrequencyLimits(min, max uint64) error { method SstClos (line 156) | func (c *mockCPU) SstClos() int { type mockSystem (line 160) | type mockSystem struct method Node (line 168) | func (fake *mockSystem) Node(id idset.ID) system.Node { method CPU (line 177) | func (fake *mockSystem) CPU(idset.ID) system.CPU { method CPUCount (line 180) | func (fake *mockSystem) CPUCount() int { method Discover (line 186) | func (fake *mockSystem) Discover() error { method Package (line 189) | func (fake *mockSystem) Package(idset.ID) system.CPUPackage { method Offlined (line 192) | func (fake *mockSystem) Offlined() cpuset.CPUSet { method Isolated (line 195) | func (fake *mockSystem) Isolated() cpuset.CPUSet { method CPUSet (line 202) | func (fake *mockSystem) CPUSet() cpuset.CPUSet { method CPUIDs (line 205) | func (fake *mockSystem) CPUIDs() []idset.ID { method PackageCount (line 208) | func (fake *mockSystem) PackageCount() int { method SocketCount (line 214) | func (fake *mockSystem) SocketCount() int { method NUMANodeCount (line 220) | func (fake *mockSystem) NUMANodeCount() int { method ThreadCount (line 223) | func (fake *mockSystem) ThreadCount() int { method PackageIDs (line 229) | func (fake *mockSystem) PackageIDs() []idset.ID { method NodeIDs (line 236) | func (fake *mockSystem) NodeIDs() []idset.ID { method SetCPUFrequencyLimits (line 243) | func (fake *mockSystem) SetCPUFrequencyLimits(min, max uint64, cpus id... method SetCpusOnline (line 246) | func (fake *mockSystem) SetCpusOnline(online bool, cpus idset.IDSet) (... method NodeDistance (line 249) | func (fake *mockSystem) NodeDistance(idset.ID, idset.ID) int { type mockContainer (line 253) | type mockContainer struct method PrettyName (line 265) | func (m *mockContainer) PrettyName() string { method GetPod (line 268) | func (m *mockContainer) GetPod() (cache.Pod, bool) { method GetID (line 274) | func (m *mockContainer) GetID() string { method GetPodID (line 277) | func (m *mockContainer) GetPodID() string { method GetCacheID (line 280) | func (m *mockContainer) GetCacheID() string { method GetName (line 287) | func (m *mockContainer) GetName() string { method GetNamespace (line 290) | func (m *mockContainer) GetNamespace() string { method UpdateState (line 293) | func (m *mockContainer) UpdateState(cache.ContainerState) { method GetState (line 296) | func (m *mockContainer) GetState() cache.ContainerState { method GetQOSClass (line 299) | func (m *mockContainer) GetQOSClass() v1.PodQOSClass { method GetImage (line 306) | func (m *mockContainer) GetImage() string { method GetCommand (line 309) | func (m *mockContainer) GetCommand() []string { method GetArgs (line 312) | func (m *mockContainer) GetArgs() []string { method GetLabelKeys (line 315) | func (m *mockContainer) GetLabelKeys() []string { method GetLabel (line 318) | func (m *mockContainer) GetLabel(string) (string, bool) { method GetLabels (line 321) | func (m *mockContainer) GetLabels() map[string]string { method GetResmgrLabelKeys (line 324) | func (m *mockContainer) GetResmgrLabelKeys() []string { method GetResmgrLabel (line 327) | func (m *mockContainer) GetResmgrLabel(string) (string, bool) { method GetAnnotationKeys (line 330) | func (m *mockContainer) GetAnnotationKeys() []string { method GetAnnotation (line 333) | func (m *mockContainer) GetAnnotation(string, interface{}) (string, bo... method GetResmgrAnnotationKeys (line 336) | func (m *mockContainer) GetResmgrAnnotationKeys() []string { method GetResmgrAnnotation (line 339) | func (m *mockContainer) GetResmgrAnnotation(string, interface{}) (stri... method GetEffectiveAnnotation (line 342) | func (m *mockContainer) GetEffectiveAnnotation(key string) (string, bo... method GetAnnotations (line 349) | func (m *mockContainer) GetAnnotations() map[string]string { method GetEnvKeys (line 352) | func (m *mockContainer) GetEnvKeys() []string { method GetEnv (line 355) | func (m *mockContainer) GetEnv(string) (string, bool) { method GetMounts (line 358) | func (m *mockContainer) GetMounts() []cache.Mount { method GetMountByHost (line 361) | func (m *mockContainer) GetMountByHost(string) *cache.Mount { method GetMountByContainer (line 364) | func (m *mockContainer) GetMountByContainer(string) *cache.Mount { method GetDevices (line 367) | func (m *mockContainer) GetDevices() []cache.Device { method GetDeviceByHost (line 370) | func (m *mockContainer) GetDeviceByHost(string) *cache.Device { method GetDeviceByContainer (line 373) | func (m *mockContainer) GetDeviceByContainer(string) *cache.Device { method GetResourceRequirements (line 376) | func (m *mockContainer) GetResourceRequirements() v1.ResourceRequireme... method GetLinuxResources (line 379) | func (m *mockContainer) GetLinuxResources() *criv1.LinuxContainerResou... method SetCommand (line 382) | func (m *mockContainer) SetCommand([]string) { method SetArgs (line 385) | func (m *mockContainer) SetArgs([]string) { method SetLabel (line 388) | func (m *mockContainer) SetLabel(string, string) { method DeleteLabel (line 391) | func (m *mockContainer) DeleteLabel(string) { method SetAnnotation (line 394) | func (m *mockContainer) SetAnnotation(string, string) { method DeleteAnnotation (line 397) | func (m *mockContainer) DeleteAnnotation(string) { method SetEnv (line 400) | func (m *mockContainer) SetEnv(string, string) { method UnsetEnv (line 403) | func (m *mockContainer) UnsetEnv(string) { method InsertMount (line 406) | func (m *mockContainer) InsertMount(*cache.Mount) { method DeleteMount (line 409) | func (m *mockContainer) DeleteMount(string) { method InsertDevice (line 412) | func (m *mockContainer) InsertDevice(*cache.Device) { method DeleteDevice (line 415) | func (m *mockContainer) DeleteDevice(string) { method GetTopologyHints (line 418) | func (m *mockContainer) GetTopologyHints() topology.Hints { method GetCPUPeriod (line 421) | func (m *mockContainer) GetCPUPeriod() int64 { method GetCPUQuota (line 424) | func (m *mockContainer) GetCPUQuota() int64 { method GetCPUShares (line 427) | func (m *mockContainer) GetCPUShares() int64 { method GetMemoryLimit (line 430) | func (m *mockContainer) GetMemoryLimit() int64 { method GetOomScoreAdj (line 433) | func (m *mockContainer) GetOomScoreAdj() int64 { method GetCpusetCpus (line 436) | func (m *mockContainer) GetCpusetCpus() string { method GetCpusetMems (line 439) | func (m *mockContainer) GetCpusetMems() string { method SetLinuxResources (line 442) | func (m *mockContainer) SetLinuxResources(*criv1.LinuxContainerResourc... method SetCPUPeriod (line 445) | func (m *mockContainer) SetCPUPeriod(int64) { method SetCPUQuota (line 448) | func (m *mockContainer) SetCPUQuota(int64) { method SetCPUShares (line 451) | func (m *mockContainer) SetCPUShares(int64) { method SetMemoryLimit (line 453) | func (m *mockContainer) SetMemoryLimit(int64) { method SetOomScoreAdj (line 456) | func (m *mockContainer) SetOomScoreAdj(int64) { method SetCpusetCpus (line 459) | func (m *mockContainer) SetCpusetCpus(string) { method SetCpusetMems (line 461) | func (m *mockContainer) SetCpusetMems(string) { method UpdateCriCreateRequest (line 463) | func (m *mockContainer) UpdateCriCreateRequest(*criv1.CreateContainerR... method CriUpdateRequest (line 466) | func (m *mockContainer) CriUpdateRequest() (*criv1.UpdateContainerReso... method GetAffinity (line 469) | func (m *mockContainer) GetAffinity() ([]*cache.Affinity, error) { method SetRDTClass (line 472) | func (m *mockContainer) SetRDTClass(string) { method GetRDTClass (line 475) | func (m *mockContainer) GetRDTClass() string { method SetBlockIOClass (line 478) | func (m *mockContainer) SetBlockIOClass(string) { method GetBlockIOClass (line 481) | func (m *mockContainer) GetBlockIOClass() string { method SetToptierLimit (line 484) | func (m *mockContainer) SetToptierLimit(int64) { method GetToptierLimit (line 487) | func (m *mockContainer) GetToptierLimit() int64 { method SetPageMigration (line 490) | func (m *mockContainer) SetPageMigration(*cache.PageMigrate) { method GetPageMigration (line 493) | func (m *mockContainer) GetPageMigration() *cache.PageMigrate { method SetCRIRequest (line 496) | func (m *mockContainer) SetCRIRequest(req interface{}) error { method GetCRIRequest (line 499) | func (m *mockContainer) GetCRIRequest() (interface{}, bool) { method ClearCRIRequest (line 502) | func (m *mockContainer) ClearCRIRequest() (interface{}, bool) { method GetCRIEnvs (line 505) | func (m *mockContainer) GetCRIEnvs() []*criv1.KeyValue { method GetCRIMounts (line 508) | func (m *mockContainer) GetCRIMounts() []*criv1.Mount { method GetCRIDevices (line 511) | func (m *mockContainer) GetCRIDevices() []*criv1.Device { method GetPending (line 514) | func (m *mockContainer) GetPending() []string { method HasPending (line 517) | func (m *mockContainer) HasPending(string) bool { method ClearPending (line 520) | func (m *mockContainer) ClearPending(string) { method GetTag (line 523) | func (m *mockContainer) GetTag(string) (string, bool) { method SetTag (line 526) | func (m *mockContainer) SetTag(string, string) (string, bool) { method DeleteTag (line 529) | func (m *mockContainer) DeleteTag(string) (string, bool) { method String (line 532) | func (m *mockContainer) String() string { method Eval (line 535) | func (m *mockContainer) Eval(string) interface{} { method GetProcesses (line 538) | func (m *mockContainer) GetProcesses() ([]string, error) { method GetTasks (line 541) | func (m *mockContainer) GetTasks() ([]string, error) { method GetCgroupDir (line 544) | func (m *mockContainer) GetCgroupDir() string { type mockPod (line 548) | type mockPod struct method GetInitContainers (line 558) | func (m *mockPod) GetInitContainers() []cache.Container { method GetContainers (line 561) | func (m *mockPod) GetContainers() []cache.Container { method GetContainer (line 564) | func (m *mockPod) GetContainer(string) (cache.Container, bool) { method GetID (line 567) | func (m *mockPod) GetID() string { method GetUID (line 570) | func (m *mockPod) GetUID() string { method GetName (line 573) | func (m *mockPod) GetName() string { method GetNamespace (line 576) | func (m *mockPod) GetNamespace() string { method GetState (line 579) | func (m *mockPod) GetState() cache.PodState { method GetQOSClass (line 582) | func (m *mockPod) GetQOSClass() v1.PodQOSClass { method GetLabelKeys (line 585) | func (m *mockPod) GetLabelKeys() []string { method GetLabel (line 588) | func (m *mockPod) GetLabel(string) (string, bool) { method GetResmgrLabelKeys (line 591) | func (m *mockPod) GetResmgrLabelKeys() []string { method GetResmgrLabel (line 594) | func (m *mockPod) GetResmgrLabel(string) (string, bool) { method GetAnnotationKeys (line 597) | func (m *mockPod) GetAnnotationKeys() []string { method GetAnnotation (line 600) | func (m *mockPod) GetAnnotation(string) (string, bool) { method GetAnnotationObject (line 603) | func (m *mockPod) GetAnnotationObject(string, interface{}, func([]byte... method GetResmgrAnnotationKeys (line 606) | func (m *mockPod) GetResmgrAnnotationKeys() []string { method GetResmgrAnnotation (line 609) | func (m *mockPod) GetResmgrAnnotation(key string) (string, bool) { method GetResmgrAnnotationObject (line 615) | func (m *mockPod) GetResmgrAnnotationObject(string, interface{}, func(... method GetEffectiveAnnotation (line 618) | func (m *mockPod) GetEffectiveAnnotation(key, container string) (strin... method GetCgroupParentDir (line 628) | func (m *mockPod) GetCgroupParentDir() string { method GetPodResourceRequirements (line 631) | func (m *mockPod) GetPodResourceRequirements() cache.PodResourceRequir... method GetContainerAffinity (line 634) | func (m *mockPod) GetContainerAffinity(string) ([]*cache.Affinity, err... method ScopeExpression (line 637) | func (m *mockPod) ScopeExpression() *resmgr.Expression { method String (line 640) | func (m *mockPod) String() string { method Eval (line 643) | func (m *mockPod) Eval(string) interface{} { method GetProcesses (line 646) | func (m *mockPod) GetProcesses(bool) ([]string, error) { method GetTasks (line 649) | func (m *mockPod) GetTasks(bool) ([]string, error) { type mockCache (line 653) | type mockCache struct method InsertPod (line 659) | func (m *mockCache) InsertPod(string, interface{}, *cache.PodStatus) (... method DeletePod (line 662) | func (m *mockCache) DeletePod(string) cache.Pod { method LookupPod (line 665) | func (m *mockCache) LookupPod(string) (cache.Pod, bool) { method InsertContainer (line 668) | func (m *mockCache) InsertContainer(interface{}) (cache.Container, err... method UpdateContainerID (line 671) | func (m *mockCache) UpdateContainerID(string, interface{}) (cache.Cont... method DeleteContainer (line 674) | func (m *mockCache) DeleteContainer(string) cache.Container { method LookupContainer (line 677) | func (m *mockCache) LookupContainer(string) (cache.Container, bool) { method LookupContainerByCgroup (line 680) | func (m *mockCache) LookupContainerByCgroup(path string) (cache.Contai... method GetPendingContainers (line 683) | func (m *mockCache) GetPendingContainers() []cache.Container { method GetPods (line 686) | func (m *mockCache) GetPods() []cache.Pod { method GetContainers (line 689) | func (m *mockCache) GetContainers() []cache.Container { method GetContainerCacheIds (line 692) | func (m *mockCache) GetContainerCacheIds() []string { method GetContainerIds (line 695) | func (m *mockCache) GetContainerIds() []string { method FilterScope (line 698) | func (m *mockCache) FilterScope(*resmgr.Expression) []cache.Container { method EvaluateAffinity (line 701) | func (m *mockCache) EvaluateAffinity(*cache.Affinity) map[string]int32 { method AddImplicitAffinities (line 706) | func (m *mockCache) AddImplicitAffinities(map[string]cache.ImplicitAff... method GetActivePolicy (line 709) | func (m *mockCache) GetActivePolicy() string { method SetActivePolicy (line 712) | func (m *mockCache) SetActivePolicy(string) error { method ResetActivePolicy (line 715) | func (m *mockCache) ResetActivePolicy() error { method SetPolicyEntry (line 718) | func (m *mockCache) SetPolicyEntry(string, interface{}) { method GetPolicyEntry (line 720) | func (m *mockCache) GetPolicyEntry(string, interface{}) bool { method SetConfig (line 723) | func (m *mockCache) SetConfig(*config.RawConfig) error { method GetConfig (line 726) | func (m *mockCache) GetConfig() *config.RawConfig { method ResetConfig (line 729) | func (m *mockCache) ResetConfig() error { method SetAdjustment (line 732) | func (m *mockCache) SetAdjustment(*config.Adjustment) (bool, map[strin... method Save (line 735) | func (m *mockCache) Save() error { method RefreshPods (line 738) | func (m *mockCache) RefreshPods(*criv1.ListPodSandboxResponse, map[str... method RefreshContainers (line 741) | func (m *mockCache) RefreshContainers(*criv1.ListContainersResponse) (... method ContainerDirectory (line 744) | func (m *mockCache) ContainerDirectory(string) string { method OpenFile (line 747) | func (m *mockCache) OpenFile(string, string, os.FileMode) (*os.File, e... method WriteFile (line 750) | func (m *mockCache) WriteFile(string, string, os.FileMode, []byte) err... FILE: pkg/cri/resource-manager/policy/builtin/topology-aware/node.go type NodeKind (line 37) | type NodeKind constant NilNode (line 41) | NilNode NodeKind = "" constant UnknownNode (line 43) | UnknownNode NodeKind = "unknown" constant SocketNode (line 45) | SocketNode NodeKind = "socket" constant DieNode (line 47) | DieNode NodeKind = "die" constant NumaNode (line 49) | NumaNode NodeKind = "numa node" constant VirtualNode (line 51) | VirtualNode NodeKind = "virtual node" constant OverfitPenalty (line 56) | OverfitPenalty = 0.9 type Node (line 60) | type Node interface type node (line 123) | type node struct method init (line 180) | func (n *node) init(p *policy, name string, kind NodeKind, parent Node) { method IsNil (line 195) | func (n *node) IsNil() bool { method Name (line 200) | func (n *node) Name() string { method Kind (line 208) | func (n *node) Kind() NodeKind { method NodeID (line 213) | func (n *node) NodeID() int { method IsSameNode (line 221) | func (n *node) IsSameNode(other Node) bool { method IsRootNode (line 226) | func (n *node) IsRootNode() bool { method IsLeafNode (line 231) | func (n *node) IsLeafNode() bool { method RootDistance (line 236) | func (n *node) RootDistance() int { method NodeHeight (line 244) | func (n *node) NodeHeight() int { method Parent (line 252) | func (n *node) Parent() Node { method Children (line 261) | func (n *node) Children() []Node { method LinkParent (line 270) | func (n *node) LinkParent(parent Node) { method AddChildren (line 280) | func (n *node) AddChildren(nodes []Node) { method Dump (line 285) | func (n *node) Dump(prefix string, level ...int) { method dump (line 333) | func (n *node) dump(prefix string, level ...int) { method DepthFirst (line 338) | func (n *node) DepthFirst(fn func(Node) error) error { method BreadthFirst (line 349) | func (n *node) BreadthFirst(fn func(Node) error) error { method System (line 364) | func (n *node) System() system.System { method Policy (line 369) | func (n *node) Policy() *policy { method GetSupply (line 374) | func (n *node) GetSupply() Supply { method DiscoverSupply (line 379) | func (n *node) DiscoverSupply(assignedNUMANodes []idset.ID) Supply { method discoverSupply (line 384) | func (n *node) discoverSupply(assignedNUMANodes []idset.ID) Supply { method FreeSupply (line 473) | func (n *node) FreeSupply() Supply { method GetMemset (line 478) | func (n *node) GetMemset(mtype memoryType) idset.IDSet { method AssignNUMANodes (line 486) | func (n *node) AssignNUMANodes(ids []idset.ID) { method assignNUMANodes (line 491) | func (n *node) assignNUMANodes(ids []idset.ID) { method GetPhysicalNodeIDs (line 535) | func (n *node) GetPhysicalNodeIDs() []idset.ID { method GrantedReservedCPU (line 540) | func (n *node) GrantedReservedCPU() int { method GrantedSharedCPU (line 549) | func (n *node) GrantedSharedCPU() int { method GetScore (line 558) | func (n *node) GetScore(req Request) Score { method HintScore (line 564) | func (n *node) HintScore(hint topology.Hint) float64 { method GetMemoryType (line 568) | func (n *node) GetMemoryType() memoryType { method HasMemoryType (line 582) | func (n *node) HasMemoryType(reqType memoryType) bool { type nodeself (line 140) | type nodeself struct type socketnode (line 145) | type socketnode struct method dump (line 753) | func (n *socketnode) dump(prefix string, level ...int) { method GetSupply (line 758) | func (n *socketnode) GetSupply() Supply { method GetPhysicalNodeIDs (line 762) | func (n *socketnode) GetPhysicalNodeIDs() []idset.ID { method DiscoverSupply (line 773) | func (n *socketnode) DiscoverSupply(assignedNUMANodes []idset.ID) Supp... method GetMemset (line 778) | func (n *socketnode) GetMemset(mtype memoryType) idset.IDSet { method AssignNUMANodes (line 795) | func (n *socketnode) AssignNUMANodes(ids []idset.ID) { method HintScore (line 800) | func (n *socketnode) HintScore(hint topology.Hint) float64 { type dienode (line 152) | type dienode struct method dump (line 674) | func (n *dienode) dump(prefix string, level ...int) { method GetSupply (line 679) | func (n *dienode) GetSupply() Supply { method GetPhysicalNodeIDs (line 683) | func (n *dienode) GetPhysicalNodeIDs() []idset.ID { method DiscoverSupply (line 694) | func (n *dienode) DiscoverSupply(assignedNUMANodes []idset.ID) Supply { method GetMemset (line 699) | func (n *dienode) GetMemset(mtype memoryType) idset.IDSet { method AssignNUMANodes (line 716) | func (n *dienode) AssignNUMANodes(ids []idset.ID) { method HintScore (line 721) | func (n *dienode) HintScore(hint topology.Hint) float64 { type numanode (line 159) | type numanode struct method dump (line 599) | func (n *numanode) dump(prefix string, level ...int) { method GetSupply (line 604) | func (n *numanode) GetSupply() Supply { method GetPhysicalNodeIDs (line 608) | func (n *numanode) GetPhysicalNodeIDs() []idset.ID { method DiscoverSupply (line 613) | func (n *numanode) DiscoverSupply(assignedNUMANodes []idset.ID) Supply { method GetMemset (line 618) | func (n *numanode) GetMemset(mtype memoryType) idset.IDSet { method AssignNUMANodes (line 635) | func (n *numanode) AssignNUMANodes(ids []idset.ID) { method HintScore (line 640) | func (n *numanode) HintScore(hint topology.Hint) float64 { type virtualnode (line 166) | type virtualnode struct method dump (line 825) | func (n *virtualnode) dump(prefix string, level ...int) { method GetSupply (line 830) | func (n *virtualnode) GetSupply() Supply { method DiscoverSupply (line 835) | func (n *virtualnode) DiscoverSupply(assignedNUMANodes []idset.ID) Sup... method GetMemset (line 840) | func (n *virtualnode) GetMemset(mtype memoryType) idset.IDSet { method AssignNUMANodes (line 857) | func (n *virtualnode) AssignNUMANodes(ids []idset.ID) { method HintScore (line 863) | func (n *virtualnode) HintScore(hint topology.Hint) float64 { method GetPhysicalNodeIDs (line 879) | func (n *virtualnode) GetPhysicalNodeIDs() []idset.ID { method NewNumaNode (line 588) | func (p *policy) NewNumaNode(id idset.ID, parent Node) Node { method NewDieNode (line 662) | func (p *policy) NewDieNode(id idset.ID, parent Node) Node { method NewSocketNode (line 742) | func (p *policy) NewSocketNode(id idset.ID, parent Node) Node { method NewVirtualNode (line 816) | func (p *policy) NewVirtualNode(name string, parent Node) Node { function init (line 889) | func init() { FILE: pkg/cri/resource-manager/policy/builtin/topology-aware/pod-preferences.go constant keyIsolationPreference (line 37) | keyIsolationPreference = "prefer-isolated-cpus" constant keySharedCPUPreference (line 39) | keySharedCPUPreference = "prefer-shared-cpus" constant keyMemoryTypePreference (line 41) | keyMemoryTypePreference = "memory-type" constant keyColdStartPreference (line 43) | keyColdStartPreference = "cold-start" constant keyReservedCPUsPreference (line 45) | keyReservedCPUsPreference = "prefer-reserved-cpus" constant preferIsolatedCPUsKey (line 48) | preferIsolatedCPUsKey = keyIsolationPreference + "." + kubernetes.Resmgr... constant preferSharedCPUsKey (line 50) | preferSharedCPUsKey = keySharedCPUPreference + "." + kubernetes.ResmgrKe... constant preferMemoryTypeKey (line 52) | preferMemoryTypeKey = keyMemoryTypePreference + "." + kubernetes.ResmgrK... constant preferColdStartKey (line 54) | preferColdStartKey = keyColdStartPreference + "." + kubernetes.ResmgrKey... constant preferReservedCPUsKey (line 56) | preferReservedCPUsKey = keyReservedCPUsPreference + "." + kubernetes.Res... type cpuClass (line 60) | type cpuClass method String (line 543) | func (t cpuClass) String() string { constant cpuNormal (line 69) | cpuNormal cpuClass = iota constant cpuReserved (line 70) | cpuReserved type memoryType (line 89) | type memoryType method String (line 551) | func (t memoryType) String() string { method MarshalJSON (line 580) | func (t memoryType) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 586) | func (t *memoryType) UnmarshalJSON(data []byte) error { constant memoryUnspec (line 93) | memoryUnspec memoryType = (0x1 << iota) >> 1 constant memoryDRAM (line 94) | memoryDRAM constant memoryPMEM (line 95) | memoryPMEM constant memoryHBM (line 96) | memoryHBM constant memoryFirstUnusedBit (line 97) | memoryFirstUnusedBit constant memoryAll (line 98) | memoryAll = memoryFirstUnusedBit - 1 constant defaultMemoryType (line 101) | defaultMemoryType = memoryAll function isolatedCPUsPreference (line 110) | func isolatedCPUsPreference(pod cache.Pod, container cache.Container) (b... function sharedCPUsPreference (line 135) | func sharedCPUsPreference(pod cache.Pod, container cache.Container) (boo... function memoryTypePreference (line 158) | func memoryTypePreference(pod cache.Pod, container cache.Container) memo... function coldStartPreference (line 182) | func coldStartPreference(pod cache.Pod, container cache.Container) (Cold... function podIsolationPreference (line 211) | func podIsolationPreference(pod cache.Pod, container cache.Container) (b... function podSharedCPUPreference (line 248) | func podSharedCPUPreference(pod cache.Pod, container cache.Container) (b... type ColdStartPreference (line 288) | type ColdStartPreference struct function podColdStartPreference (line 294) | func podColdStartPreference(pod cache.Pod, container cache.Container) (C... function checkReservedPoolNamespaces (line 327) | func checkReservedPoolNamespaces(namespace string) bool { function checkReservedCPUsAnnotations (line 346) | func checkReservedCPUsAnnotations(c cache.Container) (bool, bool) { function cpuAllocationPreferences (line 368) | func cpuAllocationPreferences(pod cache.Pod, container cache.Container) ... function podMemoryTypePreference (line 488) | func podMemoryTypePreference(pod cache.Pod, c cache.Container) memoryType { function memoryAllocationPreference (line 527) | func memoryAllocationPreference(pod cache.Pod, c cache.Container) (uint6... function parseMemoryType (line 564) | func parseMemoryType(value string) (memoryType, error) { FILE: pkg/cri/resource-manager/policy/builtin/topology-aware/pod-preferences_test.go function TestPodIsolationPreference (line 26) | func TestPodIsolationPreference(t *testing.T) { function TestPodSharedCPUPreference (line 150) | func TestPodSharedCPUPreference(t *testing.T) { function TestCpuAllocationPreferences (line 280) | func TestCpuAllocationPreferences(t *testing.T) { FILE: pkg/cri/resource-manager/policy/builtin/topology-aware/pools.go method buildPoolsByTopology (line 29) | func (p *policy) buildPoolsByTopology() error { method parentNumaNodeCountWithCPUs (line 199) | func (p *policy) parentNumaNodeCountWithCPUs(numaNode system.Node) int { method assignNUMANodes (line 213) | func (p *policy) assignNUMANodes(surrogates map[idset.ID]Node, pmem, dra... method checkHWTopology (line 274) | func (p *policy) checkHWTopology() error { method allocatePool (line 335) | func (p *policy) allocatePool(container cache.Container, poolHint string... method applyGrant (line 592) | func (p *policy) applyGrant(grant Grant) { method releasePool (line 672) | func (p *policy) releasePool(container cache.Container) (Grant, bool) { method updateSharedAllocations (line 693) | func (p *policy) updateSharedAllocations(grant *Grant) { method setDemotionPreferences (line 738) | func (p *policy) setDemotionPreferences(c cache.Container, g Grant) { method filterInsufficientResources (line 765) | func (p *policy) filterInsufficientResources(req Request, originals []No... method sortPoolsByScore (line 815) | func (p *policy) sortPoolsByScore(req Request, aff map[int]int32) (map[i... method compareScores (line 835) | func (p *policy) compareScores(request Request, pools []Node, scores map... function affinityScore (line 1061) | func affinityScore(affinities map[int]int32, node Node) float64 { function combineHintScores (line 1092) | func combineHintScores(scores map[string]float64) (float64, float64) { FILE: pkg/cri/resource-manager/policy/builtin/topology-aware/pools_test.go function findNodeWithID (line 34) | func findNodeWithID(id int, nodes []Node) Node { function findNodeWithName (line 43) | func findNodeWithName(name string, nodes []Node) Node { function setLinks (line 52) | func setLinks(nodes []Node, tree map[int][]int) { function TestMemoryLimitFiltering (line 75) | func TestMemoryLimitFiltering(t *testing.T) { function TestPoolCreation (line 283) | func TestPoolCreation(t *testing.T) { function TestWorkloadPlacement (line 432) | func TestWorkloadPlacement(t *testing.T) { function TestContainerMove (line 547) | func TestContainerMove(t *testing.T) { function TestAffinities (line 713) | func TestAffinities(t *testing.T) { FILE: pkg/cri/resource-manager/policy/builtin/topology-aware/resources.go type Supply (line 32) | type Supply interface type Request (line 91) | type Request interface type Grant (line 115) | type Grant interface type Score (line 185) | type Score interface type memoryMap (line 202) | type memoryMap method Add (line 303) | func (m memoryMap) Add(dram, pmem, hbm uint64) { method AddDRAM (line 310) | func (m memoryMap) AddDRAM(dram uint64) { method AddPMEM (line 315) | func (m memoryMap) AddPMEM(pmem uint64) { method AddHBM (line 320) | func (m memoryMap) AddHBM(hbm uint64) { method String (line 325) | func (m memoryMap) String() string { type supply (line 205) | type supply struct method GetNode (line 353) | func (cs *supply) GetNode() Node { method Clone (line 358) | func (cs *supply) Clone() Supply { method IsolatedCPUs (line 372) | func (cs *supply) IsolatedCPUs() cpuset.CPUSet { method ReservedCPUs (line 377) | func (cs *supply) ReservedCPUs() cpuset.CPUSet { method SharableCPUs (line 382) | func (cs *supply) SharableCPUs() cpuset.CPUSet { method GrantedReserved (line 387) | func (cs *supply) GrantedReserved() int { method GrantedShared (line 392) | func (cs *supply) GrantedShared() int { method GrantedMemory (line 396) | func (cs *supply) GrantedMemory(memType memoryType) uint64 { method MemoryLimit (line 401) | func (cs *supply) MemoryLimit() memoryMap { method Cumulate (line 406) | func (cs *supply) Cumulate(more Supply) { method AssignMemory (line 424) | func (cs *supply) AssignMemory(mem memoryMap) { method AccountAllocateCPU (line 431) | func (cs *supply) AccountAllocateCPU(g Grant) { method AccountReleaseCPU (line 441) | func (cs *supply) AccountReleaseCPU(g Grant) { method allocateMemory (line 457) | func (cs *supply) allocateMemory(r Request) (memoryMap, error) { method Allocate (line 531) | func (cs *supply) Allocate(r Request) (Grant, error) { method AllocateCPU (line 549) | func (cs *supply) AllocateCPU(r Request) (Grant, error) { method ReallocateMemory (line 628) | func (cs *supply) ReallocateMemory(g Grant) error { method ReleaseCPU (line 653) | func (cs *supply) ReleaseCPU(g Grant) { method ReleaseMemory (line 666) | func (cs *supply) ReleaseMemory(g Grant) { method ExtraMemoryReservation (line 687) | func (cs *supply) ExtraMemoryReservation(memType memoryType) uint64 { method ReleaseExtraMemoryReservation (line 695) | func (cs *supply) ReleaseExtraMemoryReservation(g Grant) { method SetExtraMemoryReservation (line 704) | func (cs *supply) SetExtraMemoryReservation(g Grant) { method Reserve (line 715) | func (cs *supply) Reserve(g Grant) error { method ReserveMemory (line 749) | func (cs *supply) ReserveMemory(g Grant) error { method takeCPUs (line 767) | func (cs *supply) takeCPUs(from, to *cpuset.CPUSet, cnt int) (cpuset.C... method DumpCapacity (line 781) | func (cs *supply) DumpCapacity() string { method DumpAllocatable (line 818) | func (cs *supply) DumpAllocatable() string { method DumpMemoryState (line 892) | func (cs *supply) DumpMemoryState(prefix string) { method GetScore (line 1077) | func (cs *supply) GetScore(req Request) Score { method AllocatableReservedCPU (line 1134) | func (cs *supply) AllocatableReservedCPU() int { method AllocatableSharedCPU (line 1151) | func (cs *supply) AllocatableSharedCPU(quiet ...bool) int { type request (line 220) | type request struct method GetContainer (line 991) | func (cr *request) GetContainer() cache.Container { method String (line 996) | func (cr *request) String() string { method CPUType (line 1018) | func (cr *request) CPUType() cpuClass { method SetCPUType (line 1023) | func (cr *request) SetCPUType(cpuType cpuClass) { method FullCPUs (line 1028) | func (cr *request) FullCPUs() int { method CPUFraction (line 1033) | func (cr *request) CPUFraction() int { method Isolate (line 1038) | func (cr *request) Isolate() bool { method MemAmountToAllocate (line 1043) | func (cr *request) MemAmountToAllocate() uint64 { method MemoryType (line 1067) | func (cr *request) MemoryType() memoryType { method ColdStart (line 1072) | func (cr *request) ColdStart() time.Duration { type grant (line 242) | type grant struct method SetCPUPortion (line 1233) | func (cg *grant) SetCPUPortion(fraction int) { method SetMemoryAllocation (line 1238) | func (cg *grant) SetMemoryAllocation(mt memoryType, allocated memoryMa... method Clone (line 1259) | func (cg *grant) Clone() Grant { method RefetchNodes (line 1275) | func (cg *grant) RefetchNodes() error { method GetContainer (line 1290) | func (cg *grant) GetContainer() cache.Container { method GetCPUNode (line 1295) | func (cg *grant) GetCPUNode() Node { method GetMemoryNode (line 1300) | func (cg *grant) GetMemoryNode() Node { method SetMemoryNode (line 1304) | func (cg *grant) SetMemoryNode(n Node) { method CPUType (line 1310) | func (cg *grant) CPUType() cpuClass { method CPUPortion (line 1315) | func (cg *grant) CPUPortion() int { method ExclusiveCPUs (line 1320) | func (cg *grant) ExclusiveCPUs() cpuset.CPUSet { method ReservedCPUs (line 1325) | func (cg *grant) ReservedCPUs() cpuset.CPUSet { method ReservedPortion (line 1330) | func (cg *grant) ReservedPortion() int { method SharedCPUs (line 1338) | func (cg *grant) SharedCPUs() cpuset.CPUSet { method SharedPortion (line 1343) | func (cg *grant) SharedPortion() int { method IsolatedCPUs (line 1351) | func (cg *grant) IsolatedCPUs() cpuset.CPUSet { method MemoryType (line 1356) | func (cg *grant) MemoryType() memoryType { method Memset (line 1361) | func (cg *grant) Memset() idset.IDSet { method MemLimit (line 1366) | func (cg *grant) MemLimit() memoryMap { method String (line 1371) | func (cg *grant) String() string { method AccountAllocateCPU (line 1399) | func (cg *grant) AccountAllocateCPU() { method Release (line 1409) | func (cg *grant) Release() { method AccountReleaseCPU (line 1415) | func (cg *grant) AccountReleaseCPU() { method RestoreMemset (line 1425) | func (cg *grant) RestoreMemset() { method ExpandMemset (line 1431) | func (cg *grant) ExpandMemset() (bool, error) { method UpdateExtraMemoryReservation (line 1487) | func (cg *grant) UpdateExtraMemoryReservation() { method ColdStart (line 1499) | func (cg *grant) ColdStart() time.Duration { method AddTimer (line 1503) | func (cg *grant) AddTimer(timer *time.Timer) { method StopTimer (line 1507) | func (cg *grant) StopTimer() { method ClearTimer (line 1514) | func (cg *grant) ClearTimer() { type score (line 259) | type score struct method Eval (line 1179) | func (score *score) Eval() float64 { method Supply (line 1183) | func (score *score) Supply() Supply { method Request (line 1187) | func (score *score) Request() Request { method IsolatedCapacity (line 1191) | func (score *score) IsolatedCapacity() int { method ReservedCapacity (line 1195) | func (score *score) ReservedCapacity() int { method SharedCapacity (line 1199) | func (score *score) SharedCapacity() int { method Colocated (line 1203) | func (score *score) Colocated() int { method HintScores (line 1207) | func (score *score) HintScores() map[string]float64 { method String (line 1211) | func (score *score) String() string { function newSupply (line 273) | func newSupply(n Node, isolated, reserved, sharable cpuset.CPUSet, grant... function createMemoryMap (line 293) | func createMemoryMap(dram, pmem, hbm uint64) memoryMap { function prettyMem (line 875) | func prettyMem(value uint64) string { function newRequest (line 943) | func newRequest(container cache.Container) Request { function newGrant (line 1217) | func newGrant(n Node, c cache.Container, cpuType cpuClass, exclusive cpu... FILE: pkg/cri/resource-manager/policy/builtin/topology-aware/topology-aware-policy.go constant PolicyName (line 39) | PolicyName = "topology-aware" constant PolicyDescription (line 41) | PolicyDescription = "A policy for prototyping memory tiering." constant PolicyPath (line 43) | PolicyPath = "policy." + PolicyName constant AliasName (line 45) | AliasName = "memtier" constant AliasPath (line 47) | AliasPath = "policy." + AliasName constant ColdStartDone (line 50) | ColdStartDone = "cold-start-done" type allocations (line 54) | type allocations struct method clone (line 587) | func (a *allocations) clone() allocations { method getContainerPoolHints (line 596) | func (a *allocations) getContainerPoolHints() ([]cache.Container, map[... type policy (line 60) | type policy struct method Name (line 121) | func (p *policy) Name() string { method Description (line 126) | func (p *policy) Description() string { method Start (line 131) | func (p *policy) Start(add []cache.Container, del []cache.Container) e... method Sync (line 148) | func (p *policy) Sync(add []cache.Container, del []cache.Container) er... method AllocateResources (line 161) | func (p *policy) AllocateResources(container cache.Container) error { method ReleaseResources (line 178) | func (p *policy) ReleaseResources(container cache.Container) error { method UpdateResources (line 191) | func (p *policy) UpdateResources(c cache.Container) error { method Rebalance (line 197) | func (p *policy) Rebalance() (bool, error) { method HandleEvent (line 224) | func (p *policy) HandleEvent(e *events.Policy) (bool, error) { method Introspect (line 254) | func (p *policy) Introspect(state *introspect.State) { method DescribeMetrics (line 293) | func (p *policy) DescribeMetrics() []*prometheus.Desc { method PollMetrics (line 298) | func (p *policy) PollMetrics() policyapi.Metrics { method CollectMetrics (line 303) | func (p *policy) CollectMetrics(policyapi.Metrics) ([]prometheus.Metri... method ExportResourceData (line 308) | func (p *policy) ExportResourceData(c cache.Container) map[string]stri... method reallocateResources (line 361) | func (p *policy) reallocateResources(containers []cache.Container, poo... method configNotify (line 393) | func (p *policy) configNotify(event config.Event, source config.Source... method initialize (line 484) | func (p *policy) initialize() error { method checkConstraints (line 504) | func (p *policy) checkConstraints() error { method restoreCache (line 555) | func (p *policy) restoreCache() error { method checkColdstartOff (line 568) | func (p *policy) checkColdstartOff() { method newAllocations (line 582) | func (p *policy) newAllocations() allocations { function CreateTopologyAwarePolicy (line 86) | func CreateTopologyAwarePolicy(opts *policyapi.BackendOptions) policyapi... function CreateMemtierPolicy (line 91) | func CreateMemtierPolicy(opts *policyapi.BackendOptions) policyapi.Backe... function createPolicy (line 96) | func createPolicy(opts *policyapi.BackendOptions, isAlias bool) policyap... function init (line 608) | func init() { FILE: pkg/cri/resource-manager/policy/error.go function policyError (line 21) | func policyError(format string, args ...interface{}) error { FILE: pkg/cri/resource-manager/policy/flags.go constant NonePolicy (line 35) | NonePolicy = "none" constant DefaultPolicy (line 37) | DefaultPolicy = NonePolicy constant ConfigPath (line 39) | ConfigPath = "policy" type options (line 43) | type options struct method MarshalJSON (line 56) | func (cs ConstraintSet) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 76) | func (cs *ConstraintSet) UnmarshalJSON(raw []byte) error { method String (line 107) | func (cs *ConstraintSet) String() string { method parseCPU (line 117) | func (cs *ConstraintSet) parseCPU(value string) error { method parseCPUSet (line 149) | func (cs *ConstraintSet) parseCPUSet(value string) error { method parseCPUQuantity (line 159) | func (cs *ConstraintSet) parseCPUQuantity(value string) error { method parseCPUFromCgroup (line 169) | func (cs *ConstraintSet) parseCPUFromCgroup(dir string) error { method setCPUMilliQuantity (line 204) | func (cs *ConstraintSet) setCPUMilliQuantity(value int) { type AvailablePolicy (line 210) | type AvailablePolicy struct function AvailablePolicies (line 218) | func AvailablePolicies() []*AvailablePolicy { function defaultOptions (line 232) | func defaultOptions() interface{} { function init (line 241) | func init() { FILE: pkg/cri/resource-manager/policy/policy.go type Domain (line 41) | type Domain constant DomainCPU (line 45) | DomainCPU Domain = "CPU" constant DomainMemory (line 47) | DomainMemory Domain = "Memory" constant DomainHugePage (line 49) | DomainHugePage Domain = "HugePages" constant DomainCache (line 51) | DomainCache Domain = "Cache" constant DomainMemoryBW (line 53) | DomainMemoryBW Domain = "MBW" type Constraint (line 57) | type Constraint interface type ConstraintSet (line 60) | type ConstraintSet type Options (line 63) | type Options struct type BackendOptions (line 71) | type BackendOptions struct type CreateFn (line 87) | type CreateFn type SendEventFn (line 90) | type SendEventFn constant ExportedResources (line 94) | ExportedResources = "resources.sh" constant ExportSharedCPUs (line 96) | ExportSharedCPUs = "SHARED_CPUS" constant ExportIsolatedCPUs (line 98) | ExportIsolatedCPUs = "ISOLATED_CPUS" constant ExportExclusiveCPUs (line 100) | ExportExclusiveCPUs = "EXCLUSIVE_CPUS" type Backend (line 107) | type Backend interface type Policy (line 140) | type Policy interface type Metrics (line 169) | type Metrics interface type policy (line 172) | type policy struct method Start (line 252) | func (p *policy) Start(add []cache.Container, del []cache.Container) e... method Sync (line 258) | func (p *policy) Sync(add []cache.Container, del []cache.Container) er... method AllocateResources (line 263) | func (p *policy) AllocateResources(c cache.Container) error { method ReleaseResources (line 268) | func (p *policy) ReleaseResources(c cache.Container) error { method UpdateResources (line 273) | func (p *policy) UpdateResources(c cache.Container) error { method Rebalance (line 278) | func (p *policy) Rebalance() (bool, error) { method HandleEvent (line 283) | func (p *policy) HandleEvent(e *events.Policy) (bool, error) { method ExportResourceData (line 288) | func (p *policy) ExportResourceData(c cache.Container) { method Introspect (line 312) | func (p *policy) Introspect() *introspect.State { method PollMetrics (line 399) | func (p *policy) PollMetrics() Metrics { method DescribeMetrics (line 404) | func (p *policy) DescribeMetrics() []*prometheus.Desc { method CollectMetrics (line 409) | func (p *policy) CollectMetrics(m Metrics) ([]prometheus.Metric, error) { type backend (line 182) | type backend struct function ActivePolicy (line 198) | func ActivePolicy() string { function NewPolicy (line 203) | func NewPolicy(cache cache.Cache, o *Options) (Policy, error) { function Register (line 414) | func Register(name, description string, create CreateFn) error { function ConstraintToString (line 431) | func ConstraintToString(value Constraint) string { function configNotify (line 448) | func configNotify(_ config.Event, _ config.Source) error { FILE: pkg/cri/resource-manager/requests.go constant kubeAPIVersion (line 33) | kubeAPIVersion = "0.1.0" method setupRequestProcessing (line 42) | func (m *resmgr) setupRequestProcessing() error { method disambiguate (line 65) | func (m *resmgr) disambiguate(msg interface{}) string { method startRequestProcessing (line 134) | func (m *resmgr) startRequestProcessing() error { method syncWithCRI (line 168) | func (m *resmgr) syncWithCRI(ctx context.Context) ([]cache.Container, []... method queryPodStatus (line 217) | func (m *resmgr) queryPodStatus(ctx context.Context, podID string) (*cac... method RunPod (line 231) | func (m *resmgr) RunPod(ctx context.Context, method string, request inte... method StopPod (line 289) | func (m *resmgr) StopPod(ctx context.Context, method string, request int... method RemovePod (line 341) | func (m *resmgr) RemovePod(ctx context.Context, method string, request i... method CreateContainer (line 393) | func (m *resmgr) CreateContainer(ctx context.Context, method string, req... method StartContainer (line 463) | func (m *resmgr) StartContainer(ctx context.Context, method string, requ... method StopContainer (line 516) | func (m *resmgr) StopContainer(ctx context.Context, method string, reque... method RemoveContainer (line 562) | func (m *resmgr) RemoveContainer(ctx context.Context, method string, req... method ListContainers (line 603) | func (m *resmgr) ListContainers(ctx context.Context, method string, requ... method UpdateContainer (line 668) | func (m *resmgr) UpdateContainer(_ context.Context, _ string, _ interfac... method RebalanceContainers (line 717) | func (m *resmgr) RebalanceContainers() error { method rebalance (line 727) | func (m *resmgr) rebalance(method string) error { method DeliverPolicyEvent (line 749) | func (m *resmgr) DeliverPolicyEvent(e *events.Policy) error { method setConfig (line 783) | func (m *resmgr) setConfig(v interface{}) error { method runPostAllocateHooks (line 826) | func (m *resmgr) runPostAllocateHooks(ctx context.Context, method string... method runPostStartHooks (line 856) | func (m *resmgr) runPostStartHooks(method string, c cache.Container) err... method runPostReleaseHooks (line 864) | func (m *resmgr) runPostReleaseHooks(ctx context.Context, method string,... method runPostUpdateHooks (line 901) | func (m *resmgr) runPostUpdateHooks(ctx context.Context, method string) ... method sendCRIRequest (line 926) | func (m *resmgr) sendCRIRequest(ctx context.Context, request interface{}... method checkRuntime (line 938) | func (m *resmgr) checkRuntime(ctx context.Context) error { function rejectRuntimeError (line 960) | func rejectRuntimeError(name string) error { FILE: pkg/cri/resource-manager/resource-manager.go type ResourceManager (line 48) | type ResourceManager interface type resmgr (line 64) | type resmgr struct method Start (line 156) | func (m *resmgr) Start() error { method Stop (line 212) | func (m *resmgr) Stop() { method SetConfig (line 230) | func (m *resmgr) SetConfig(conf *config.RawConfig) error { method SetAdjustment (line 236) | func (m *resmgr) SetAdjustment(adjustment *config.Adjustment) map[stri... method setConfigFromFile (line 245) | func (m *resmgr) setConfigFromFile(path string) error { method setAdjustment (line 251) | func (m *resmgr) setAdjustment(adjustments *config.Adjustment) map[str... method resetCachedPolicy (line 263) | func (m *resmgr) resetCachedPolicy() int { method resetCachedConfig (line 281) | func (m *resmgr) resetCachedConfig() int { method setupCache (line 299) | func (m *resmgr) setupCache() error { method setupAgentInterface (line 312) | func (m *resmgr) setupAgentInterface() error { method setupConfigServer (line 323) | func (m *resmgr) setupConfigServer() error { method checkOpts (line 334) | func (m *resmgr) checkOpts() error { method loadConfig (line 344) | func (m *resmgr) loadConfig() error { method setupConfigSignal (line 386) | func (m *resmgr) setupConfigSignal(signame string) error { method setupPolicy (line 423) | func (m *resmgr) setupPolicy() error { method setupRelay (line 454) | func (m *resmgr) setupRelay() error { method setupControllers (line 480) | func (m *resmgr) setupControllers() error { method startControllers (line 491) | func (m *resmgr) startControllers() error { method setupIntrospection (line 500) | func (m *resmgr) setupIntrospection() error { method startIntrospection (line 521) | func (m *resmgr) startIntrospection() { method stopIntrospection (line 527) | func (m *resmgr) stopIntrospection() { method updateIntrospection (line 532) | func (m *resmgr) updateIntrospection() { method registerPolicyMetricsCollector (line 537) | func (m *resmgr) registerPolicyMetricsCollector() error { function NewResourceManager (line 85) | func NewResourceManager() (ResourceManager, error) { FILE: pkg/cri/resource-manager/sockets/sockets.go constant Containerd (line 19) | Containerd = "/var/run/containerd/containerd.sock" constant ResourceManagerRelay (line 21) | ResourceManagerRelay = "/var/run/cri-resmgr/cri-resmgr.sock" constant ResourceManagerAgent (line 23) | ResourceManagerAgent = "/var/run/cri-resmgr/cri-resmgr-agent.sock" constant ResourceManagerConfig (line 25) | ResourceManagerConfig = "/var/run/cri-resmgr/cri-resmgr-config.sock" constant DirPermissions (line 27) | DirPermissions = 0711 FILE: pkg/cri/resource-manager/test-api.go type ResourceManagerTestAPI (line 25) | type ResourceManagerTestAPI interface method GetCache (line 30) | func (m *resmgr) GetCache() cache.Cache { FILE: pkg/cri/resource-manager/visualizer/bubbles/assets/js/ui-json-adapter.js function AdaptJSON (line 4) | function AdaptJSON(data) { FILE: pkg/cri/resource-manager/visualizer/bubbles/assets/js/ui.js function drawBubbleGraph (line 21) | function drawBubbleGraph(filename) { FILE: pkg/cri/resource-manager/visualizer/bubbles/assets_generate.go constant name (line 28) | name = "bubbles" function main (line 31) | func main() { FILE: pkg/cri/resource-manager/visualizer/builtins.go function init (line 25) | func init() { FILE: pkg/cri/resource-manager/visualizer/flags.go function init (line 25) | func init() { FILE: pkg/cri/resource-manager/visualizer/visualizer.go constant visualizerPrefix (line 31) | visualizerPrefix = "/ui" type visualizer (line 38) | type visualizer struct method Open (line 66) | func (v *visualizer) Open(path string) (http.File, error) { method getVisualizerFileSystem (line 91) | func (v *visualizer) getVisualizerFileSystem(kind, name string) (http.... method generateIndexHTML (line 126) | func (v *visualizer) generateIndexHTML(w http.ResponseWriter, _ *http.... method register (line 154) | func (v *visualizer) register(name string, dir http.FileSystem) { method discoverExternalUIs (line 164) | func (v *visualizer) discoverExternalUIs() map[string]string { method uniqueExternalUIName (line 190) | func (v *visualizer) uniqueExternalUIName(dir string, others map[strin... function Register (line 48) | func Register(name string, dir http.FileSystem) { function Setup (line 53) | func Setup(mux *xhttp.ServeMux) error { constant uiPageHTMLHeader (line 110) | uiPageHTMLHeader = ` constant uiPageHTMLFooter (line 118) | uiPageHTMLFooter = ` function visualizerError (line 209) | func visualizerError(format string, args ...interface{}) error { FILE: pkg/cri/server/server.go type Options (line 42) | type Options struct type Handler (line 56) | type Handler type Interceptor (line 59) | type Interceptor type Server (line 62) | type Server interface type server (line 80) | type server struct method RegisterImageService (line 106) | func (s *server) RegisterImageService(service criv1.ImageServiceServer... method RegisterRuntimeService (line 123) | func (s *server) RegisterRuntimeService(service criv1.RuntimeServiceSe... method RegisterInterceptors (line 140) | func (s *server) RegisterInterceptors(intercept map[string]Interceptor... method Start (line 156) | func (s *server) Start() error { method Stop (line 173) | func (s *server) Stop() { method createGrpcServer (line 179) | func (s *server) createGrpcServer() error { method Chmod (line 228) | func (s *server) Chmod(mode os.FileMode) error { method Chown (line 243) | func (s *server) Chown(uid, gid int) error { method getInterceptor (line 267) | func (s *server) getInterceptor(method string) (Interceptor, string) { method intercept (line 282) | func (s *server) intercept(ctx context.Context, req interface{}, method collectStatistics (line 342) | func (s *server) collectStatistics(kind, name string, start, send, rec... method trainMessageDumper (line 356) | func (s server) trainMessageDumper() { method qualifier (line 368) | func (s server) qualifier(msg interface{}) string { function NewServer (line 91) | func NewServer(options Options) (Server, error) { function serverError (line 376) | func serverError(format string, args ...interface{}) error { FILE: pkg/cri/server/services.go constant apiVersion (line 27) | apiVersion = "v1" constant imageService (line 29) | imageService = "ImageService" constant listImages (line 30) | listImages = "ListImages" constant imageStatus (line 31) | imageStatus = "ImageStatus" constant pullImage (line 32) | pullImage = "PullImage" constant removeImage (line 33) | removeImage = "RemoveImage" constant imageFsInfo (line 34) | imageFsInfo = "ImageFsInfo" constant runtimeService (line 36) | runtimeService = "RuntimeService" constant version (line 37) | version = "Version" constant runPodSandbox (line 38) | runPodSandbox = "RunPodSandbox" constant stopPodSandbox (line 39) | stopPodSandbox = "StopPodSandbox" constant removePodSandbox (line 40) | removePodSandbox = "RemovePodSandbox" constant podSandboxStatus (line 41) | podSandboxStatus = "PodSandboxStatus" constant listPodSandbox (line 42) | listPodSandbox = "ListPodSandbox" constant createContainer (line 43) | createContainer = "CreateContainer" constant startContainer (line 44) | startContainer = "StartContainer" constant stopContainer (line 45) | stopContainer = "StopContainer" constant removeContainer (line 46) | removeContainer = "RemoveContainer" constant listContainers (line 47) | listContainers = "ListContainers" constant containerStatus (line 48) | containerStatus = "ContainerStatus" constant updateContainerResources (line 49) | updateContainerResources = "UpdateContainerResources" constant reopenContainerLog (line 50) | reopenContainerLog = "ReopenContainerLog" constant execSync (line 51) | execSync = "ExecSync" constant exec (line 52) | exec = "Exec" constant attach (line 53) | attach = "Attach" constant portForward (line 54) | portForward = "PortForward" constant containerStats (line 55) | containerStats = "ContainerStats" constant listContainerStats (line 56) | listContainerStats = "ListContainerStats" constant podSandboxStats (line 57) | podSandboxStats = "PodSandboxStats" constant listPodSandboxStats (line 58) | listPodSandboxStats = "ListPodSandboxStats" constant updateRuntimeConfig (line 59) | updateRuntimeConfig = "UpdateRuntimeConfig" constant status (line 60) | status = "Status" constant checkpointContainer (line 61) | checkpointContainer = "CheckpointContainer" constant getContainerEvents (line 62) | getContainerEvents = "GetContainerEvents" constant listMetricDescriptors (line 63) | listMetricDescriptors = "ListMetricDescriptors" constant listPodSandboxMetrics (line 64) | listPodSandboxMetrics = "ListPodSandboxMetrics" constant runtimeConfig (line 65) | runtimeConfig = "RuntimeConfig" function fqmn (line 68) | func fqmn(service, method string) string { method interceptRequest (line 72) | func (s *server) interceptRequest(ctx context.Context, service, method s... method ListImages (line 85) | func (s *server) ListImages(ctx context.Context, method ImageStatus (line 99) | func (s *server) ImageStatus(ctx context.Context, method PullImage (line 113) | func (s *server) PullImage(ctx context.Context, method RemoveImage (line 127) | func (s *server) RemoveImage(ctx context.Context, method ImageFsInfo (line 141) | func (s *server) ImageFsInfo(ctx context.Context, method Version (line 155) | func (s *server) Version(ctx context.Context, method RunPodSandbox (line 169) | func (s *server) RunPodSandbox(ctx context.Context, method StopPodSandbox (line 183) | func (s *server) StopPodSandbox(ctx context.Context, method RemovePodSandbox (line 197) | func (s *server) RemovePodSandbox(ctx context.Context, method PodSandboxStatus (line 211) | func (s *server) PodSandboxStatus(ctx context.Context, method ListPodSandbox (line 225) | func (s *server) ListPodSandbox(ctx context.Context, method CreateContainer (line 239) | func (s *server) CreateContainer(ctx context.Context, method StartContainer (line 253) | func (s *server) StartContainer(ctx context.Context, method StopContainer (line 267) | func (s *server) StopContainer(ctx context.Context, method RemoveContainer (line 281) | func (s *server) RemoveContainer(ctx context.Context, method ListContainers (line 295) | func (s *server) ListContainers(ctx context.Context, method ContainerStatus (line 309) | func (s *server) ContainerStatus(ctx context.Context, method UpdateContainerResources (line 323) | func (s *server) UpdateContainerResources(ctx context.Context, method ReopenContainerLog (line 338) | func (s *server) ReopenContainerLog(ctx context.Context, method ExecSync (line 352) | func (s *server) ExecSync(ctx context.Context, method Exec (line 366) | func (s *server) Exec(ctx context.Context, method Attach (line 380) | func (s *server) Attach(ctx context.Context, method PortForward (line 394) | func (s *server) PortForward(ctx context.Context, method ContainerStats (line 408) | func (s *server) ContainerStats(ctx context.Context, method ListContainerStats (line 422) | func (s *server) ListContainerStats(ctx context.Context, method PodSandboxStats (line 436) | func (s *server) PodSandboxStats(ctx context.Context, req *criv1.PodSand... method ListPodSandboxStats (line 449) | func (s *server) ListPodSandboxStats(ctx context.Context, req *criv1.Lis... method UpdateRuntimeConfig (line 462) | func (s *server) UpdateRuntimeConfig(ctx context.Context, method Status (line 476) | func (s *server) Status(ctx context.Context, method CheckpointContainer (line 490) | func (s *server) CheckpointContainer(ctx context.Context, req *criv1.Che... method GetContainerEvents (line 503) | func (s *server) GetContainerEvents(req *criv1.GetEventsRequest, srv cri... method ListMetricDescriptors (line 509) | func (s *server) ListMetricDescriptors(ctx context.Context, req *criv1.L... method ListPodSandboxMetrics (line 522) | func (s *server) ListPodSandboxMetrics(ctx context.Context, req *criv1.L... method RuntimeConfig (line 535) | func (s *server) RuntimeConfig(ctx context.Context, req *criv1.RuntimeCo... FILE: pkg/dump/dump.go constant stampLayout (line 44) | stampLayout = "2006-Jan-02 15:04:05.000" constant stampLen (line 46) | stampLen = len(stampLayout) type dumper (line 50) | type dumper struct method run (line 154) | func (d *dumper) run() { method sync (line 180) | func (d *dumper) sync() { method configure (line 187) | func (d *dumper) configure(o *options) { method train (line 221) | func (d *dumper) train(names []string) { method name (line 238) | func (d *dumper) name(dir direction, kind, method, qualifier string, m... method full (line 259) | func (d *dumper) full(dir direction, kind, method, qualifier string, m... method line (line 297) | func (d *dumper) line(dir direction, latency time.Duration, format str... method block (line 310) | func (d *dumper) block(dir direction, latency time.Duration, prefix, m... method warn (line 324) | func (d *dumper) warn(dir direction, latency time.Duration, format str... method tofile (line 333) | func (d *dumper) tofile(dir direction, latency time.Duration, format s... type dumpreq (line 63) | type dumpreq struct type direction (line 74) | type direction method String (line 349) | func (d direction) String() string { method arrow (line 360) | func (d direction) arrow() string { constant request (line 77) | request = iota constant reply (line 78) | reply constant nop (line 79) | nop function Train (line 90) | func Train(methods []string) { function RequestMessage (line 97) | func RequestMessage(kind, name, qualifier string, req interface{}, sync ... function ReplyMessage (line 118) | func ReplyMessage(kind, name, qualifier string, rpl interface{}, latency... function Sync (line 140) | func Sync() { function newDumper (line 147) | func newDumper() *dumper { function stamp (line 338) | func stamp(dir direction, latency time.Duration) string { function methodName (line 371) | func methodName(method string) string { function dumpError (line 376) | func dumpError(format string, args ...interface{}) error { FILE: pkg/dump/dump_test.go function TestConfigParsing (line 29) | func TestConfigParsing(t *testing.T) { function fooTestFiltering (line 59) | func fooTestFiltering(t *testing.T) { type filterTest (line 129) | type filterTest struct method setup (line 140) | func (ft *filterTest) setup(train bool) *testlog { method dumpMessages (line 161) | func (ft *filterTest) dumpMessages(logger *testlog) []string { method parseLogs (line 172) | func (ft *filterTest) parseLogs(t *testing.T, logged []string) (map[st... method checkResult (line 203) | func (ft *filterTest) checkResult(t *testing.T, entries map[string]int... method run (line 221) | func (ft *filterTest) run(t *testing.T) { constant marker (line 137) | marker = "" type Message (line 235) | type Message struct type Type1Message1 (line 239) | type Type1Message1 type Type1Message2 (line 240) | type Type1Message2 type Type1Message3 (line 241) | type Type1Message3 type Type1Whatever (line 242) | type Type1Whatever type Type2Message1 (line 243) | type Type2Message1 type Type2Message2 (line 244) | type Type2Message2 type Type2Message3 (line 245) | type Type2Message3 type Type2Whatever (line 246) | type Type2Whatever type Type3Message1 (line 247) | type Type3Message1 type Type3Message2 (line 248) | type Type3Message2 type Type3Message3 (line 249) | type Type3Message3 type Type3Whatever (line 250) | type Type3Whatever constant LinesPerRequest (line 253) | LinesPerRequest = 6 constant LinesPerReply (line 254) | LinesPerReply = 2 function mkmsg (line 262) | func mkmsg(o interface{}) interface{} { function msgname (line 316) | func msgname(o interface{}) string { function msgmethod (line 320) | func msgmethod(o interface{}) string { type testlog (line 328) | type testlog struct method reset (line 336) | func (t *testlog) reset() { method log (line 345) | func (t *testlog) log(save *[]string, prefix, format string, args ...i... method Info (line 351) | func (t *testlog) Info(format string, args ...interface{}) { method Warn (line 357) | func (t *testlog) Warn(format string, args ...interface{}) { method Error (line 363) | func (t *testlog) Error(format string, args ...interface{}) { method Debug (line 369) | func (t *testlog) Debug(format string, args ...interface{}) { method Fatal (line 375) | func (t *testlog) Fatal(format string, args ...interface{}) { method Panic (line 381) | func (*testlog) Panic(format string, args ...interface{}) { method Infof (line 387) | func (t *testlog) Infof(format string, args ...interface{}) { method Warnf (line 391) | func (t *testlog) Warnf(format string, args ...interface{}) { method Errorf (line 395) | func (t *testlog) Errorf(format string, args ...interface{}) { method Debugf (line 399) | func (t *testlog) Debugf(format string, args ...interface{}) { method Fatalf (line 403) | func (t *testlog) Fatalf(format string, args ...interface{}) { method Panicf (line 407) | func (t *testlog) Panicf(format string, args ...interface{}) { method Block (line 411) | func (*testlog) Block(fn func(string, ...interface{}), prfx string, fr... method InfoBlock (line 417) | func (t *testlog) InfoBlock(prefix string, format string, args ...inte... method WarnBlock (line 425) | func (t *testlog) WarnBlock(prefix string, format string, args ...inte... method ErrorBlock (line 433) | func (t *testlog) ErrorBlock(prefix string, format string, args ...int... method DebugBlock (line 441) | func (t *testlog) DebugBlock(prefix string, format string, args ...int... method EnableDebug (line 449) | func (*testlog) EnableDebug() bool { return true } method DebugEnabled (line 450) | func (*testlog) DebugEnabled() bool { return true } method Stop (line 451) | func (*testlog) Stop() {} method Source (line 452) | func (*testlog) Source() string { return "" } FILE: pkg/dump/flags.go constant DefaultConfig (line 41) | DefaultConfig = "off:.*,short:((Create)|(Start)|(Run)|(Update)|(Stop)|(R... type options (line 45) | type options struct method configNotify (line 190) | func (o *options) configNotify(event config.Event, _ config.Source) er... type ruleset (line 54) | type ruleset method parse (line 79) | func (set *ruleset) parse(value string) error { method String (line 117) | func (set *ruleset) String() string { method detailOf (line 136) | func (set *ruleset) detailOf(method string) level { method duplicate (line 160) | func (set *ruleset) duplicate() ruleset { type rule (line 57) | type rule struct type level (line 64) | type level method String (line 170) | func (detail level) String() string { constant Off (line 68) | Off level = iota constant Name (line 70) | Name constant Full (line 72) | Full function defaultOptions (line 183) | func defaultOptions() interface{} { function init (line 211) | func init() { FILE: pkg/instrumentation/flags.go type Sampling (line 31) | type Sampling method MarshalJSON (line 87) | func (s Sampling) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 92) | func (s *Sampling) UnmarshalJSON(raw []byte) error { method Parse (line 111) | func (s *Sampling) Parse(value string) error { method String (line 130) | func (s Sampling) String() string { method Sampler (line 143) | func (s Sampling) Sampler() trace.Sampler { constant Disabled (line 35) | Disabled Sampling = 0.0 constant Production (line 37) | Production Sampling = 0.1 constant Testing (line 39) | Testing Sampling = 1.0 constant defaultSampling (line 42) | defaultSampling = "0" constant defaultReportPeriod (line 44) | defaultReportPeriod = "15s" constant defaultJaegerCollector (line 46) | defaultJaegerCollector = "" constant defaultJaegerAgent (line 48) | defaultJaegerAgent = "" constant defaultHTTPEndpoint (line 50) | defaultHTTPEndpoint = "" constant defaultPrometheusExport (line 52) | defaultPrometheusExport = "false" type options (line 56) | type options method UnmarshalJSON (line 74) | func (o *options) UnmarshalJSON(raw []byte) error { type optstruct (line 58) | type optstruct struct function parseEnv (line 151) | func parseEnv(name, defval string, parsefn func(string) error) { function defaultOptions (line 165) | func defaultOptions() interface{} { function configNotify (line 222) | func configNotify(_ config.Event, _ config.Source) error { function init (line 234) | func init() { FILE: pkg/instrumentation/grpc.go function InjectGrpcClientTrace (line 25) | func InjectGrpcClientTrace(opts ...grpc.DialOption) []grpc.DialOption { function InjectGrpcServerTrace (line 38) | func InjectGrpcServerTrace(opts ...grpc.ServerOption) []grpc.ServerOption { function registerGrpcViews (line 51) | func registerGrpcViews() error { function unregisterGrpcViews (line 65) | func unregisterGrpcViews() { FILE: pkg/instrumentation/http/http.go constant httpServer (line 29) | httpServer = "HTTP server" type ServeMux (line 36) | type ServeMux struct method Handle (line 51) | func (mux *ServeMux) Handle(pattern string, handler http.Handler) { method HandleFunc (line 67) | func (mux *ServeMux) HandleFunc(pattern string, fn func(http.ResponseW... method Unregister (line 85) | func (mux *ServeMux) Unregister(pattern string) (http.Handler, bool) { method ServeHTTP (line 106) | func (mux *ServeMux) ServeHTTP(w http.ResponseWriter, r *http.Request) { function NewServeMux (line 43) | func NewServeMux() *ServeMux { type Server (line 114) | type Server struct method GetMux (line 128) | func (s *Server) GetMux() *ServeMux { method GetAddress (line 133) | func (s *Server) GetAddress() string { method Start (line 141) | func (s *Server) Start(addr string) error { method Stop (line 170) | func (s *Server) Stop() { method Shutdown (line 185) | func (s *Server) Shutdown(wait bool) { method Reconfigure (line 210) | func (s *Server) Reconfigure(addr string) error { method Restart (line 220) | func (s *Server) Restart(addr string) error { method ServeHTTP (line 228) | func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { function NewServer (line 121) | func NewServer() *Server { function httpError (line 235) | func httpError(format string, args ...interface{}) error { FILE: pkg/instrumentation/http/http_test.go function TestStartStop (line 23) | func TestStartStop(t *testing.T) { type urlTest (line 50) | type urlTest struct function checkURL (line 56) | func checkURL(t *testing.T, srv *Server, path, response string, status i... type testHandler (line 78) | type testHandler struct method ServeHTTP (line 82) | func (h *testHandler) ServeHTTP(w http.ResponseWriter, _ *http.Request) { function TestPatternsp (line 86) | func TestPatternsp(t *testing.T) { FILE: pkg/instrumentation/instrumentation.go constant ServiceName (line 26) | ServiceName = "CRI-RM" function GetHTTPMux (line 36) | func GetHTTPMux() *http.ServeMux { function TracingEnabled (line 44) | func TracingEnabled() bool { function Start (line 52) | func Start() error { function Stop (line 60) | func Stop() { function Restart (line 67) | func Restart() error { function instrumentationError (line 75) | func instrumentationError(format string, args ...interface{}) error { FILE: pkg/instrumentation/instrumentation_test.go function TestSamplingIdempotency (line 24) | func TestSamplingIdempotency(t *testing.T) { function TestPrometheusConfiguration (line 42) | func TestPrometheusConfiguration(t *testing.T) { function checkPrometheus (line 75) | func checkPrometheus(t *testing.T, server string, shouldFail bool) { FILE: pkg/instrumentation/jaeger.go constant jaegerExporter (line 24) | jaegerExporter = "Jaeger trace exporter" type tracing (line 28) | type tracing struct method start (line 36) | func (t *tracing) start(agent, collector string, sampling Sampling) er... method stop (line 70) | func (t *tracing) stop() { method reconfigure (line 82) | func (t *tracing) reconfigure(agent, collector string, sampling Sampli... FILE: pkg/instrumentation/prometheus.go constant PrometheusMetricsPath (line 32) | PrometheusMetricsPath = "/metrics" constant prometheusExporter (line 34) | prometheusExporter = "Prometheus metrics exporter" type metrics (line 38) | type metrics struct method start (line 45) | func (m *metrics) start(mux *http.ServeMux, period time.Duration, enab... method stop (line 76) | func (m *metrics) stop() { method reconfigure (line 90) | func (m *metrics) reconfigure(mux *http.ServeMux, period time.Duration... function prometheusNamespace (line 108) | func prometheusNamespace(service string) string { type gatherers (line 113) | type gatherers struct method Register (line 122) | func (g *gatherers) Register(gatherer pclient.Gatherer) { method Gather (line 129) | func (g *gatherers) Gather() ([]*model.MetricFamily, error) { function RegisterGatherer (line 136) | func RegisterGatherer(g pclient.Gatherer) { FILE: pkg/instrumentation/service.go type service (line 24) | type service struct method Start (line 41) | func (s *service) Start() error { method Stop (line 71) | func (s *service) Stop() { method reconfigure (line 82) | func (s *service) reconfigure() error { method Restart (line 102) | func (s *service) Restart() error { method TracingEnabled (line 108) | func (s *service) TracingEnabled() bool { function newService (line 32) | func newService() *service { FILE: pkg/log/default.go function Default (line 26) | func Default() Logger { function Info (line 31) | func Info(format string, args ...interface{}) { function Warn (line 36) | func Warn(format string, args ...interface{}) { function Error (line 41) | func Error(format string, args ...interface{}) { function Fatal (line 46) | func Fatal(format string, args ...interface{}) { function Panic (line 51) | func Panic(format string, args ...interface{}) { function Debug (line 56) | func Debug(format string, args ...interface{}) { function InfoBlock (line 61) | func InfoBlock(prefix string, format string, args ...interface{}) { function WarnBlock (line 66) | func WarnBlock(prefix string, format string, args ...interface{}) { function ErrorBlock (line 71) | func ErrorBlock(prefix string, format string, args ...interface{}) { function DebugBlock (line 76) | func DebugBlock(prefix string, format string, args ...interface{}) { function init (line 80) | func init() { FILE: pkg/log/flags.go constant DefaultLevel (line 29) | DefaultLevel = LevelInfo constant debugEnvVar (line 31) | debugEnvVar = "LOGGER_DEBUG" constant configModule (line 33) | configModule = "logger" type options (line 37) | type options struct method configNotify (line 175) | func (o *options) configNotify(event pkgcfg.Event, _ pkgcfg.Source) er... method apply (line 208) | func (o *options) apply() error { type srcmap (line 47) | type srcmap method parse (line 61) | func (m *srcmap) parse(value string) error { method String (line 107) | func (m *srcmap) String() string { method MarshalJSON (line 138) | func (m srcmap) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 143) | func (m *srcmap) UnmarshalJSON(raw []byte) error { method cloneFrom (line 155) | func (m *srcmap) cloneFrom(o srcmap) { method clone (line 163) | func (m srcmap) clone() srcmap { function defaultOptions (line 226) | func defaultOptions() interface{} { function init (line 240) | func init() { FILE: pkg/log/grpc-logger.go function SetGrpcLogger (line 24) | func SetGrpcLogger(source string, rate *Rate) { type grpclogger (line 41) | type grpclogger struct method Info (line 45) | func (g grpclogger) Info(args ...interface{}) { method Infoln (line 49) | func (g grpclogger) Infoln(args ...interface{}) { method Infof (line 53) | func (g grpclogger) Infof(format string, args ...interface{}) { method Warning (line 57) | func (g grpclogger) Warning(args ...interface{}) { method Warningln (line 61) | func (g grpclogger) Warningln(args ...interface{}) { method Warningf (line 65) | func (g grpclogger) Warningf(format string, args ...interface{}) { method Error (line 69) | func (g grpclogger) Error(args ...interface{}) { method Errorln (line 73) | func (g grpclogger) Errorln(args ...interface{}) { method Errorf (line 77) | func (g grpclogger) Errorf(format string, args ...interface{}) { method Fatal (line 81) | func (g grpclogger) Fatal(args ...interface{}) { method Fatalln (line 85) | func (g grpclogger) Fatalln(args ...interface{}) { method Fatalf (line 89) | func (g grpclogger) Fatalf(format string, args ...interface{}) { method V (line 93) | func (g grpclogger) V(_ int) bool { FILE: pkg/log/klogcontrol/klogcontrol.go type Options (line 28) | type Options method CloneFrom (line 76) | func (o *Options) CloneFrom(src Options) { method String (line 84) | func (o *Options) String() string { type Control (line 31) | type Control struct method CurrentOptions (line 44) | func (c *Control) CurrentOptions() Options { method Configure (line 53) | func (c *Control) Configure(options Options) error { method Set (line 63) | func (c *Control) Set(name, value string) error { method Get (line 68) | func (c *Control) Get(name string) (interface{}, error) { function Get (line 39) | func Get() *Control { type klogflag (line 98) | type klogflag struct method Set (line 103) | func (klogf *klogflag) Set(value string) error { method String (line 114) | func (klogf *klogflag) String() string { method Get (line 126) | func (klogf *klogflag) Get() interface{} { method IsBoolFlag (line 141) | func (klogf *klogflag) IsBoolFlag() bool { method getEnv (line 152) | func (klogf *klogflag) getEnv() (string, string, bool) { type boolFlag (line 136) | type boolFlag interface function klogError (line 161) | func klogError(format string, args ...interface{}) error { function wrapKlogFlag (line 166) | func wrapKlogFlag(f *flag.Flag) { function init (line 189) | func init() { FILE: pkg/log/log.go type Level (line 26) | type Level method String (line 175) | func (l Level) String() string { constant levelUnset (line 30) | levelUnset Level = iota constant LevelDebug (line 32) | LevelDebug constant LevelInfo (line 34) | LevelInfo constant LevelWarn (line 36) | LevelWarn constant LevelError (line 38) | LevelError constant LevelPanic (line 40) | LevelPanic constant LevelFatal (line 42) | LevelFatal type Logger (line 57) | type Logger interface type logger (line 99) | type logger method EnableDebug (line 307) | func (l logger) EnableDebug() bool { method DebugEnabled (line 318) | func (l logger) DebugEnabled() bool { method Source (line 325) | func (l logger) Source() string { method Debug (line 331) | func (l logger) Debug(format string, args ...interface{}) { method Info (line 350) | func (l logger) Info(format string, args ...interface{}) { method Warn (line 363) | func (l logger) Warn(format string, args ...interface{}) { method Error (line 376) | func (l logger) Error(format string, args ...interface{}) { method Fatal (line 388) | func (l logger) Fatal(format string, args ...interface{}) { method Panic (line 400) | func (l logger) Panic(format string, args ...interface{}) { method DebugBlock (line 413) | func (l logger) DebugBlock(prefix string, format string, args ...inter... method InfoBlock (line 419) | func (l logger) InfoBlock(prefix string, format string, args ...interf... method WarnBlock (line 423) | func (l logger) WarnBlock(prefix string, format string, args ...interf... method ErrorBlock (line 427) | func (l logger) ErrorBlock(prefix string, format string, args ...inter... method block (line 431) | func (l logger) block(level Level, prefix, format string, args ...inte... method Debugf (line 465) | func (l logger) Debugf(format string, args ...interface{}) { method Infof (line 469) | func (l logger) Infof(format string, args ...interface{}) { method Warnf (line 473) | func (l logger) Warnf(format string, args ...interface{}) { method Errorf (line 477) | func (l logger) Errorf(format string, args ...interface{}) { method Panicf (line 481) | func (l logger) Panicf(format string, args ...interface{}) { method Fatalf (line 485) | func (l logger) Fatalf(format string, args ...interface{}) { type logging (line 102) | type logging struct method setLevel (line 194) | func (log *logging) setLevel(level Level) error { method setDebug (line 212) | func (log *logging) setDebug(source string, enabled bool) bool { method getDebug (line 224) | func (log *logging) getDebug(source string) bool { method setDbgMap (line 234) | func (log *logging) setDbgMap(dbgmap srcmap) { method setPrefix (line 247) | func (log *logging) setPrefix(prefix bool) { method align (line 252) | func (log *logging) align(l logger) { method realign (line 268) | func (log *logging) realign(maxlen int) { method get (line 288) | func (log *logging) get(source string) logger { function Get (line 125) | func Get(source string) Logger { function NewLogger (line 132) | func NewLogger(source string) Logger { function EnableDebug (line 137) | func EnableDebug(source string) bool { function DisableDebug (line 144) | func DisableDebug(source string) bool { function DebugEnabled (line 151) | func DebugEnabled(source string) bool { function SetLevel (line 158) | func SetLevel(level Level) { function Flush (line 165) | func Flush() { function loggerError (line 461) | func loggerError(format string, args ...interface{}) error { FILE: pkg/log/ratelimit.go type Rate (line 26) | type Rate struct type ratelimited (line 36) | type ratelimited struct method Debug (line 80) | func (rl *ratelimited) Debug(format string, args ...interface{}) { method Info (line 87) | func (rl *ratelimited) Info(format string, args ...interface{}) { method Warn (line 94) | func (rl *ratelimited) Warn(format string, args ...interface{}) { method Error (line 101) | func (rl *ratelimited) Error(format string, args ...interface{}) { method getMessageLimit (line 109) | func (rl *ratelimited) getMessageLimit(msg string) *goxrate.Limiter { constant DefaultWindow (line 46) | DefaultWindow = 256 constant MinimumWindow (line 48) | MinimumWindow = 32 function Every (line 52) | func Every(interval time.Duration) goxrate.Limit { function Interval (line 57) | func Interval(interval time.Duration) Rate { function RateLimit (line 62) | func RateLimit(log Logger, rate Rate) Logger { FILE: pkg/log/ratelimit_test.go function TestRateLimit (line 25) | func TestRateLimit(t *testing.T) { FILE: pkg/log/signal.go function SetupDebugToggleSignal (line 26) | func SetupDebugToggleSignal(sig os.Signal) { function ClearDebugToggleSignal (line 51) | func ClearDebugToggleSignal() { function clearDebugToggleSignal (line 57) | func clearDebugToggleSignal() { FILE: pkg/log/stdlog-logger.go type stdlogger (line 22) | type stdlogger struct method Write (line 42) | func (s *stdlogger) Write(p []byte) (int, error) { function SetStdLogger (line 27) | func SetStdLogger(source string) { FILE: pkg/metrics/metrics.go type InitCollector (line 17) | type InitCollector function RegisterCollector (line 20) | func RegisterCollector(name string, init InitCollector) error { function NewMetricGatherer (line 33) | func NewMetricGatherer() (prometheus.Gatherer, error) { function metricsError (line 55) | func metricsError(format string, args ...interface{}) error { FILE: pkg/pidfile/pidfile.go function GetPath (line 34) | func GetPath() string { function SetPath (line 39) | func SetPath(path string) { function Write (line 47) | func Write() error { function Read (line 74) | func Read() (int, error) { function closePIDFile (line 96) | func closePIDFile() { function Remove (line 106) | func Remove() error { function OwnerPid (line 120) | func OwnerPid() (int, error) { function defaultPath (line 152) | func defaultPath() string { FILE: pkg/pidfile/pidfile_test.go constant testPidFile (line 27) | testPidFile = "pidfile-test.pid" function prepare (line 30) | func prepare(t *testing.T) string { function TestDefaults (line 41) | func TestDefaults(t *testing.T) { function TestGetSetPath (line 78) | func TestGetSetPath(t *testing.T) { function TestReadNonExisting (line 91) | func TestReadNonExisting(t *testing.T) { function TestRemoveNonExisting (line 106) | func TestRemoveNonExisting(t *testing.T) { function TestRemoveExisting (line 114) | func TestRemoveExisting(t *testing.T) { function TestWrite (line 129) | func TestWrite(t *testing.T) { function TestReadClosed (line 147) | func TestReadClosed(t *testing.T) { function TestFailToOverwrite (line 170) | func TestFailToOverwrite(t *testing.T) { function TestRemoveToOverwrite (line 192) | func TestRemoveToOverwrite(t *testing.T) { function TestOwnerPid (line 220) | func TestOwnerPid(t *testing.T) { function mkTestDir (line 243) | func mkTestDir(t *testing.T) (string, error) { FILE: pkg/policycollector/collector.go type PolicyCollector (line 23) | type PolicyCollector struct method SetPolicy (line 27) | func (c *PolicyCollector) SetPolicy(policy policy.Policy) { method HasPolicySpecificMetrics (line 32) | func (c *PolicyCollector) HasPolicySpecificMetrics() bool { method Describe (line 40) | func (c *PolicyCollector) Describe(ch chan<- *prometheus.Desc) { method Collect (line 47) | func (c *PolicyCollector) Collect(ch chan<- prometheus.Metric) { method RegisterPolicyMetricsCollector (line 58) | func (c *PolicyCollector) RegisterPolicyMetricsCollector() error { FILE: pkg/procstats/procstats.go type CPUTimeStat (line 28) | type CPUTimeStat struct method GetCPUTimeStat (line 47) | func (t *CPUTimeStat) GetCPUTimeStat() error { FILE: pkg/sysfs/error.go function sysfsError (line 21) | func sysfsError(path, format string, args ...interface{}) error { FILE: pkg/sysfs/parsers.go constant k (line 25) | k = (int64(1) << 10) constant M (line 26) | M = (int64(1) << 20) constant G (line 27) | G = (int64(1) << 30) constant T (line 28) | T = (int64(1) << 40) type PickEntryFn (line 40) | type PickEntryFn function splitNumericAndUnit (line 43) | func splitNumericAndUnit(path string, value string) (string, int64, erro... function parseNumeric (line 63) | func parseNumeric(path, value string, ptr interface{}) error { function ParseFileEntries (line 119) | func ParseFileEntries(path string, values map[string]interface{}, pickFn... FILE: pkg/sysfs/system.go constant sysfsCPUPath (line 39) | sysfsCPUPath = "devices/system/cpu" constant sysfsNumaNodePath (line 41) | sysfsNumaNodePath = "devices/system/node" type MemoryType (line 45) | type MemoryType constant MemoryTypeDRAM (line 49) | MemoryTypeDRAM MemoryType = iota constant MemoryTypePMEM (line 51) | MemoryTypePMEM constant MemoryTypeHBM (line 53) | MemoryTypeHBM type System (line 57) | type System interface type system (line 79) | type system struct method Discover (line 251) | func (sys *system) Discover() error { method SetCpusOnline (line 336) | func (sys *system) SetCpusOnline(online bool, cpus idset.IDSet) (idset... method SetCPUFrequencyLimits (line 381) | func (sys *system) SetCPUFrequencyLimits(min, max uint64, cpus idset.I... method PackageIDs (line 398) | func (sys *system) PackageIDs() []idset.ID { method NodeIDs (line 414) | func (sys *system) NodeIDs() []idset.ID { method CPUIDs (line 430) | func (sys *system) CPUIDs() []idset.ID { method PackageCount (line 446) | func (sys *system) PackageCount() int { method SocketCount (line 451) | func (sys *system) SocketCount() int { method CPUCount (line 456) | func (sys *system) CPUCount() int { method NUMANodeCount (line 461) | func (sys *system) NUMANodeCount() int { method ThreadCount (line 470) | func (sys *system) ThreadCount() int { method CPUSet (line 475) | func (sys *system) CPUSet() cpuset.CPUSet { method Package (line 480) | func (sys *system) Package(id idset.ID) CPUPackage { method Node (line 485) | func (sys *system) Node(id idset.ID) Node { method NodeDistance (line 490) | func (sys *system) NodeDistance(from, to idset.ID) int { method CPU (line 495) | func (sys *system) CPU(id idset.ID) CPU { method Offlined (line 500) | func (sys *system) Offlined() cpuset.CPUSet { method Isolated (line 505) | func (sys *system) Isolated() cpuset.CPUSet { method discoverCPUs (line 510) | func (sys *system) discoverCPUs() error { method discoverCPU (line 533) | func (sys *system) discoverCPU(path string) error { method discoverNodes (line 691) | func (sys *system) discoverNodes() error { method discoverNode (line 796) | func (sys *system) discoverNode(path string) error { method discoverPackages (line 902) | func (sys *system) discoverPackages() error { method discoverSst (line 941) | func (sys *system) discoverSst() error { type CPUPackage (line 92) | type CPUPackage interface type cpuPackage (line 102) | type cpuPackage struct method ID (line 973) | func (p *cpuPackage) ID() idset.ID { method CPUSet (line 978) | func (p *cpuPackage) CPUSet() cpuset.CPUSet { method DieIDs (line 983) | func (p *cpuPackage) DieIDs() []idset.ID { method NodeIDs (line 988) | func (p *cpuPackage) NodeIDs() []idset.ID { method DieNodeIDs (line 993) | func (p *cpuPackage) DieNodeIDs(id idset.ID) []idset.ID { method DieCPUSet (line 1001) | func (p *cpuPackage) DieCPUSet(id idset.ID) cpuset.CPUSet { method SstInfo (line 1008) | func (p *cpuPackage) SstInfo() *sst.SstPackageInfo { type Node (line 113) | type Node interface type node (line 125) | type node struct method ID (line 812) | func (n *node) ID() idset.ID { method PackageID (line 817) | func (n *node) PackageID() idset.ID { method DieID (line 822) | func (n *node) DieID() idset.ID { method CPUSet (line 827) | func (n *node) CPUSet() cpuset.CPUSet { method Distance (line 832) | func (n *node) Distance() []int { method DistanceFrom (line 837) | func (n *node) DistanceFrom(id idset.ID) int { method MemoryInfo (line 846) | func (n *node) MemoryInfo() (*MemInfo, error) { method GetMemoryType (line 892) | func (n *node) GetMemoryType() MemoryType { method HasNormalMemory (line 897) | func (n *node) HasNormalMemory() bool { type CPU (line 137) | type CPU interface type cpu (line 153) | type cpu struct method ID (line 588) | func (c *cpu) ID() idset.ID { method PackageID (line 593) | func (c *cpu) PackageID() idset.ID { method DieID (line 598) | func (c *cpu) DieID() idset.ID { method NodeID (line 603) | func (c *cpu) NodeID() idset.ID { method CoreID (line 608) | func (c *cpu) CoreID() idset.ID { method ThreadCPUSet (line 613) | func (c *cpu) ThreadCPUSet() cpuset.CPUSet { method BaseFrequency (line 618) | func (c *cpu) BaseFrequency() uint64 { method FrequencyRange (line 623) | func (c *cpu) FrequencyRange() CPUFreq { method EPP (line 628) | func (c *cpu) EPP() EPP { method Online (line 633) | func (c *cpu) Online() bool { method Isolated (line 638) | func (c *cpu) Isolated() bool { method SstClos (line 644) | func (c *cpu) SstClos() int { method SetFrequencyLimits (line 649) | func (c *cpu) SetFrequencyLimits(min, max uint64) error { type CPUFreq (line 170) | type CPUFreq struct type EPP (line 177) | type EPP method String (line 1031) | func (e EPP) String() string { constant EPPPerformance (line 180) | EPPPerformance EPP = iota constant EPPBalancePerformance (line 181) | EPPBalancePerformance constant EPPBalancePower (line 182) | EPPBalancePower constant EPPPower (line 183) | EPPPower constant EPPUnknown (line 184) | EPPUnknown type MemInfo (line 188) | type MemInfo struct type CacheType (line 200) | type CacheType constant DataCache (line 204) | DataCache CacheType = "Data" constant InstructionCache (line 206) | InstructionCache CacheType = "Instruction" constant UnifiedCache (line 208) | UnifiedCache CacheType = "Unified" type Cache (line 212) | type Cache struct function SetSysRoot (line 221) | func SetSysRoot(path string) { function SysRoot (line 226) | func SysRoot() string { function DiscoverSystem (line 231) | func DiscoverSystem() (System, error) { function DiscoverSystemAt (line 236) | func DiscoverSystemAt(path string) (System, error) { function readCPUsetFile (line 679) | func readCPUsetFile(base, entry string) (cpuset.CPUSet, error) { function EPPFromString (line 1039) | func EPPFromString(s string) EPP { FILE: pkg/sysfs/utils.go function getEnumeratedID (line 29) | func getEnumeratedID(name string) idset.ID { function readSysfsEntry (line 51) | func readSysfsEntry(base, entry string, ptr interface{}, args ...interfa... function writeSysfsEntry (line 93) | func writeSysfsEntry(base, entry string, val, oldp interface{}, args ...... function getSeparator (line 140) | func getSeparator(defaultVal string, args []interface{}) (string, error) { function parseValue (line 152) | func parseValue(str string, value interface{}) error { function parseValueList (line 200) | func parseValueList(str, sep string, valuep interface{}) error { function formatValue (line 323) | func formatValue(value interface{}) (string, error) { function formatValueList (line 335) | func formatValueList(sep string, value interface{}) (string, error) { function IDSetFromCPUSet (line 358) | func IDSetFromCPUSet(cset cpuset.CPUSet) idset.IDSet { function CPUSetFromIDSet (line 363) | func CPUSetFromIDSet(s idset.IDSet) cpuset.CPUSet { FILE: pkg/testutils/verify.go function VerifyDeepEqual (line 10) | func VerifyDeepEqual(t *testing.T, valueName string, expectedValue inter... function VerifyError (line 19) | func VerifyError(t *testing.T, err error, expectedCount int, expectedSub... FILE: pkg/topology/topology.go constant ProviderKubelet (line 36) | ProviderKubelet = "kubelet" type Hint (line 40) | type Hint struct method String (line 174) | func (h *Hint) String() string { type Hints (line 48) | type Hints function SetSysRoot (line 51) | func SetSysRoot(root string) { function getDevicesFromVirtual (line 55) | func getDevicesFromVirtual(realDevPath string) (devs []string, err error) { function getTopologyHint (line 83) | func getTopologyHint(sysFSPath string) (*Hint, error) { function NewTopologyHints (line 129) | func NewTopologyHints(devPath string) (hints Hints, err error) { function MergeTopologyHints (line 158) | func MergeTopologyHints(org, hints Hints) (res Hints) { function FindSysFsDevice (line 197) | func FindSysFsDevice(dev string) (string, error) { function readFilesInDirectory (line 229) | func readFilesInDirectory(fileMap map[string]*string, dir string) error { function mapKeys (line 244) | func mapKeys(m map[string]bool) []string { FILE: pkg/topology/topology_test.go function setupTestEnv (line 25) | func setupTestEnv(t *testing.T) func() { function TestMapKeys (line 40) | func TestMapKeys(t *testing.T) { function TestFindSysFsDevice (line 75) | func TestFindSysFsDevice(t *testing.T) { function TestReadFilesInDirectory (line 123) | func TestReadFilesInDirectory(t *testing.T) { function TestGetDevicesFromVirtual (line 152) | func TestGetDevicesFromVirtual(t *testing.T) { function TestMergeTopologyHints (line 209) | func TestMergeTopologyHints(t *testing.T) { function TestNewTopologyHints (line 263) | func TestNewTopologyHints(t *testing.T) { FILE: pkg/utils/cpuset/cpuset.go function MustParse (line 36) | func MustParse(s string) cpuset.CPUSet { function ShortCPUSet (line 45) | func ShortCPUSet(cset cpuset.CPUSet) string { function mkRange (line 86) | func mkRange(beg, end, step int) string { FILE: pkg/utils/cpuset/cpuset_test.go function TestShortCPUSet (line 21) | func TestShortCPUSet(t *testing.T) { FILE: pkg/utils/json.go function DumpJSON (line 26) | func DumpJSON(r interface{}) string { FILE: pkg/utils/net.go function WaitForServer (line 29) | func WaitForServer(socket string, timeout time.Duration, opts ...interfa... function IsListeningSocket (line 99) | func IsListeningSocket(socket string) (bool, error) { type temporary (line 130) | type temporary interface type timeout (line 134) | type timeout interface type origin (line 138) | type origin interface function isFatalDialError (line 142) | func isFatalDialError(err error) bool { FILE: pkg/utils/parse.go function ParseEnabled (line 23) | func ParseEnabled(value string) (bool, error) { FILE: pkg/utils/sort.go function SortUint64s (line 22) | func SortUint64s(a []uint64) { type Uint64Slice (line 27) | type Uint64Slice method Len (line 30) | func (s Uint64Slice) Len() int { return len(s) } method Less (line 33) | func (s Uint64Slice) Less(i, j int) bool { return s[i] < s[j] } method Swap (line 36) | func (s Uint64Slice) Swap(i, j int) { s[i], s[j] = s[j], s[i] } FILE: pkg/utils/tar.go function UncompressTbz2 (line 25) | func UncompressTbz2(archive string, dir string) error { FILE: pkg/version/version.go function PrintVersionInfo (line 56) | func PrintVersionInfo() { type version (line 63) | type version struct method IsBoolFlag (line 66) | func (version) IsBoolFlag() bool { method Set (line 71) | func (version) Set(value string) error { method String (line 85) | func (*version) String() string { function init (line 90) | func init() { FILE: test/e2e/policies.test-suite/podpools/n4c16/py_consts.var.py class expected (line 30) | class expected: class cpus (line 31) | class cpus: class mems (line 33) | class mems: function _add_expected_pool (line 36) | def _add_expected_pool(poolname, poolindex, cpuset): FILE: test/functional/e2e_test.go constant testDir (line 38) | testDir = "/tmp/cri-rm-test" function init (line 41) | func init() { type testEnv (line 50) | type testEnv struct method Run (line 59) | func (env *testEnv) Run(name string, testFunction func(context.Context... function TestListPodSandbox (line 147) | func TestListPodSandbox(t *testing.T) { function TestListContainers (line 189) | func TestListContainers(t *testing.T) { function TestLingeringPodCleanup (line 231) | func TestLingeringPodCleanup(t *testing.T) { function TestLingeringContainerCleanup (line 322) | func TestLingeringContainerCleanup(t *testing.T) { function createPodRequest (line 441) | func createPodRequest(name, uid, namespace string, function createContainerRequest (line 467) | func createContainerRequest(podID, name string, FILE: test/functional/fake_cri_server_test.go constant fakeKubeAPIVersion (line 35) | fakeKubeAPIVersion = "0.1.0" constant fakeRuntimeName (line 36) | fakeRuntimeName = "fake-CRI-runtime" constant fakeRuntimeVersion (line 37) | fakeRuntimeVersion = "v0.0.0" constant fakeRuntimeAPIVersion (line 38) | fakeRuntimeAPIVersion = "v1" type fakeCriServer (line 41) | type fakeCriServer struct method stop (line 94) | func (s *fakeCriServer) stop() { method callHandler (line 100) | func (s *fakeCriServer) callHandler(ctx context.Context, request inter... method Version (line 134) | func (s *fakeCriServer) Version(ctx context.Context, req *criv1.Versio... method RunPodSandbox (line 148) | func (s *fakeCriServer) RunPodSandbox(ctx context.Context, req *criv1.... method StopPodSandbox (line 153) | func (s *fakeCriServer) StopPodSandbox(ctx context.Context, req *criv1... method RemovePodSandbox (line 158) | func (s *fakeCriServer) RemovePodSandbox(ctx context.Context, req *cri... method PodSandboxStatus (line 163) | func (s *fakeCriServer) PodSandboxStatus(ctx context.Context, req *cri... method ListPodSandbox (line 168) | func (s *fakeCriServer) ListPodSandbox(ctx context.Context, req *criv1... method CreateContainer (line 175) | func (s *fakeCriServer) CreateContainer(ctx context.Context, req *criv... method StartContainer (line 180) | func (s *fakeCriServer) StartContainer(ctx context.Context, req *criv1... method StopContainer (line 185) | func (s *fakeCriServer) StopContainer(ctx context.Context, req *criv1.... method RemoveContainer (line 190) | func (s *fakeCriServer) RemoveContainer(ctx context.Context, req *criv... method ListContainers (line 195) | func (s *fakeCriServer) ListContainers(ctx context.Context, req *criv1... method ContainerStatus (line 202) | func (s *fakeCriServer) ContainerStatus(ctx context.Context, req *criv... method UpdateContainerResources (line 207) | func (s *fakeCriServer) UpdateContainerResources(ctx context.Context, ... method ReopenContainerLog (line 216) | func (s *fakeCriServer) ReopenContainerLog(ctx context.Context, req *c... method ExecSync (line 221) | func (s *fakeCriServer) ExecSync(ctx context.Context, req *criv1.ExecS... method Exec (line 226) | func (s *fakeCriServer) Exec(ctx context.Context, req *criv1.ExecReque... method Attach (line 231) | func (s *fakeCriServer) Attach(ctx context.Context, req *criv1.AttachR... method PortForward (line 236) | func (s *fakeCriServer) PortForward(ctx context.Context, req *criv1.Po... method ContainerStats (line 241) | func (s *fakeCriServer) ContainerStats(ctx context.Context, req *criv1... method ListContainerStats (line 246) | func (s *fakeCriServer) ListContainerStats(ctx context.Context, req *c... method PodSandboxStats (line 251) | func (s *fakeCriServer) PodSandboxStats(ctx context.Context, req *criv... method ListPodSandboxStats (line 256) | func (s *fakeCriServer) ListPodSandboxStats(ctx context.Context, req *... method UpdateRuntimeConfig (line 261) | func (s *fakeCriServer) UpdateRuntimeConfig(ctx context.Context, req *... method Status (line 266) | func (s *fakeCriServer) Status(ctx context.Context, req *criv1.StatusR... method CheckpointContainer (line 271) | func (s *fakeCriServer) CheckpointContainer(ctx context.Context, req *... method GetContainerEvents (line 276) | func (s *fakeCriServer) GetContainerEvents(_ *criv1.GetEventsRequest, ... method ListMetricDescriptors (line 280) | func (s *fakeCriServer) ListMetricDescriptors(ctx context.Context, req... method ListPodSandboxMetrics (line 285) | func (s *fakeCriServer) ListPodSandboxMetrics(ctx context.Context, req... method RuntimeConfig (line 290) | func (s *fakeCriServer) RuntimeConfig(ctx context.Context, req *criv1.... method ListImages (line 297) | func (s *fakeCriServer) ListImages(ctx context.Context, req *criv1.Lis... method ImageStatus (line 306) | func (s *fakeCriServer) ImageStatus(ctx context.Context, req *criv1.Im... method PullImage (line 311) | func (s *fakeCriServer) PullImage(ctx context.Context, req *criv1.Pull... method RemoveImage (line 316) | func (s *fakeCriServer) RemoveImage(ctx context.Context, req *criv1.Re... method ImageFsInfo (line 321) | func (s *fakeCriServer) ImageFsInfo(ctx context.Context, req *criv1.Im... function newFakeCriServer (line 48) | func newFakeCriServer(t *testing.T, socket string, fakeHandlers map[stri...