cycle Vs. haltedCycles in getUnhaltedCycles function
As far as I understand 'cycle' should be the total cycles including active and halted cycles for a given core. In other words, if we were to keep track of 'lastCycle' and 'lastHaltedCycles' as the values of cycle and 'haltedCycles' the last time the 'getUnhaltedCycles(...)' function was called then the following should be always true:
cycle - lastCycle >= haltedCycles - lastHaltedCycles
Is my understanding correct?
The reason I am asking is that I am seeing different behavior where the above condition is sometimes not met. This results in an assertion failure in process_stats.cpp (assert(cCycles >= lastCoreCycles[cid] && cInstrs >= lastCoreInstrs[cid]);)
Hello, did you fix the issue? I am having the same assertion error.