Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Zhang__Yi
Beginner
49 Views

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

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
49 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