I want to use Intel PIN tools inside a program at some specific points. Consider a program has the following sections:
If I use the basic command like
pin -t instcount0.so -- ./program
I see the total instructions. However, I want to start counting the instructions for do() function only. So I want to inject some helper PIN functions like
How can I do that? I didn't see simple explanation about that.