mirror of
https://github.com/opencontainers/runc.git
synced 2025-09-26 19:41:35 +08:00
events/intelrdt: report full schemata
Signed-off-by: Markus Lehtonen <markus.lehtonen@intel.com>
This commit is contained in:
@@ -173,6 +173,8 @@ func convertLibcontainerStats(ls *libcontainer.Stats) *types.Stats {
|
||||
if intelrdt.IsCMTEnabled() {
|
||||
s.IntelRdt.CMTStats = is.CMTStats
|
||||
}
|
||||
|
||||
s.IntelRdt.Schemata = is.Schemata
|
||||
}
|
||||
|
||||
s.NetworkInterfaces = ls.Interfaces
|
||||
|
@@ -524,6 +524,8 @@ func (m *Manager) GetStats() (*Stats, error) {
|
||||
}
|
||||
schemaStrings := strings.Split(tmpStrings, "\n")
|
||||
|
||||
stats.Schemata = schemaStrings
|
||||
|
||||
if IsCATEnabled() {
|
||||
// The read-only L3 cache information
|
||||
l3CacheInfo, err := getL3CacheInfo()
|
||||
|
@@ -45,6 +45,9 @@ type Stats struct {
|
||||
// The memory bandwidth schema in 'container_id' group
|
||||
MemBwSchema string `json:"mem_bw_schema,omitempty"`
|
||||
|
||||
// Schemata contains the full schemata of the ClosID (resctrl group) that the container is assigned to.
|
||||
Schemata []string `json:"schemata,omitempty"`
|
||||
|
||||
// The memory bandwidth monitoring statistics from NUMA nodes in 'container_id' group
|
||||
MBMStats *[]MBMNumaNodeStats `json:"mbm_stats,omitempty"`
|
||||
|
||||
|
@@ -143,6 +143,9 @@ type IntelRdt struct {
|
||||
// The memory bandwidth schema in 'container_id' group
|
||||
MemBwSchema string `json:"mem_bw_schema,omitempty"`
|
||||
|
||||
// Schemata contains the full schemata of the ClosID (resctrl group) that the container is assigned to.
|
||||
Schemata []string `json:"schemata,omitempty"`
|
||||
|
||||
// The memory bandwidth monitoring statistics from NUMA nodes in 'container_id' group
|
||||
MBMStats *[]intelrdt.MBMNumaNodeStats `json:"mbm_stats,omitempty"`
|
||||
|
||||
|
Reference in New Issue
Block a user