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!
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.