Skip to content

Commit d4ca2a1

Browse files
committed
events/intelrdt: report full schemata
Signed-off-by: Markus Lehtonen <[email protected]>
1 parent 1a10fde commit d4ca2a1

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

events.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ func convertLibcontainerStats(ls *libcontainer.Stats) *types.Stats {
173173
if intelrdt.IsCMTEnabled() {
174174
s.IntelRdt.CMTStats = is.CMTStats
175175
}
176+
177+
s.IntelRdt.Schemata = is.Schemata
176178
}
177179

178180
s.NetworkInterfaces = ls.Interfaces

libcontainer/intelrdt/intelrdt.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,8 @@ func (m *Manager) GetStats() (*Stats, error) {
533533
}
534534
schemaStrings := strings.Split(tmpStrings, "\n")
535535

536+
stats.Schemata = schemaStrings
537+
536538
if IsCATEnabled() {
537539
// The read-only L3 cache information
538540
l3CacheInfo, err := getL3CacheInfo()

libcontainer/intelrdt/stats.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ type Stats struct {
4545
// The memory bandwidth schema in 'container_id' group
4646
MemBwSchema string `json:"mem_bw_schema,omitempty"`
4747

48+
// The full schemata in 'container_id' group
49+
Schemata []string `json:"schemata,omitempty"`
50+
4851
// The memory bandwidth monitoring statistics from NUMA nodes in 'container_id' group
4952
MBMStats *[]MBMNumaNodeStats `json:"mbm_stats,omitempty"`
5053

types/events.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ type IntelRdt struct {
143143
// The memory bandwidth schema in 'container_id' group
144144
MemBwSchema string `json:"mem_bw_schema,omitempty"`
145145

146+
// The full schemata in 'container_id' group
147+
Schemata []string `json:"schemata,omitempty"`
148+
146149
// The memory bandwidth monitoring statistics from NUMA nodes in 'container_id' group
147150
MBMStats *[]intelrdt.MBMNumaNodeStats `json:"mbm_stats,omitempty"`
148151

0 commit comments

Comments
 (0)