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

Using PIN in the program

Mahmoodn
Beginner
391 Views

Hello,

I want to use Intel PIN tools inside a program at some specific points. Consider a program has the following sections:

 

read_input();

do();

show_results();

 

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

 

read_input();

start_pin

do();

stop_pin

show_results();

 

How can I do that? I didn't see simple explanation about that.

0 Kudos
0 Replies
Reply