@@ -87,11 +87,11 @@ func configurationTableValues(outputs map[string]script.ScriptOutput) []table.Fi
8787 fields = append (fields , []table.Field {
8888 {Name : "Energy Performance Bias" , Description : "--epb <0-15>" , Values : []string {extract .EPBFromOutput (outputs )}},
8989 {Name : "Energy Performance Preference" , Description : "--epp <0-255>" , Values : []string {extract .EPPFromOutput (outputs )}},
90- {Name : "Scaling Governor" , Description : "--gov <performance|powersave >" , Values : []string {strings .TrimSpace (outputs [script .ScalingGovernorScriptName ].Stdout )}},
90+ {Name : "Scaling Governor" , Description : "--gov <" + strings . Join ( governorOptions , "|" ) + " >" , Values : []string {strings .TrimSpace (outputs [script .ScalingGovernorScriptName ].Stdout )}},
9191 }... )
9292 // add ELC (for SRF, CWF and GNR only)
9393 if strings .Contains (uarch , cpus .UarchSRF ) || strings .Contains (uarch , cpus .UarchGNR ) || strings .Contains (uarch , cpus .UarchCWF ) {
94- fields = append (fields , table.Field {Name : "Efficiency Latency Control" , Description : "--elc <power-optimized|latency-optimized >" , Values : []string {extract .ELCSummaryFromOutput (outputs )}})
94+ fields = append (fields , table.Field {Name : "Efficiency Latency Control" , Description : "--elc <" + strings . Join ( elcOptions , "|" ) + " >" , Values : []string {extract .ELCSummaryFromOutput (outputs )}})
9595 }
9696 // add prefetchers
9797 for _ , pf := range extract .PrefetcherDefinitions {
@@ -123,20 +123,20 @@ func configurationTableValues(outputs map[string]script.ScriptOutput) []table.Fi
123123 fields = append (fields ,
124124 table.Field {
125125 Name : pf .ShortName + " prefetcher" ,
126- Description : "--" + "pref-" + strings .ReplaceAll (strings .ToLower (pf .ShortName ), " " , "" ) + " <enable|disable >" ,
126+ Description : "--" + "pref-" + strings .ReplaceAll (strings .ToLower (pf .ShortName ), " " , "" ) + " <" + strings . Join ( prefetcherOptions , "|" ) + " >" ,
127127 Values : []string {enabledDisabled }},
128128 )
129129 }
130130 }
131131 // add C6
132132 c6 := extract .C6FromOutput (outputs )
133133 if c6 != "" {
134- fields = append (fields , table.Field {Name : "C6" , Description : "--c6 <enable|disable >" , Values : []string {c6 }})
134+ fields = append (fields , table.Field {Name : "C6" , Description : "--c6 <" + strings . Join ( c6Options , "|" ) + " >" , Values : []string {c6 }})
135135 }
136136 // add C1 Demotion
137137 c1Demotion := strings .TrimSpace (outputs [script .C1DemotionScriptName ].Stdout )
138138 if c1Demotion != "" {
139- fields = append (fields , table.Field {Name : "C1 Demotion" , Description : "--c1-demotion <enable|disable >" , Values : []string {c1Demotion }})
139+ fields = append (fields , table.Field {Name : "C1 Demotion" , Description : "--c1-demotion <" + strings . Join ( c1DemotionOptions , "|" ) + " >" , Values : []string {c1Demotion }})
140140 }
141141 return fields
142142}
0 commit comments