Pin
Classes | Functions
FOLLOW_CHILD

Classes

class  INSTLIB::FOLLOW_CHILD
 

Functions

 INSTLIB::FOLLOW_CHILD::FOLLOW_CHILD ()
 
VOID INSTLIB::FOLLOW_CHILD::SetPrefix (CHAR *prefix[])
 
VOID INSTLIB::FOLLOW_CHILD::Activate ()
 

Detailed Description

Instrumentation for injecting pin in child processes. Pin will always be in the child and parent after a fork. By default, pin will not be in a process after an exec system call. This tool intercepts the exec system call and inserts a Pin command line prefix so pin will also be present after exec.

Function Documentation

◆ Activate()

VOID INSTLIB::FOLLOW_CHILD::Activate ( )
inline

Activate, must be called before PIN_StartProgram

◆ FOLLOW_CHILD()

INSTLIB::FOLLOW_CHILD::FOLLOW_CHILD ( )
inline

Constructor

◆ SetPrefix()

VOID INSTLIB::FOLLOW_CHILD::SetPrefix ( CHAR *  prefix[])
inline

Set the prefix to be used for the next child. The prefix is the full pathname to the pin binary followed by everything up to and including the –. It is stored as array of pointers to tokens. Most users can simply use the argv array that is passed to the main of the tool.