1
- /* BEGIN_LEGAL
2
- Intel Open Source License
1
+ /* BEGIN_LEGAL
2
+ Intel Open Source License
3
3
4
4
Copyright (c) 2002-2016 Intel Corporation. All rights reserved.
5
-
5
+
6
6
Redistribution and use in source and binary forms, with or without
7
7
modification, are permitted provided that the following conditions are
8
8
met:
@@ -15,7 +15,7 @@ other materials provided with the distribution. Neither the name of
15
15
the Intel Corporation nor the names of its contributors may be used to
16
16
endorse or promote products derived from this software without
17
17
specific prior written permission.
18
-
18
+
19
19
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20
20
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21
21
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
@@ -70,7 +70,7 @@ VOID Instruction(INS ins, VOID *v)
70
70
// Instruments memory accesses using a predicated call, i.e.
71
71
// the instrumentation is called iff the instruction will actually be executed.
72
72
//
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
74
74
// prefixed instructions appear as predicated instructions in Pin.
75
75
UINT32 memOperands = INS_MemoryOperandCount (ins);
76
76
@@ -85,7 +85,7 @@ VOID Instruction(INS ins, VOID *v)
85
85
IARG_MEMORYOP_EA, memOp, IARG_THREAD_ID,
86
86
IARG_END);
87
87
}
88
- // Note that in some architectures a single memory operand can be
88
+ // Note that in some architectures a single memory operand can be
89
89
// both read and written (for instance incl (%eax) on IA-32)
90
90
// In that case we instrument it once for read and once for write.
91
91
if (INS_MemoryOperandIsWritten (ins, memOp))
@@ -101,17 +101,17 @@ VOID Instruction(INS ins, VOID *v)
101
101
102
102
VOID Fini (INT32 code, VOID *v)
103
103
{
104
- fprintf (trace, " #eof\n " );
104
+ // fprintf(trace, "#eof\n");
105
105
fclose (trace);
106
106
}
107
107
108
108
/* ===================================================================== */
109
109
/* Print Help Message */
110
110
/* ===================================================================== */
111
-
111
+
112
112
INT32 Usage ()
113
113
{
114
- PIN_ERROR ( " This Pintool prints a trace of memory addresses\n "
114
+ PIN_ERROR ( " This Pintool prints a trace of memory addresses\n "
115
115
+ KNOB_BASE::StringKnobSummary () + " \n " );
116
116
return -1 ;
117
117
}
@@ -134,6 +134,6 @@ int main(int argc, char *argv[])
134
134
135
135
// Never returns
136
136
PIN_StartProgram ();
137
-
137
+
138
138
return 0 ;
139
139
}
0 commit comments