Skip to content

Commit 625a5ee

Browse files
committed
generate: add setters for IntelRdt EnableMonitoring and Schemata
Signed-off-by: Markus Lehtonen <[email protected]>
1 parent 5e63903 commit 625a5ee

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

generate/generate.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,18 @@ func (g *Generator) SetLinuxIntelRdtClosID(clos string) {
627627
g.Config.Linux.IntelRdt.ClosID = clos
628628
}
629629

630+
// SetLinuxIntelRdtEnableMonitoring sets g.Config.Linux.IntelRdt.EnableMonitoring
631+
func (g *Generator) SetLinuxIntelRdtEnableMonitoring(value bool) {
632+
g.initConfigLinuxIntelRdt()
633+
g.Config.Linux.IntelRdt.EnableMonitoring = value
634+
}
635+
636+
// SetLinuxIntelRdtSchemata sets g.Config.Linux.IntelRdt.Schemata
637+
func (g *Generator) SetLinuxIntelRdtSchemata(schemata []string) {
638+
g.initConfigLinuxIntelRdt()
639+
g.Config.Linux.IntelRdt.Schemata = slices.Clone(schemata)
640+
}
641+
630642
// SetLinuxIntelRdtL3CacheSchema sets g.Config.Linux.IntelRdt.L3CacheSchema
631643
func (g *Generator) SetLinuxIntelRdtL3CacheSchema(schema string) {
632644
g.initConfigLinuxIntelRdt()

0 commit comments

Comments
 (0)