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?
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.
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.
Peter Wang (Intel) wrote:
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.