What did you try? What happened? ________________________________ From: pinheads@yahoogroups.com [mailto:pinheads@yahoogroups.com] On Behalf Of ruiwangwarm ...
Hi: I am using Pin 2.2 - 15865 on Winodws XP. I read some paper which said pin does not support monitoring self-modifying code. But that paper was published on...
I know how to instrument function calls which have static number of parameters. For example, to instrument the function strlen, I'll use the following...
Hi, I am trying to get the CONTEXT in Itanium machine. With: void Checkpointing(CONTEXT *ctxt) // I tried with VOID * also { } VOID CheckRt(RTN rtn, VOID* v) {...
* But these codes cannot be used for instrumenting function calls like printf, whose parameter number is dynamic. Why not? When passing arguments to a...
Hi everyone, I am writing a pintool to keep track of mutex/lock variable. Do I have to instrument pthread_mutex functions or is there any other way to get the...
Hi, I am new to PIN and have some questions regarding IPOINT_BEFORE and IPOINT_AFTER. The following is a method taken from ManualExamples/inscount0.cpp. It...
IPOINT_AFTER can't be used with instructions that don't have a fall- through i.e. direct branches. Look at INS_HasFallThrough to detect if you can safely us...
Pin does not have any built-in knowledge of mutex variables in the application. Tracing calls to the pthread_mutex functions seems like the right thing to do....
You can use SEC_Type() or SEC_IsWriteable(). You will need to track each image as it is loaded, iterate over the images, then create a mapping between each...
Unfortunately, we do not yet support a way to pass FP registers to analysis routines on Itanium. As you saw, IARG_CONTEXT is not supported and IARG_REG_VALUE...
Thanks for the clarification. I tried with pin.0.179, IARG_REG_VALUE works for floating point registers. Though I am not sure if it will work for all floating...
Hi, I used icount2.cpp, the basic block tracing example in Pin package, with Splash program (FFT). I was supprised that it was almost 7 times slower than...
Hi all I am using PIN to generate Basic Block traces of an application Aplications I am using MPI c and c++ applications (sometimes charm++ programs). I am...
Hi, My pintool traces every BB block and records some information about the BB in a global buffer. While analyzing the overhead, I found that if I declared a...
I want to monitor the behaviour of a part of my program (some functions). Is it possible to change the source code of program and asking Pin to monitor that...
Hi: Is there any example for smc which I can test against on Windows? I tried smc_test_l.c, but it is obviously written for Linux. Thanks. Re: +Re: Does Pin...
Hi, Reading the previous posts, I found that RTN_BblHead() is not worked to get bbls for static analysis purpose. Maybe it just retuns a single bbl that...
Hi Rodrigo, Just to follow up - I don't know of a link for a 3.3.1 arm cross compiler, so you will most likely have to compile one yourself. But let us know if...
Kim Hazelwood
hazelwood@...
Mar 5, 2008 10:32 pm
2453
A 7X slowdown for icount2 could easily be correct. I collected icount2 overheads last year for the SPEC benchmarks and found a worst case of 7X (for perlbench)...
Kim Hazelwood
hazelwood@...
Mar 5, 2008 10:40 pm
2454
Thank you for your answer. Is the graph showing icount2 (BB tracing) or icount0 (intercepting every instruction)? I guess icount2 inserts only 2 or 3...
The graph I pointed you to shows results for icount2. Since Pin is inlining the counting instructions in with the application code it may need to save and...
Kim Hazelwood
hazelwood@...
Mar 6, 2008 1:24 am
2456
Hi: From my experience, most huge Windows application like PPT and Words perform some self code modification.Best Regards Qin To: pinheads@...:...
I am not a Pin developer, so correct me if I am wrong. I guess it is because of JIT compiler. When you declare a local variable, the access to local variable...
Right now, Pin does not perform any CFG analysis on RTN_Open and you'll see only one BBL in routine and a list of instructions inside this BBL. You'll get the...
You should look at the disassembly of the analysis function to verify that it is 'only 2 or 3' instructions. If the analysis function modifies the eflags, we...