Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 984 Bytes

readpmc.md

File metadata and controls

48 lines (32 loc) · 984 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: __readpmc
__readpmc
09/02/2019
__readpmc
Read Performance Monitoring Counters instruction
__readpmc intrinsic
rdpmc instruction
14ed45a6-28b6-4635-8437-a597c04b43d4

__readpmc

Microsoft Specific

Generates the rdpmc instruction, which reads the performance monitoring counter specified by counter.

Syntax

unsigned __int64 __readpmc(
   unsigned long counter
);

Parameters

counter
[in] The performance counter to read.

Return value

The value of the specified performance counter.

Requirements

Intrinsic Architecture
__readpmc x86, x64

Header file <intrin.h>

Remarks

The intrinsic is available in kernel mode only, and the routine is only available as an intrinsic.

END Microsoft Specific

See also

Compiler intrinsics