A method for inserting code during execution of a process in a computing
environment, including enabling taken branch traps on the process,
intercepting a branch encountered during execution of the process, and
redirecting processing of the branch instruction to a routine. The
intercepting of the branch and the redirecting of processing may be
performed by a trap handler.