Skip to content

Commit

Permalink
add assert check for msr
Browse files Browse the repository at this point in the history
Change-Id: If17ec6155f63ef350464eed4803b7d8fe29e1f47
  • Loading branch information
rdementi committed Dec 19, 2023
1 parent aeb48ec commit b60c7d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cpucounters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5115,6 +5115,7 @@ void BasicCounterState::readAndAggregateTSC(std::shared_ptr<SafeMsrHandle> msr)

void BasicCounterState::readAndAggregate(std::shared_ptr<SafeMsrHandle> msr)
{
assert(msr.get());
uint64 cInstRetiredAny = 0, cCpuClkUnhaltedThread = 0, cCpuClkUnhaltedRef = 0;
uint64 cL3Occupancy = 0;
uint64 cCustomEvents[PERF_MAX_CUSTOM_COUNTERS] = {0ULL, 0ULL, 0ULL, 0ULL, 0ULL, 0ULL, 0ULL, 0ULL };
Expand Down

0 comments on commit b60c7d5

Please sign in to comment.