Skip to content

Latest commit

 

History

History
53 lines (42 loc) · 1.27 KB

readpmc.md

File metadata and controls

53 lines (42 loc) · 1.27 KB
title ms.custom ms.date ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic f1_keywords dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
__readpmc | Microsoft Docs
11/04/2016
cpp-tools
article
__readpmc
C++
Read Performance Monitoring Counters instruction
__readpmc intrinsic
rdpmc instruction
14ed45a6-28b6-4635-8437-a597c04b43d4
11
corob-msft
corob
ghogen

__readpmc

Microsoft Specific

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

Syntax

unsigned __int64 __readpmc(   
   unsigned long counter   
);  

Parameters

[in] counter
The performance counter to read.

Return Value

The value of the specified performance counter.

Requirements

Intrinsic Architecture
__readpmc x86, [!INCLUDEvcprx64]

Header file <intrin.h>

Remarks

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

END Microsoft Specific

See Also

Compiler Intrinsics