//cc INT32 Usage() { PIN_ERROR("This Pintool unpacks common packers\n" + KNOB_BASE::StringKnobSummary() + "\n"); return -1; }
// argc, argv are the entire command line, including pin -t <toolname> -- ... int main(int argc, char * argv[]) { // Initialize pin if (PIN_Init(argc, argv)) { PIN_ERROR("Count executed instructions.\n" + KNOB_BASE::StringKnobSummary() + "\n"); } // Activate instruction counter if (KnobReps) icount.Activate(INSTLIB::ICOUNT::ModeBoth); else icount.Activate(INSTLIB::ICOUNT::ModeNormal); // Register Fini to be called when the application exits PIN_AddFiniFunction(Fini, 0); // Start the program, never returns PIN_StartProgram(); return 0; }
INT32 Usage() { PIN_ERROR( "This Pintool prints a trace of memory addresses\n" + KNOB_BASE::StringKnobSummary() + "\n"); return -1; }
INT32 Usage() { PIN_ERROR( "This Pintool writes memory blocks executed from to disk\n" + KNOB_BASE::StringKnobSummary() + "\n"); return -1; }
static INT32 usage() { PIN_ERROR("This Pintool simulates a cache hierarchy\n" + KNOB_BASE::StringKnobSummary() + "\n"); return -1; }
static INT32 Usage() { PIN_ERROR("This tool prints a log of image load and unload events, logs them and can replay them\n" + KNOB_BASE::StringKnobSummary() + "\n"); return -1; }
INT32 Usage() { PIN_ERROR("This tool prints a log of system calls" + KNOB_BASE::StringKnobSummary() + "\n"); return -1; }
INT32 Usage() { PIN_ERROR( "This Pintool samples the IPs of instruction executed\n" + KNOB_BASE::StringKnobSummary() + "\n"); return -1; }
INT32 Usage() { PIN_ERROR("This Pintool prints a trace of malloc calls in the guest application\n" + KNOB_BASE::StringKnobSummary() + "\n"); return -1; }
INT32 Usage() { PIN_ERROR("This Pintool prints the hexadecimal of all the instruction executed\n" + KNOB_BASE::StringKnobSummary() + "\n"); return -1; }
YY_ACTION(void) yy_2_pin(char *yytext, int yyleng) { yyprintf((stderr, "do yy_2_pin\n")); PIN_ERROR("Parse error"); ; }
INT32 Usage_Profiler() { PIN_ERROR("This Pintool prints the IPs of every instruction executed\n" + KNOB_BASE::StringKnobSummary() + "\n"); return -1; }
// print help information INT32 Usage() { PIN_ERROR( "This Pintool prints a trace of calls and destinations\n" + KNOB_BASE::StringKnobSummary() + "\n"); return -1; }
INT32 Usage() { PIN_ERROR( "This is the mtrace Pintool.\n" + KNOB_BASE::StringKnobSummary() + "\n"); return -1; }
INT32 Usage() { PIN_ERROR( "This Pintool stops the debugger when code written in runtime is executed\n" + KNOB_BASE::StringKnobSummary() + "\n"); return -1; }