Classes | |
| class | PTracer |
Execution Count annotation based on ptrace(). More... | |
Functions | |
| void | annotate (SgNode *proj, const std::string &instfile) |
| this version reads a file of the format "addrInHex \t execCount\n" for example generated by pin | |
| void | annotate (SgNode *proj, std::vector< std::string > args=std::vector< std::string >()) |
| this version runs the executable and inserts breakpoint at every instruction (ptrace) | |
| void InstructionCountAnnotator::annotate | ( | SgNode * | proj, | |
| const std::string & | instfile | |||
| ) |
this version reads a file of the format "addrInHex \t execCount\n" for example generated by pin
Annotates each SgAsmInstruction with a number indicating how often this instruction was executed
the needed pin tool which generates this file can be found in util/pin/my_itrace.cpp
| proj | the (binary) SgProject to annotate | |
| instfile | path of file with pairs of address - execCount format "addressInHex \t count \n" can for example be generated by intel-pin |
Definition at line 17 of file InstructionCountAnnotator.cpp.
Referenced by annotateFiles().
Here is the caller graph for this function:

| void InstructionCountAnnotator::annotate | ( | SgNode * | proj, | |
| std::vector< std::string > | args | |||
| ) |
this version runs the executable and inserts breakpoint at every instruction (ptrace)
Annotates each SgAsmInstruction with a number indicating how often this instruction was executed
| proj | the (binary) SgProject to annotate | |
| args | array with parameters for the process to trace (only parameter i.e. args[0] is NOT the exec name |
Definition at line 68 of file InstructionCountAnnotator.cpp.
Here is the call graph for this function:

1.4.7