Hi I am working with a parallel binary (OPENMPI, 32-bit). I run using 1 thread. I have used the simplest tool "pinatrace", provided as Manual examples and...
Hi, Through the RTN API, Pin can provide the routine starting address as well as the routine size in bytes. Does anyone know if routines are guaranteed to be...
No, functions are not always contiguous in memory. For example, optimizing compilers may choose to use the same basic block (fragments) for 2 or more...
Hi, I didn't see the same basic block shared by two functions, but I once saw the compiler splits the function's body to "hot" and "cold" parts and put the...
Tal, Ady
ady.tal@...
Feb 4, 2008 7:27 am
2339
Just for sanity sake can we verify that there is really just one thread active: Compile and run "Tests/mtest.cpp" in the Pin Tool kit. mtest.cpp intercepts...
You are right, may be at some point multiple threads can be active. The pintool works fine, once I use PIN_LOCK to protect the printf function. I am assuming,...
I mentioned previously that I could not compile PIN using -pie -fPIE options. However, if I used --pie -fPIE then the compilation did not complain and seemed...
Functions are "usually" conguous in memory. I just wanted to point out that its not always the case. Modules don't require symbols, but I guess the size of...
Hi thanks for the help. I was not sure how to send you the files, so I put them on a web-cite. The link to the cite is: http://www.cs.ucf.edu/~dimitrov/ On...
I should add that man-1.5h1 has a static stack array overflow bug in man.c : line981 in get_section_list(void). The bug is caused by the wrong loop-exit...
Hi, I am having a problem when using INS_RewriteMemoryAddressingToBaseRegisterOnly to read from a buffer. The Pintool below works fine if the original load...
Hi, we believe that Pin reports the wrong effective address for IA32 Push instructions when IPOINT_AFTER instrumentation is used. The address reported is off...
Yes, you are right. The IARG_MEMORY*_EA analysis arguments can only be safely used with IPOINT_BEFORE. We should probably diagnose uses at IPOINT_AFTER....
... Thanks for this answer. Could you clarify what you mean by "safely"? We were thinking of implementing a work-around by simply adding 4 (or in the case of ...
If you just want to get the value written by PUSH instructions, it would be easier to pass (IARG_REGVALUE, REG_STACK_PTR) at IPOINT_AFTER. The $sp always...
Martin, This is what I see when I run. It looks like I was not able to reproduce the bug. Any suggestions? [rscohn1@vs-lin32-4 SANDBOX]$ uname -a Linux...
Hmmm, I see that when you run it, the pintool is actually able to catch the segmentation fault signal. This is what I was trying to achieve. In my case, PIN...
Hi All, I am trying to instrument an embedded javascript application which is using SpiderMonkey (Mozilla's) javascript engine. I am receiving the above error...
Hi Pinheads, If you will be in the Seattle area for ASPLOS or VEE, we wanted to draw your attention to our "Hands-On" Pin tutorial at ASPLOS. It will be held...
Kim Hazelwood
hazelwood@...
Feb 9, 2008 9:47 pm
2355
The pin option separate memory will make pin try to allocate its memory in a different area from the application, and may help: Pin -separate_memory 1 -t...
Hi, I am trying to run pin on an XScale/ARM processor. I downloaded the tarball pin-2.0-5567-gcc.3.3.1-softfp-arm-linux from the website. When I run: ...
I am using PIN_GetSourceLocation() to obtain some source-file line and col number information. The testing program is compiled with -g option on. In my...
Hi Rodrigo, Sounds like your processor supports some new instructions that Pin doesn't know about. What specific processor are you using? Send me the output of...
Kim Hazelwood
hazelwood@...
Feb 12, 2008 5:27 pm
2361
Hi Kim, Here's the output: [root@Linux /work]#cat /proc/cpuinfo Processor : XScale-Bulverde rev 7 (v5l) BogoMIPS : 519.37 Features : swp...
The immediate thing that jumps out at me is that your processor is ARM v5 and it supports thumb, while we only have access to (and thus only test on) ARM v4. ...
Kim Hazelwood
hazelwood@...
Feb 12, 2008 7:24 pm
2363
I tried the following test.c program: int main(void) { return 0; } then I compiled it with: arm-linux-gcc -march=armv4 test.c -o test.out It crashes when using...