mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-07-08 14:33:48 +02:00
Likwid collector: deal with vanishing and occuring msr devices
This commit is contained in:
parent
e03e21021d
commit
c85c4eeb21
@ -428,9 +428,13 @@ func (m *LikwidCollector) takeMeasurement(evidx int, evset LikwidEventsetConfig,
|
|||||||
case e := <-watcher.Events:
|
case e := <-watcher.Events:
|
||||||
ret = -1
|
ret = -1
|
||||||
if e.Op != fsnotify.Chmod {
|
if e.Op != fsnotify.Chmod {
|
||||||
|
C.HPMfinalize()
|
||||||
|
C.HPMinit()
|
||||||
ret = C.perfmon_init(C.int(len(m.cpulist)), &m.cpulist[0])
|
ret = C.perfmon_init(C.int(len(m.cpulist)), &m.cpulist[0])
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
C.HPMfinalize()
|
||||||
|
C.HPMinit()
|
||||||
ret = C.perfmon_init(C.int(len(m.cpulist)), &m.cpulist[0])
|
ret = C.perfmon_init(C.int(len(m.cpulist)), &m.cpulist[0])
|
||||||
}
|
}
|
||||||
if ret != 0 {
|
if ret != 0 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user