MCPcopy Create free account
hub / github.com/NationalSecurityAgency/TraceAnalysis / WriteMapToJsonFile

Function WriteMapToJsonFile

tracer-pin/pintool.cpp:535–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533}
534
535VOID
536WriteMapToJsonFile(IMG img, VOID* _v)
537{
538 ADDRINT high = IMG_HighAddress(img);
539 ADDRINT low = IMG_LowAddress(img);
540 const std::string& name = IMG_Name(img);
541 fprintf(MapFile,
542 "{\"name\":\"%s\",\"low\":\"%p\",\"high\":\"%p\"}\n",
543 name.c_str(),
544 (VOID*)low,
545 (VOID*)high);
546}

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected