Skip to content

Commit 1e62e91

Browse files
committed
Remove #eof write from MyMemTracer
1 parent d6ec8d5 commit 1e62e91

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

pin-3.2-81205-gcc-linux/source/tools/MyMemTracer/MyMemTracer.cpp

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
/*BEGIN_LEGAL
2-
Intel Open Source License
1+
/*BEGIN_LEGAL
2+
Intel Open Source License
33
44
Copyright (c) 2002-2016 Intel Corporation. All rights reserved.
5-
5+
66
Redistribution and use in source and binary forms, with or without
77
modification, are permitted provided that the following conditions are
88
met:
@@ -15,7 +15,7 @@ other materials provided with the distribution. Neither the name of
1515
the Intel Corporation nor the names of its contributors may be used to
1616
endorse or promote products derived from this software without
1717
specific prior written permission.
18-
18+
1919
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
2020
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
2121
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
@@ -70,7 +70,7 @@ VOID Instruction(INS ins, VOID *v)
7070
// Instruments memory accesses using a predicated call, i.e.
7171
// the instrumentation is called iff the instruction will actually be executed.
7272
//
73-
// On the IA-32 and Intel(R) 64 architectures conditional moves and REP
73+
// On the IA-32 and Intel(R) 64 architectures conditional moves and REP
7474
// prefixed instructions appear as predicated instructions in Pin.
7575
UINT32 memOperands = INS_MemoryOperandCount(ins);
7676

@@ -85,7 +85,7 @@ VOID Instruction(INS ins, VOID *v)
8585
IARG_MEMORYOP_EA, memOp, IARG_THREAD_ID,
8686
IARG_END);
8787
}
88-
// Note that in some architectures a single memory operand can be
88+
// Note that in some architectures a single memory operand can be
8989
// both read and written (for instance incl (%eax) on IA-32)
9090
// In that case we instrument it once for read and once for write.
9191
if (INS_MemoryOperandIsWritten(ins, memOp))
@@ -101,17 +101,17 @@ VOID Instruction(INS ins, VOID *v)
101101

102102
VOID Fini(INT32 code, VOID *v)
103103
{
104-
fprintf(trace, "#eof\n");
104+
//fprintf(trace, "#eof\n");
105105
fclose(trace);
106106
}
107107

108108
/* ===================================================================== */
109109
/* Print Help Message */
110110
/* ===================================================================== */
111-
111+
112112
INT32 Usage()
113113
{
114-
PIN_ERROR( "This Pintool prints a trace of memory addresses\n"
114+
PIN_ERROR( "This Pintool prints a trace of memory addresses\n"
115115
+ KNOB_BASE::StringKnobSummary() + "\n");
116116
return -1;
117117
}
@@ -134,6 +134,6 @@ int main(int argc, char *argv[])
134134

135135
// Never returns
136136
PIN_StartProgram();
137-
137+
138138
return 0;
139139
}

0 commit comments

Comments
 (0)