20 PIN_ERROR(
"DeadSPy is a PinTool which tracks each memory access and reports dead writes.\n" + KNOB_BASE::StringKnobSummary() +
"\n");
33 char* envPath = getenv(
"CCTLIB_CLIENT_OUTPUT_FILE");
37 snprintf(name,
sizeof(name),
"%s", envPath);
40 gethostname(name + strlen(name),
MAX_FILE_PATH - strlen(name));
42 sprintf(name + strlen(name),
"%d", pid);
43 cerr <<
"\n Creating log file at:" << name <<
"\n";
48 for (
int i = 0; i < argc; i++) {
55 int main(
int argc,
char* argv[]) {
57 if (PIN_Init(argc, argv))
67 vector<Context> contextVec;
int main(int argc, char *argv[])
void ClientInit(int argc, char *argv[])
VOID PrintFullCallingContext(const ContextHandle_t ctxtHandle)
int PinCCTLibInitForPostmortemAnalysis(FILE *logFile, const std::string &serializedFilesDirectory)
VOID GetFullCallingContext(const ContextHandle_t curCtxtHndle, std::vector< Context > &contextVec)