Add basic support for dynamic instrumentation

Support for instrument shared libraries is not implemented yet.