Capture instructions will be captured and outputed into a trace file. In addition, assembly code can be inserted to source program to label the start and end of a snippet.
- pinAssem.cpp: captures instructions of executable
- printmacros.h: defines print macros
- util.h/util.cpp: defines some global variabled and functions
- anno.h: defines macros to hook instructions
- makefile.rules: pin makefile
- makefile: makefile
- anno.c: source code
- Makefile: makefile
- install Intel pin and update the 'PIN_ROOT' in src/makefile
- executes './make.sh' (or step into src to make) to compile pin source files, *.so will be created in src/obj-intel64/
- step into Annotate/ and make
- ./run.sh to instrument, output trace can be found in gen.trace/test_anno