Software Tuning, Performance Optimization & Platform Monitoring
Discussion around monitoring and software tuning methodologies, Performance Monitoring Unit (PMU) of Intel microprocessors, and platform monitoring
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
1623 Discussions

How to monitor a program has performed a certain number of instructions

Zhang__Yi
Beginner
120 Views

Hi, all

I am doing a research work, in which it needs to catch the event that a program or a core has performed a certain number of instructions.  I am using Ubuntu and perf tools. 

Any help will be appreciated!

Thanks in advance!

0 Kudos
1 Reply
Travis_D_
New Contributor II
120 Views

You can take a look at perf report: it is capable of setting a certain period (measured in events) after which it takes a sample - which is close to or exactly what you want. It is open source, so you can always modify it to your specific need.

Reply