Hi, If I do the following instrumentation: I instrument each 'ret' instruction using INS_InsertCall(ins, IPOINT_BEFORE, (AFUNPTR)AAA, ...); INS_InsertCall(ins,...
You could do the following. Capture the initial value of REG_STACK_PTR on entry to the function. Then, instrument every instruction in that function that...
... Yes we can. 2 options. Option 1: - Start a debugger with the original command line (e.g. <pin options> -t <tool name> <tool options> -- <app name> <app...
I wrote a pintool with .c extension (e.g. itrace.c), but on compiling I got some error messages. Can't we write pintools in files with .c extension?...
Hi Elena, thanks for the comment. However, wouldn't INS_Address() and INS_Size only give me the address of the address and the size of the instruction? I am...
Can you also tell the unit for the absolute values of time-related variables in pin.log? I have values like: pin::time::total/vm...
Piramanayagam Arumuga...
piramanayagam@...
Feb 3, 2009 12:02 am
3360
It is cycles. ... From: pinheads@yahoogroups.com [mailto:pinheads@yahoogroups.com] On Behalf Of Piramanayagam Arumuga Nainar Sent: Monday, February 02, 2009...
IP and INS_Address() are equal. You don't have to put a callback before instruction in order to print the binary. It may fail in some exotic cases like self...
Hello All! i'm new to pintool and i'm trying to make an easy program that consists to modify a bit the calltrace.cpp included in the examples. I need help with...
You can set a flag in the PinTool as a note to, on the next compilation, save the syscall return value. For instance, something like this should work: VOID...
You can use PIN_AddSyscallExitFunction() API to register a SYSCALL_EXIT_CALLBACK notification function. Itis called immediately after execution of a system...
I am trying to emulate calls using INS_InsertDirectJump. Before the insertion I am preparing the stack (store register values, push arguments and return...
No, tools must be C++. The Pin header files are in C++. ________________________________ From: pinheads@yahoogroups.com [mailto:pinheads@yahoogroups.com] On...
Thank you for your help. I have settled with PIN_SafeCopy() at last, and it works. Thanks to both Dana and Elena. -Ray ... before instruction in order to print...
Hi, I am trying to build the DebugTrace pintool on a Intel 64bit machine. However, since the application that I will be instrumenting is 32-bit, I will need to...
Hi all, I'm having problems compiling the Pthread tool on my Debian Lenny machine. ... I installed g++-3.4 tool chain: apellegr@vinaccia:~$ g++-3.4 -v Reading...
Yes, Pin can analyze multi-threaded programs. However, Pin is primarily an analysis tool, not an optimizer. -- Greg ________________________________ From:...
I wonder if we can pass a string from instrument phase to analysis phase via the callback? I passed the address of a string, but the content the string was...
mycuti@...
Feb 4, 2009 5:05 pm
3376
Hi Is there a way to generate the data section from an application binary using PIN. Thanks Vish ...
Pin implements RTN_InsertCall(..., IPOINT_AFTER, ...) by doing INS_InsertCall(.., IPOINT_BEFORE, ...) on each RET instruction. Therefore, the order of AAA and...
Yes, use IARG_PTR to pass the address of the string. You need to make sure that the string itself is allocated in permanent memory, not allocated on the...
The Pthread tool has knowledge of the internals of a specific release of the pthreads library. Therefore, it doesn't work on all systems. (In fact, the tool...
You can use IMG_SecHead() to iterate over all the sections in each image, and SEC_Data() / SEC_Size() / SEC_Address() will give you the raw contents of these...