How can I programmed an event counter with different configuration in vtune?

How can I programmed an event counter with different configuration in vtune?

Sometimes, we need to program the msr to get the statistics we want. For example, to get cycles in transactions, we need to configure IA32_PERFEVTSEL2 with the IN_TX and IN_TXCP filters and use Unhalted_Core_Cycles will get the cycles in transactions. But vtune exposes this kind of interface? Or we need program the msr manually before the profiling?

12 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

>>...But vtune exposes this kind of interface?..

It would be great if VTune will have such functionality or interfaces some day. In case of Windows platforms OLE Automation is a very powerful tool but an application needs to support it. I don't think that it could be easily done for VTune.

Only if VTune exposes to programmer some kind of API you can do what you asked.

VTune is implemented as a Monolithic application and I don't know if any APIs will be provided. Please consider PCM as a workaround.

There is Task API available to VTune users,but it does not expose low level access.

Would you give me the link to the chapter in the documentation for these kind of API?

VTune Amplifier XE does not provide this type of access.  The point is to abstract that level of detail away from the user.

As was mentioned earlier, Performance Counter Monitor (PCM), now shipped with the VTune Amplifier XE, may meet your needs.

Regards,
MrAnderson

@zhaoguo

Intel PCM 2.5 (www.intel.com/software/pcm) supports API to program IN_TX and IN_TXCP filters and use Unhalted_Core_Cycles to get the cycles in Intel TSX transactions (and also aborted cycles). There is also pcm-tsx utility that allows to monitor these and other TSX metrics without requiring you to write your own tool. Here is a blog on how to use it.

Roman

>>>As was mentioned earlier, Performance Counter Monitor (PCM), now shipped with the VTune Amplifier XE, may meet your needs.>>>

Did not know that PCM is now used with VTune Amplifier XE.

@ iliyapolak 

PCM is NOT used with VTune Amlifier XE. It means that PCM collects data and displays report by PCM itself. 

Quote:

Peter Wang (Intel) wrote:

@ iliyapolak 

PCM is NOT used with VTune Amlifier XE. It means that PCM collects data and displays report by PCM itself. 

Thanks Peter for explaining this.

Leave a Comment

Please sign in to add a comment. Not a member? Join today