InsertIf/Then calls must be paired, so you could either insert two If calls or combine your Then calls. The first option is easier, but the second is probably...
Hi, I want to be able to modify the store address of an instruction (IARG_MEMORYWRITE_EA) , before the instruction executes, so that it will write to a...
Hi Martin, I use INS_RewriteMemoryAddressingToBaseRegisterOnly whose information can be found under Generic modification API in the Pin's User Guide. You can ...
Hi, I am writing a pintool that does some application profiling. When running my tool on Microsoft Excel 2007 under Windows XP, I almost constantly get the...
Oops! I'm sorry... accidentally sent the mail before I completed it. Here's the full message below: Hi, I am writing a pintool that does some application...
Hi Xinyu, We suspect that some office 2007 applications contain self-modifying- code (SMC). SMC is not yet supported in Pin. This is planned to be supported......
Some testing seems to suggest that there is self-modifying code in Excel, but smc_check only locates a few instances through an entire run of the program....
Dear Pinhead, I succeeded in replacing function of original code with my function in Pin tool. But my function is quiet simple. It just prints some words. Now...
If you are working on an IA-32 or Intel(R) 64 architecture, look at the ToolUnitTests/replace_malloc_inst.cpp and ToolUnitTests/callapp*.cpp examples. They...
Hi, I have been bugging the developers on this forum with my issue that PIN crashes while instrumenting a program with a buffer overflow, until you guys were...
To get the IARG_MEMORY*_EA or IARG_MEMORY*_SIZE of instructions with rep prefixes, we have to read memory. If the instrumented instruction was going to segv,...
Hmm, it seems that this does not happen only for instructions with rep prefixes. In one case, the crashing instruction is: repnz scas %es:(%edi),%al , however...
I am new to PIN, and I have some questions about the PIN's software architecture and how PIN works. 1) What is the function of Emulatoin Unit? And what is the...
You might want to look at the Pin paper from PLDI 2005: http://rogue.colorado.edu/Pin/docs/papers/pin-pldi05.pdf I think both of those questions are answered...
... Those instances are the stale traces which needs to be re-jitted due to SMC ... Yes. This is a normal behaviour. ... We will have to debug it and see if...
Thanks for pointing that out, Sreekumar. We have updated the manual, so it will be fixed in the next Pin kit. -- Greg ________________________________ From:...
New pin kit 18525 This version of pin makes it possible to build and run pintools on any linux distribution. Tools that use probe mode still require systems...
Hey All, So I get the following error when I try to run a probe-based pintool on x86_64. The same tool works fine on ia32. Also, the tests in the Probes/...
The -probe option does not take an argument. Remove the "1" after the - probe, and see what happens. BTW, with the latest kit, 18525, -probe is not needed at...
Dear, I have questions about the usage of a function called "PIN_CallApplicationFunction". Please take a look at very simple application and pintool programs:...
I am using a slightly modified version of the DebugTrace tool to generate a memory reference trace. The references made by different threads are obviously...
Hello, You have to use either mutexes to protect the critical section of the Pin tool (in your case the section where you write to the file) or you have to ...
Hi, I would like to write a pintool to instrument an specific routine and its children (i.e. other routines called inside). Is there a way to do this without...