title: Log all instruction with intel pintool
body: <p>I have written this pintool:</p>
  
  <pre><code>#include "pin.H"
  #include &lt;iostream&gt;
  #include &lt;fstream&gt;
  
  VOID Instruction(INS ins, VOID *v)
  {
          cout &lt;&lt; INS_Disassemble(ins) &lt;&lt; endl;
  }
  
  VOID Fini(INT32 code, VOID *v)
  {
          cout &lt;&lt; "Fin" &lt;&lt; endl;
  }
  
  int main(int argc, char *argv[])
  {
      if( PIN_Init(argc,argv) )
      {
              cout &lt;&lt; "Erreur PIN_Init" &lt;&lt; endl;
              return 0;
      }
  
      INS_AddInstrumentFunction(Instruction, 0);
      PIN_AddFiniFunction(Fini, 0);
      PIN_StartProgram();
  
      return 0;
  }
  </code></pre>
  
  <p>I am printing all instructions.
  What i want to do now is to display instructions address (EIP)</p>
  
  <p>How can i do this ?</p>
  
  <p>Thanks</p>