//cc
INT32 Usage()
{

	PIN_ERROR("This Pintool unpacks common packers\n" 
			  + KNOB_BASE::StringKnobSummary() + "\n");
	return -1;
}
Пример #2
0
// 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;
}
Пример #3
0
INT32 Usage()
{
    PIN_ERROR( "This Pintool prints a trace of memory addresses\n" 
              + KNOB_BASE::StringKnobSummary() + "\n");
    return -1;
}
Пример #4
0
INT32 Usage()
{
    PIN_ERROR( "This Pintool writes memory blocks executed from to disk\n" + KNOB_BASE::StringKnobSummary() + "\n");
    return -1;
}
Пример #5
0
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;
}
Пример #7
0
INT32 Usage()
{
    PIN_ERROR("This tool prints a log of system calls" 
                + KNOB_BASE::StringKnobSummary() + "\n");
    return -1;
}
Пример #8
0
INT32 Usage()
{
    PIN_ERROR( "This Pintool samples the IPs of instruction executed\n"
                + KNOB_BASE::StringKnobSummary() + "\n");
    return -1;
}
Пример #9
0
INT32 Usage()
{
    PIN_ERROR("This Pintool prints a trace of malloc calls in the guest application\n"
              + KNOB_BASE::StringKnobSummary() + "\n");
    return -1;
}
Пример #10
0
INT32 Usage()
{
    PIN_ERROR("This Pintool prints the hexadecimal of all the instruction executed\n" 
              + KNOB_BASE::StringKnobSummary() + "\n");
    return -1;
}
Пример #11
0
Файл: parser.c Проект: jdp/pin
YY_ACTION(void) yy_2_pin(char *yytext, int yyleng)
{
  yyprintf((stderr, "do yy_2_pin\n"));
   PIN_ERROR("Parse error"); ;
}
Пример #12
0
INT32 Usage_Profiler()
{
    PIN_ERROR("This Pintool prints the IPs of every instruction executed\n" 
              + KNOB_BASE::StringKnobSummary() + "\n");
    return -1;
}
Пример #13
0
// print help information
INT32 Usage()
{
    PIN_ERROR( "This Pintool prints a trace of calls and destinations\n" 
              + KNOB_BASE::StringKnobSummary() + "\n");
    return -1;
}
Пример #14
0
INT32 Usage() {
	PIN_ERROR( "This is the mtrace Pintool.\n" + KNOB_BASE::StringKnobSummary() + "\n");
	return -1;
}
Пример #15
0
INT32 Usage()
{
    PIN_ERROR( "This Pintool stops the debugger when code written in runtime is executed\n" 
              + KNOB_BASE::StringKnobSummary() + "\n");
    return -1;
}