Values returns the raw filenames and values that can be written to the unified hierarchy
()
| 98 | // Values returns the raw filenames and values that |
| 99 | // can be written to the unified hierarchy |
| 100 | func (r *Resources) Values() (o []Value) { |
| 101 | if r.CPU != nil { |
| 102 | o = append(o, r.CPU.Values()...) |
| 103 | } |
| 104 | if r.Memory != nil { |
| 105 | o = append(o, r.Memory.Values()...) |
| 106 | } |
| 107 | if r.Pids != nil { |
| 108 | o = append(o, r.Pids.Values()...) |
| 109 | } |
| 110 | if r.IO != nil { |
| 111 | o = append(o, r.IO.Values()...) |
| 112 | } |
| 113 | if r.RDMA != nil { |
| 114 | o = append(o, r.RDMA.Values()...) |
| 115 | } |
| 116 | if r.HugeTlb != nil { |
| 117 | o = append(o, r.HugeTlb.Values()...) |
| 118 | } |
| 119 | return o |
| 120 | } |
| 121 | |
| 122 | // EnabledControllers returns the list of all not nil resource controllers |
| 123 | func (r *Resources) EnabledControllers() (c []string) { |
no outgoing calls
no test coverage detected