title: Measuring time in omp_fn routines
body: <p>I am writing a pintool gathering metrics in a subset of applications routines(some among them, are generated by the compiler). 
  The goal is to get the execution time of those routines.</p>
  
  <p>Below is a set of attempts I already gave:</p>
  
  <ul>
  <li>Of course doing it with pin is a bad idea because of the Virtual Machine overhead.</li>
  <li>gcc option -finstrument-functions does not scope the OpenMP functions it generates.</li>
  <li>LD_PRELOAD does not work with OpenMP functions which are statically linked.</li>
  <li>Maybe if pin allowed to dump statically instrumented assembly, we could avoid the virtual environment overhead, but as far as I know it isn't possible.</li>
  <li>I know about Maqao instrumentation tool which do not use virtual environment, but I want to avoid using too many frameworks or translating my pintool into maqao lua script.</li>
  </ul>
  
  <p>I guess I am left with manual binary instrumentation, but if anybody has a better solution, the help will be appreciated.</p>