Analyzers
Support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

rdpmc library

marcj
Beginner
123 Views

i'm trying to count the number of instructions retired between two points in a windows7 device driver.

is there sample code or a library function to achieve this, or do i have to __asm rdpmc ?

0 Kudos
2 Replies
TimP
Black Belt
123 Views
You could insert VTune API calls to turn on and off counting at the points of interest.
David_A_Intel1
Employee
123 Views
However, be reminded that the VTune analyzer does statistical profiling and will not give you an EXACT count of instructions retired between two points.
Reply