HARDWARE_COUNTER
IRP
MDL
TOC
Collapse the table of content
Expand the table of content

HARDWARE_COUNTER structure

The HARDWARE_COUNTER structure contains information about a hardware counter.

Syntax


typedef struct _HARDWARE_COUNTER {
  HARDWARE_COUNTER_TYPE Type;
  ULONG                 Reserved;
  ULONG64               Index;
} HARDWARE_COUNTER, *PHARDWARE_COUNTER;

Members

Type

Specifies the type of the hardware counter. Set this member to the following HARDWARE_COUNTER_TYPE enumeration value:

  • PMCCounter

Reserved

Reserved for use by the operating system. Initialize this member to zero.

Index

Specifies the hardware counter index. Each hardware counter in a performance monitoring unit (PMU) for a processor is identified by an index.

Remarks

This structure is used by the KeQueryHardwareCounterConfiguration and KeSetHardwareCounterConfiguration routines.

The Type member specifies the type of hardware counter that is described by the structure. In Windows 7, the only defined hardware counter type is PMCCounter, which is a performance monitor counter. This type of counter is used by thread-profiling applications.

Requirements

Version

Supported in Windows 7 and later versions of Windows.

Header

Ntddk.h (include Ntddk.h)

See also

HARDWARE_COUNTER_TYPE
KeQueryHardwareCounterConfiguration
KeSetHardwareCounterConfiguration

 

 

Send comments about this topic to Microsoft

Show:
© 2016 Microsoft