How to add custom instrumentation?

Sorry, a typo:

  The two parameters are the address of the function into which
  the instrumentation is inserted, and the address of the call
  site to the instrumented function.