This page contains the source code for the LOPI instrumentation tool. You can download the source code here:
lopi.tar.gz (51KB)
You'll need the libmelf library which is used for handling of ELF files. There are some modifications to that library made for LOPI, so a local version is provided here:
libmelf.tar.gz (114KB)
Simon Kågström, Håkan Grahn and Lars Lundberg. Automatic Low Overhead Program Instrumentation with the LOPI framework. Proceedings of the 9th Workshop on Interaction between Compilers and Computer Architectures, San Francisco, CA, USA, February 13 2005.