The example below can be found in InstLibExamples/follow_child.cpp
#include <fstream>
#include "pin.H"
#include "instlib.H"
using namespace INSTLIB;
INT32 Usage()
{
cerr <<
"This pin tool demonstrates use of FOLLOW_CHILD to inject pin in programs that call exec\n"
"\n";
cerr << KNOB_BASE::StringKnobSummary() << endl;
return -1;
}
int main(int argc, char * argv[])
{
{
return Usage();
}
follow.Activate();
follow.SetPrefix(argv);
return 0;
}