30 lines
1.2 KiB
Diff
30 lines
1.2 KiB
Diff
Index: kepler-0.7.11/pkg/collector/stats/utils.go
|
|
===================================================================
|
|
--- kepler-0.7.11.orig/pkg/collector/stats/utils.go
|
|
+++ kepler-0.7.11/pkg/collector/stats/utils.go
|
|
@@ -36,7 +36,7 @@ import (
|
|
)
|
|
|
|
const (
|
|
- CPUModelDataPath = "/var/lib/kepler/data/cpus.yaml"
|
|
+ CPUModelDataPath = "/usr/share/kepler/data/cpus.yaml"
|
|
CPUPmuNamePath = "/sys/devices/cpu/caps/pmu_name"
|
|
CPUTopologyPath = "/sys/devices/system/cpu/cpu%d/topology/physical_package_id"
|
|
)
|
|
Index: kepler-0.7.11/pkg/config/config.go
|
|
===================================================================
|
|
--- kepler-0.7.11.orig/pkg/config/config.go
|
|
+++ kepler-0.7.11/pkg/config/config.go
|
|
@@ -141,9 +141,9 @@ var (
|
|
)
|
|
|
|
// return local path to power model weight
|
|
-// e.g., /var/lib/kepler/data/acpi_AbsPowerModel.json
|
|
+// e.g., /usr/share/kepler/data/model_weight/acpi_AbsPowerModel.json
|
|
func GetDefaultPowerModelURL(modelOutputType, energySource string) string {
|
|
- return fmt.Sprintf("/var/lib/kepler/data/%s_%sModel.json", energySource, modelOutputType)
|
|
+ return fmt.Sprintf("/usr/share/kepler/data/model_weight/%s_%sModel.json", energySource, modelOutputType)
|
|
}
|
|
|
|
func logBoolConfigs() {
|