Sorry, I am not familiar with the code myself, so the answer is "Use the source, Luke" :) (and read the fine manual on how to debug a Pin tool). -- Jim James...
Using Pin 2.7 kit 29967 I can successfully use RTN_ReplaceSignature() and PIN_CallApplicationFunction() for intercepting NtClose on Windows XP SP3. However, on...
Hi I try to debug pin with : pin -pause-tool 20 -pid XXXX -t inscount0.so but it does not work. It just happens nothing and pin abborted without any error...
Hello Jim, Thank you for your reply! So far I chose allcache.so pintool from source/tools/Memory. I'd like to ask several questions about its work: 1). The...
Hello, Given the following instruction from pin as an example: WRITE INSTRUCTION: mov dword ptr ds:[esi+edx*4+0x2a0], ecx How do I get the memory address...
I stand corrected regarding the INS_MemoryOperandCount and IARG_MEMORYOP_EA. These are currently checked in to the Pin source, but the Pin version built on...
Hi: Thanks for the bug report. You are highly appreciated if you can describe more detailed information about the problem, i.e. the OS version, the application...
Be sure that the "-logfile" switch is before "-t" in the command line. If the -logfile switch is in the right pleace, please provide your command line. The...
Hi, I'm using Pin to develop a observation tool, one of its features is showing system call arguments of a program, this is a fragment of the code I use: ...
Thank you very much, Gail ! My story is like this: The application I want to instrument with consists of several calling pairs of malloc() and free() . While...
Do you want to call the application's malloc() or the Pintool's malloc()? This tool is calling the Pintool's malloc(). If you want to call the application's...
Hi, everyone. I wrote some pintool to hook on calling of malloc() and free() of user program. The pintool is listed below. This program works well with single...
... Thanks, I will try this. ... No, I'm not, I'm using a self-defined buffer. Are there any examples available of how to use this API? greetings, Kenneth...
Use "-xyzzy -mesgon log_instrument" before the "-t" in the command line. That will provide the information I think you are looking for. grep for INLINE in...
There are many examples in source/tools/ directory that can do similar tasks (gathering full address trace of a program or simulating the work of multi level...
What is the reason for getting this assertion failure? Probably a memory corruption which is walking over some of Pin's internal data structures... -- Jim ...
Hello, I'd like to gather the trace of logical addresses of misses from the LLC cache. This may include: - logical addresses of data requested by load and...
Hello, I have the following instruction into the if ( INS_IsMemoryWrite(ins)) block of the function VOID Instruction(INS ins, void * v) in the dcache tool: ...
Hi I have spent a few hours running the advertised Dr. Memory DynamoRio tool and reading its sources. Here are my findings on the robustness and my thoughts on...
Hi PINheads, I've tried speeding up my Pin tool which does a little bit of work several times for each instruction (i.e. for each register access and memory...
Is there any way to build a function prototype (PROTO) dynamically, much the same way it can be done with IARGLIST? The problem is that I need to replace some...
Hi, I am trying to instrument routines as they are called so I have the following: VOID FlagTrace(TRACE trace, VOID *v) { for(BBL bbl...) { for(INS ins...) { ...
When I run dcache I get a printout of over 12000 assembly instructions. Why is this happening? Because those instructions are being executed, and therefore...
So - it is pin2.6 you were using, that explains it. The modeling of rep has changed in pin2.7, it is now more correct, enabling to instrument each rep. Please...