Skip to content

Commit

Permalink
some compile fixes introduced by merge (will need further testing)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marius Hillenbrand committed Nov 10, 2015
1 parent 0ae2000 commit df78d3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
12 changes: 3 additions & 9 deletions cpucounters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,12 +473,6 @@ void PCM::initL3CacheOccupancyMonitoring()
return;
}

/* Check if we can access MSRs at all (would segfault otherwise) */
if(MSR == NULL)
{
return;
}

unsigned maxRMID;

const uint64 event = 1; //L3 Occupancy monitoring
Expand Down Expand Up @@ -4248,7 +4242,7 @@ void PCM::programCboOpcodeFilter(const uint32 opc, const uint32 cbo, std::shared
}
}

void PCM::programCboFilter0(const uint32 state, const int32 filterCoreId, const int32 filterThreadId, const uint32 cbo, SafeMsrHandle * msr)
void PCM::programCboFilter0(const uint32 state, const int32 filterCoreId, const int32 filterThreadId, const uint32 cbo, std::shared_ptr<SafeMsrHandle> msr)
{
uint32 tid = 0;

Expand Down Expand Up @@ -4326,7 +4320,7 @@ void PCM::programLLCCounters(LLCRequestType requestType, CBoxOpcode opcode, int
// The LLC_LOOKUP event uses cache line state but not request
// opcode, the TOR_INSERT filters for opcode, but not cache line
// state.
//
//
// Here we use counter 0 for the LLC_LOOKUP event and
// counter 1 for the TOR_INSERT event for tracking incoming
// requests.
Expand All @@ -4346,7 +4340,7 @@ void PCM::programLLCCounters(LLCRequestType requestType, CBoxOpcode opcode, int

// TODO move this documentation somewhere else

for (int32 i = 0; (i < num_sockets) && MSR; ++i)
for (int32 i = 0; i < num_sockets; ++i)
{
uint32 refCore = socketRefCore[i];
TemporalThreadAffinity tempThreadAffinity(refCore); // speedup trick for Linux
Expand Down
1 change: 0 additions & 1 deletion cpucounters.h
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,6 @@ class INTELPCM_API PCM
uint64 CX_MSR_PMON_BOX_FILTER1(uint32 Cbo) const;
uint64 CX_MSR_PMON_CTLY(uint32 Cbo, uint32 Ctl) const;
uint64 CX_MSR_PMON_BOX_CTL(uint32 Cbo) const;
uint32 getMaxNumOfCBoxes() const;
void programCboOpcodeFilter(const uint32 opc, const uint32 cbo, std::shared_ptr<SafeMsrHandle> msr);
void programCboFilter0(const uint32 state, const int32 filterCoreId, const int32 filterThreadId, const uint32 cbo, std::shared_ptr<SafeMsrHandle> msr);

Expand Down

0 comments on commit df78d3b

Please sign in to comment.