Software Tuning, Performance Optimization & Platform Monitoring
Discussion regarding monitoring and software tuning methodologies, Performance Monitoring Unit (PMU) of Intel microprocessors, and platform updating.

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

Zhang__Yi
Beginner
236 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
236 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.

0 Kudos
Reply