Skip to content

Commit

Permalink
pt/addrtrace: Activate CallStackManager
Browse files Browse the repository at this point in the history
  • Loading branch information
aewag committed Mar 3, 2023
1 parent 075f452 commit fab523d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pintool/addrtrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

/***********************************************************************/

#include "call-stack.H"
#include "pin-macros.H"
#include "pin.H"
#include "utils.H"
Expand Down Expand Up @@ -2043,6 +2044,9 @@ int main(int argc, char *argv[]) {
PT_DEBUG(1, "vvar.baseaddr is " << hex << imgdata.baseaddr);
PT_DEBUG(1, "vvar.endaddr is " << hex << imgdata.endaddr);

auto mngr = CALLSTACK::CallStackManager::get_instance();
mngr->activate();

PIN_AddThreadStartFunction(ThreadStart, 0);
PIN_AddThreadFiniFunction(ThreadFini, 0);
PIN_AddFiniFunction(Fini, 0);
Expand Down

0 comments on commit fab523d

Please sign in to comment.