intelrdt: add mbm stats

Signed-off-by: Paweł Szulik <pawel.szulik@intel.com>
This commit is contained in:
Paweł Szulik
2020-04-08 23:05:35 +02:00
parent 7fa13b2773
commit d1e4c7b803
6 changed files with 282 additions and 1 deletions
+5
View File
@@ -1,5 +1,7 @@
package types
import "github.com/opencontainers/runc/libcontainer/intelrdt"
// Event struct for encoding the event data to json.
type Event struct {
Type string `json:"type"`
@@ -113,6 +115,9 @@ type IntelRdt struct {
// The memory bandwidth schema in 'container_id' group
MemBwSchema string `json:"mem_bw_schema,omitempty"`
// The memory bandwidth monitoring statistics from NUMA nodes in 'container_id' group
MBMStats *[]intelrdt.MBMNumaNodeStats `json:"mbm_statistics,omitempty"`
}
type NetworkInterface struct {