Skip to content

Commit

Permalink
Filtering tracer
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacarte committed Aug 25, 2023
1 parent 2c25aa0 commit a084004
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion host_based/tracer/pintool/tracer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,13 @@ VOID printInst(ADDRINT ip, string *disass, INT32 size)
if (InfoType >= I) bigcounter++;
InfoType=I;
PIN_SafeCopy(v, (void *)ip, size);
TraceFile << "[I]" << setw(10) << dec << bigcounter << hex << setw(16) << getrelative(ip) << " " << setw(40) << left << *disass << right;
TraceFile << "[I]" << setw(10) << dec << bigcounter;

if(KnobLogMemIp.Value()){
TraceFile << hex << setw(16) << getrelative(ip);
}

TraceFile << " " << setw(40) << left << *disass << right;
TraceFile << setfill('0');
for (INT32 i = 0; i < size; i++)
{
Expand Down

0 comments on commit a084004

Please sign in to comment.