Software Tuning, Performance Optimization & Platform Monitoring
Discussion around monitoring and software tuning methodologies, Performance Monitoring Unit (PMU) of Intel microprocessors, and platform monitoring
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.

Using PIN in the program

Mahmoodn
Beginner
194 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