Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'd like to use Intel's pin tool on Ubuntu 12.04 and having trouble installing it. I downloaded pin for Linux 64bit from here http://www.pintool.org/, extracted the package and compiled the examples in source/tools/.. How do I run pin now? Tried:


etc, none seemed to work :( Do I need to install any extra libraries or...? Thanks!

share|improve this question
I am trying to use PIN tool on Ubuntu. Actually I am trying to use it with other tool Macsim. Macsim manual says to install PIN. I downloaded the package and uncompressed. Now what is the next step to INSTALL it? –  shingaridavesh Sep 11 '14 at 17:56

2 Answers 2

Intel's PIN is a binary instrumentation framework, and can be used to instrument binary programs on the fly. To specify what instructions exactly must be instrumented, and with which, you specify a pintool to pin. There's not really any further 'installation'.

Here an example from the README file on how to use pin:

pin -t obj-intel64/opcodemix.so -- /bin/ls

This will instrument and run /bin/ls, the output for this tool is in opcodemix.out.

share|improve this answer

Basically pin tools are designed as "Just In Time (JIT)" compilers, so the two components behind the architecture are Instrumentation and Analysis Code. As you may know, PIN tools has the ability to instrument the architecture independently. Therefore, as instrumentation occurs immediately before the code sequence execute the first time, you have to treat the program directly with the target benchmark.

Here are some tips:

First of all go to the parent directory of the Pin tool, the general usage of pin is defined as :

pin [OPTION] [-t <tool> [<toolargs>]] -- <command line>

Secondly, export the path of pin to the env to be able to use it everywhere else (in my case is):

export PATH=$PATH:/home/amir/pin-2.12-58423-gcc.4.4.7-linux/

Now you can use it everywhere to pin the instrument (compilation counts, branch takens, etc).

i.e. : There are some sample sources in order to start working around in

$ cd source/tools/ManualExamples

like inscount, linux_buffer, etc. use the make command to g++ compile the source codes:

make inscount0.test

and then :

$ pin -t inscount0.so -- /bin/ls

to get the output of the /bin/ls.

Hope that helps you.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.