Intel(r) Performance Counter Monitor
Public Member Functions | Protected Member Functions | Friends | List of all members
SystemCounterState Class Reference

System-wide counter state. More...

#include <cpucounters.h>

Inheritance diagram for SystemCounterState:
BasicCounterState UncoreCounterState

Public Member Functions

void accumulateSocketState (const SocketCounterState &o)
 
- Public Member Functions inherited from BasicCounterState
BasicCounterStateoperator+= (const BasicCounterState &o)
 
int32 getThermalHeadroom () const
 Returns current thermal headroom below TjMax.
 
- Public Member Functions inherited from UncoreCounterState
UncoreCounterStateoperator+= (const UncoreCounterState &o)
 

Protected Member Functions

void readAndAggregate (SafeMsrHandle *handle)
 
- Protected Member Functions inherited from BasicCounterState
void readAndAggregate (SafeMsrHandle *)
 
- Protected Member Functions inherited from UncoreCounterState
void readAndAggregate (SafeMsrHandle *)
 

Friends

class PCM
 
uint64 getIncomingQPILinkBytes (uint32 socketNr, uint32 linkNr, const SystemCounterState &before, const SystemCounterState &after)
 Get estimation of QPI data traffic per incoming QPI link. More...
 
uint64 getIncomingQPILinkBytes (uint32 socketNr, uint32 linkNr, const SystemCounterState &now)
 Return current value of the counter of QPI data traffic per incoming QPI link. More...
 
double getOutgoingQPILinkUtilization (uint32 socketNr, uint32 linkNr, const SystemCounterState &before, const SystemCounterState &after)
 Get utilization of outgoing QPI link (0..1) More...
 
uint64 getOutgoingQPILinkBytes (uint32 socketNr, uint32 linkNr, const SystemCounterState &before, const SystemCounterState &after)
 Get estimation of QPI (data+nondata) traffic per outgoing QPI link. More...
 
uint64 getOutgoingQPILinkBytes (uint32 socketNr, uint32 linkNr, const SystemCounterState &now)
 

Additional Inherited Members

- Protected Attributes inherited from BasicCounterState
uint64 InstRetiredAny
 
uint64 CpuClkUnhaltedThread
 
uint64 CpuClkUnhaltedRef
 
union {
   uint64   L3Miss
 
   uint64   Event0
 
   uint64   ArchLLCMiss
 
}; 
 
union {
   uint64   L3UnsharedHit
 
   uint64   Event1
 
   uint64   ArchLLCRef
 
}; 
 
union {
   uint64   L2HitM
 
   uint64   Event2
 
}; 
 
union {
   uint64   L2Hit
 
   uint64   Event3
 
}; 
 
uint64 InvariantTSC
 
uint64 CStateResidency [PCM::MAX_C_STATE+1]
 
int32 ThermalHeadroom
 
uint64 L3Occupancy
 
- Protected Attributes inherited from UncoreCounterState
uint64 UncMCFullWrites
 
uint64 UncMCNormalReads
 
uint64 UncMCIORequests
 
uint64 PackageEnergyStatus
 
uint64 DRAMEnergyStatus
 
uint64 CStateResidency [PCM::MAX_C_STATE+1]
 

Detailed Description

System-wide counter state.

Friends And Related Function Documentation

uint64 getIncomingQPILinkBytes ( uint32  socketNr,
uint32  linkNr,
const SystemCounterState before,
const SystemCounterState after 
)
friend

Get estimation of QPI data traffic per incoming QPI link.

Returns an estimation of number of data bytes transferred to a socket over Intel(r) Quick Path Interconnect

Parameters
socketNrsocket identifier
linkNrlinkNr
beforeSystem CPU counter state before the experiment
afterSystem CPU counter state after the experiment
Returns
Number of bytes
uint64 getIncomingQPILinkBytes ( uint32  socketNr,
uint32  linkNr,
const SystemCounterState now 
)
friend

Return current value of the counter of QPI data traffic per incoming QPI link.

Returns the number of incoming data bytes to a socket over Intel(r) Quick Path Interconnect

Parameters
socketNrsocket identifier
linkNrlinkNr
nowCurrent System CPU counter state
Returns
Number of bytes
uint64 getOutgoingQPILinkBytes ( uint32  socketNr,
uint32  linkNr,
const SystemCounterState before,
const SystemCounterState after 
)
friend

Get estimation of QPI (data+nondata) traffic per outgoing QPI link.

Returns an estimation of number of data bytes transferred from a socket over Intel(r) Quick Path Interconnect

Parameters
socketNrsocket identifier
linkNrlinkNr
beforeSystem CPU counter state before the experiment
afterSystem CPU counter state after the experiment
Returns
Number of bytes
double getOutgoingQPILinkUtilization ( uint32  socketNr,
uint32  linkNr,
const SystemCounterState before,
const SystemCounterState after 
)
friend

Get utilization of outgoing QPI link (0..1)

Returns an estimation of utilization of QPI link by (data+nondata) traffic transferred from a socket over Intel(r) Quick Path Interconnect

Parameters
socketNrsocket identifier
linkNrlinkNr
beforeSystem CPU counter state before the experiment
afterSystem CPU counter state after the experiment
Returns
utilization (0..1)

The documentation for this class was generated from the following file: