C# Class IntelShared.Common.Papi

Mostra file Open project: 01org/NMPRK Class Usage Examples

Public Properties

Property Type Description
PAPI_SUCCESS uint

Public Methods

Method Description
GetCPUID ( CPUID_STRUCT &regs ) : bool
GetCPUName ( ) : string
GetCPUVendor ( ) : string
GetCpuSignature ( uint &stepping, uint &model, uint &family, uint &type ) : bool
GetCpuSignature ( ) : uint
GetPapiVersion ( string &dllVersion, string &drvVersion ) : uint
IsAtLeastRequiredVersion ( string required, string actual ) : bool
IsCPUNehalemOrGreater ( ) : bool
IsHTSupported ( ) : bool
IsTurboSupported ( uint turboControlMsr, uint turboControlBit ) : bool
IsValidPapiVersion ( string requiredDllVersion, string requiredDrvVersion, string &dllVersion, string &drvVersion ) : bool
MaxCoresPerPackage ( ) : uint
MaxLogicalProcessorsPerPackage ( ) : uint
ReadMPerfAPerf ( uint mPerfMsr, uint aPerfMsr, ulong &mPerf, ulong &aPerf ) : uint
ReadMSR ( UInt32 ulECX, UInt32 &pulEAX, UInt32 &pulEDX ) : bool
ReadMSR ( uint msr, ulong &value ) : bool
ReadPCIConfigSpaceDWord ( uint aBus, uint aDevice, uint aFunction, uint aRegister ) : uint
UninstallPAPIv2Driver ( ) : void
WriteMSR ( UInt32 ulECX, UInt32 &pulEAX, UInt32 &pulEDX ) : bool

Private Methods

Method Description
ConvertDWORDToString ( UInt32 aDW ) : string
GetBDF ( uint aSegment, uint aBus, uint aDevice, uint aFunction ) : ulong
cCPUPackageInformation ( UInt32 PackageIndex, PLATFORM_CPU_PACKAGE_INFO &PackageInfo ) : UInt32
cCPUPlatformCPUData ( UInt32 &arrayLength, [ PackageInfo ) : UInt32
cGetPapiVersion ( [ dllVersion, [ nDllVersion, [ drvVersion, [ nDrvVersion ) : UInt32
cPAPI_CPU_CStateTestStart ( [ threads, [ threadsCount, [ seqItems, [ seqItemsCount, [ continuous, [ finishedEventName, [ seqIncrementEventName, [ handle ) : UInt32
cPAPI_CPU_CStateTestStop ( [ handle ) : UInt32
cPAPI_CPU_Read_MSRs ( [ msrArray, [ msrArraySize, [ msrOutArray, [ msrOutArraySize ) : UInt32
cPAPIv2DriverInstalled ( ) : UInt32
cPhysicalCPUs ( UInt32 &uiNumberOfPhysicalCPUs ) : UInt32
cReadConfigSpace ( [ device, [ register, [ bufferlength, [ SizeConst = 4)]byte[]buffer, [ flags ) : UInt32
cReadMPerfAPerf ( [ mPerfMsr, [ aPerfMsr, [ mPerf, [ aPerf ) : UInt32
cReadMSR ( MSR_STRUCT &Data ) : UInt32
cWriteMSR ( MSR_STRUCT &Data ) : UInt32
cpuid ( CPUID_STRUCT &regs ) : UInt32

Method Details

GetCPUID() public static method

public static GetCPUID ( CPUID_STRUCT &regs ) : bool
regs CPUID_STRUCT
return bool

GetCPUName() public static method

public static GetCPUName ( ) : string
return string

GetCPUVendor() public static method

public static GetCPUVendor ( ) : string
return string

GetCpuSignature() public static method

public static GetCpuSignature ( uint &stepping, uint &model, uint &family, uint &type ) : bool
stepping uint
model uint
family uint
type uint
return bool

GetCpuSignature() public static method

public static GetCpuSignature ( ) : uint
return uint

GetPapiVersion() public static method

public static GetPapiVersion ( string &dllVersion, string &drvVersion ) : uint
dllVersion string
drvVersion string
return uint

IsAtLeastRequiredVersion() public static method

public static IsAtLeastRequiredVersion ( string required, string actual ) : bool
required string
actual string
return bool

IsCPUNehalemOrGreater() public static method

public static IsCPUNehalemOrGreater ( ) : bool
return bool

IsHTSupported() public static method

public static IsHTSupported ( ) : bool
return bool

IsTurboSupported() public static method

public static IsTurboSupported ( uint turboControlMsr, uint turboControlBit ) : bool
turboControlMsr uint
turboControlBit uint
return bool

IsValidPapiVersion() public static method

public static IsValidPapiVersion ( string requiredDllVersion, string requiredDrvVersion, string &dllVersion, string &drvVersion ) : bool
requiredDllVersion string
requiredDrvVersion string
dllVersion string
drvVersion string
return bool

MaxCoresPerPackage() public static method

public static MaxCoresPerPackage ( ) : uint
return uint

MaxLogicalProcessorsPerPackage() public static method

public static MaxLogicalProcessorsPerPackage ( ) : uint
return uint

ReadMPerfAPerf() public static method

public static ReadMPerfAPerf ( uint mPerfMsr, uint aPerfMsr, ulong &mPerf, ulong &aPerf ) : uint
mPerfMsr uint
aPerfMsr uint
mPerf ulong
aPerf ulong
return uint

ReadMSR() public static method

public static ReadMSR ( UInt32 ulECX, UInt32 &pulEAX, UInt32 &pulEDX ) : bool
ulECX UInt32
pulEAX UInt32
pulEDX UInt32
return bool

ReadMSR() public static method

public static ReadMSR ( uint msr, ulong &value ) : bool
msr uint
value ulong
return bool

ReadPCIConfigSpaceDWord() public static method

public static ReadPCIConfigSpaceDWord ( uint aBus, uint aDevice, uint aFunction, uint aRegister ) : uint
aBus uint
aDevice uint
aFunction uint
aRegister uint
return uint

UninstallPAPIv2Driver() public static method

public static UninstallPAPIv2Driver ( ) : void
return void

WriteMSR() public static method

public static WriteMSR ( UInt32 ulECX, UInt32 &pulEAX, UInt32 &pulEDX ) : bool
ulECX UInt32
pulEAX UInt32
pulEDX UInt32
return bool

Property Details

PAPI_SUCCESS public_oe static_oe property

public static uint PAPI_SUCCESS
return uint