Skip to content

Commit e905d9b

Browse files
committed
generate: add setters for IntelRdt EnableMonitoring and Schemata
Signed-off-by: Markus Lehtonen <[email protected]>
1 parent 3e5ee1b commit e905d9b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

generate/generate.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"fmt"
77
"io"
88
"os"
9+
"slices"
910
"strings"
1011

1112
"github.com/moby/sys/capability"
@@ -621,6 +622,18 @@ func (g *Generator) SetLinuxIntelRdtClosID(clos string) {
621622
g.Config.Linux.IntelRdt.ClosID = clos
622623
}
623624

625+
// SetLinuxIntelRdtEnableMonitoring sets g.Config.Linux.IntelRdt.EnableMonitoring
626+
func (g *Generator) SetLinuxIntelRdtEnableMonitoring(value bool) {
627+
g.initConfigLinuxIntelRdt()
628+
g.Config.Linux.IntelRdt.EnableMonitoring = value
629+
}
630+
631+
// SetLinuxIntelRdtSchemata sets g.Config.Linux.IntelRdt.Schemata
632+
func (g *Generator) SetLinuxIntelRdtSchemata(schemata []string) {
633+
g.initConfigLinuxIntelRdt()
634+
g.Config.Linux.IntelRdt.Schemata = slices.Clone(schemata)
635+
}
636+
624637
// SetLinuxIntelRdtL3CacheSchema sets g.Config.Linux.IntelRdt.L3CacheSchema
625638
func (g *Generator) SetLinuxIntelRdtL3CacheSchema(schema string) {
626639
g.initConfigLinuxIntelRdt()

0 commit comments

Comments
 (0)