Skip to content

Latest commit

 

History

History
74 lines (63 loc) · 1.49 KB

File metadata and controls

74 lines (63 loc) · 1.49 KB
title __readpmc | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-tools
ms.tgt_pltfrm
ms.topic article
f1_keywords
__readpmc
dev_langs
C++
helpviewer_keywords
Read Performance Monitoring Counters instruction
__readpmc intrinsic
rdpmc instruction
ms.assetid 14ed45a6-28b6-4635-8437-a597c04b43d4
caps.latest.revision 11
author corob-msft
ms.author corob
manager ghogen
translation.priority.ht
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
ru-ru
zh-cn
zh-tw
translation.priority.mt
cs-cz
pl-pl
pt-br
tr-tr

__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