diff --git a/collectors/likwidMetric.go b/collectors/likwidMetric.go index e8bcce0..3db84cf 100644 --- a/collectors/likwidMetric.go +++ b/collectors/likwidMetric.go @@ -142,7 +142,7 @@ func genLikwidEventSet(input LikwidCollectorEventsetConfig) LikwidEventsetConfig estr := strings.Join(tmplist, ",") res := make(map[int]map[string]float64) met := make(map[int]map[string]float64) - for _, i := range topo.CpuList() { + for _, i := range topo.HwthreadList() { res[i] = make(map[string]float64) for k := range input.Events { res[i][k] = 0.0 diff --git a/pkg/ccTopology/ccTopology.go b/pkg/ccTopology/ccTopology.go index 0b1bf17..8763835 100644 --- a/pkg/ccTopology/ccTopology.go +++ b/pkg/ccTopology/ccTopology.go @@ -259,12 +259,6 @@ func HwthreadList() []int { return slices.Clone(cache.HwthreadList) } -// Get list of hardware thread IDs in the order of listing in /proc/cpuinfo -// Deprecated! Use HwthreadList() -func CpuList() []int { - return HwthreadList() -} - // CoreList gets the list of CPU core IDs in the order of listing in /proc/cpuinfo func CoreList() []int { return slices.Clone(cache.CoreList)