TianoCore EDK2 master
Loading...
Searching...
No Matches
MSR_HASWELL_IA32_PERFEVTSEL2_REGISTER Union Reference

#include <MdePkg/Include/Register/Intel/Msr/HaswellMsr.h>

Data Fields

struct {
   UINT32   EventSelect: 8
 
   UINT32   UMASK: 8
 
   UINT32   USR: 1
 
   UINT32   OS: 1
 
   UINT32   E: 1
 
   UINT32   PC: 1
 
   UINT32   INT: 1
 
   UINT32   ANY: 1
 
   UINT32   EN: 1
 
   UINT32   INV: 1
 
   UINT32   CMASK: 8
 
   UINT32   Reserved: 32
 
   UINT32   IN_TX: 1
 
   UINT32   IN_TXCP: 1
 
   UINT32   Reserved2: 30
 
} Bits
 
UINT64 Uint64
 

Detailed Description

MSR information returned for MSR index MSR_HASWELL_IA32_PERFEVTSEL2

Definition at line 250 of file HaswellMsr.h.

Field Documentation

◆ ANY

UINT32 MSR_HASWELL_IA32_PERFEVTSEL2_REGISTER::ANY

[Bit 21] AnyThread: When set to 1, it enables counting the associated event conditions occurring across all logical processors sharing a processor core. When set to 0, the counter only increments the associated event conditions occurring in the logical processor which programmed the MSR.

Definition at line 291 of file HaswellMsr.h.

◆ 

struct { ... } MSR_HASWELL_IA32_PERFEVTSEL2_REGISTER::Bits

Individual bit fields

◆ CMASK

UINT32 MSR_HASWELL_IA32_PERFEVTSEL2_REGISTER::CMASK

[Bits 31:24] CMASK: When CMASK is not zero, the corresponding performance counter increments each cycle if the event count is greater than or equal to the CMASK.

Definition at line 306 of file HaswellMsr.h.

◆ E

UINT32 MSR_HASWELL_IA32_PERFEVTSEL2_REGISTER::E

[Bit 18] Edge: Enables edge detection if set.

Definition at line 275 of file HaswellMsr.h.

◆ EN

UINT32 MSR_HASWELL_IA32_PERFEVTSEL2_REGISTER::EN

[Bit 22] EN: enables the corresponding performance counter to commence counting when this bit is set.

Definition at line 296 of file HaswellMsr.h.

◆ EventSelect

UINT32 MSR_HASWELL_IA32_PERFEVTSEL2_REGISTER::EventSelect

[Bits 7:0] Event Select: Selects a performance event logic unit.

Definition at line 258 of file HaswellMsr.h.

◆ IN_TX

UINT32 MSR_HASWELL_IA32_PERFEVTSEL2_REGISTER::IN_TX

[Bit 32] IN_TX: see Section 18.3.6.5.1 When IN_TX (bit 32) is set, AnyThread (bit 21) should be cleared to prevent incorrect results.

Definition at line 312 of file HaswellMsr.h.

◆ IN_TXCP

UINT32 MSR_HASWELL_IA32_PERFEVTSEL2_REGISTER::IN_TXCP

[Bit 33] IN_TXCP: see Section 18.3.6.5.1 When IN_TXCP=1 & IN_TX=1 and in sampling, spurious PMI may occur and transactions may continuously abort near overflow conditions. Software should favor using IN_TXCP for counting over sampling. If sampling, software should use large "sample-after" value after clearing the counter configured to use IN_TXCP and also always reset the counter even when no overflow condition was reported.

Definition at line 322 of file HaswellMsr.h.

◆ INT

UINT32 MSR_HASWELL_IA32_PERFEVTSEL2_REGISTER::INT

[Bit 20] INT: enables interrupt on counter overflow.

Definition at line 283 of file HaswellMsr.h.

◆ INV

UINT32 MSR_HASWELL_IA32_PERFEVTSEL2_REGISTER::INV

[Bit 23] INV: invert the CMASK.

Definition at line 300 of file HaswellMsr.h.

◆ OS

UINT32 MSR_HASWELL_IA32_PERFEVTSEL2_REGISTER::OS

[Bit 17] OS: Counts while in privilege level is ring 0.

Definition at line 271 of file HaswellMsr.h.

◆ PC

UINT32 MSR_HASWELL_IA32_PERFEVTSEL2_REGISTER::PC

[Bit 19] PC: enables pin control.

Definition at line 279 of file HaswellMsr.h.

◆ Reserved

UINT32 MSR_HASWELL_IA32_PERFEVTSEL2_REGISTER::Reserved

Definition at line 307 of file HaswellMsr.h.

◆ Reserved2

UINT32 MSR_HASWELL_IA32_PERFEVTSEL2_REGISTER::Reserved2

Definition at line 323 of file HaswellMsr.h.

◆ Uint64

UINT64 MSR_HASWELL_IA32_PERFEVTSEL2_REGISTER::Uint64

All bit fields as a 64-bit value

Definition at line 328 of file HaswellMsr.h.

◆ UMASK

UINT32 MSR_HASWELL_IA32_PERFEVTSEL2_REGISTER::UMASK

[Bits 15:8] UMask: Qualifies the microarchitectural condition to detect on the selected event logic.

Definition at line 263 of file HaswellMsr.h.

◆ USR

UINT32 MSR_HASWELL_IA32_PERFEVTSEL2_REGISTER::USR

[Bit 16] USR: Counts while in privilege level is not ring 0.

Definition at line 267 of file HaswellMsr.h.


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